mistic100 / mistic100/jQuery-QueryBuilder
Custom Plugin
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 544
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I have created a custom plugin just like "not-group" plugin.
From the UI, I am able to uncheck and check the plugin. But, while passing the json data if I specify my plugin as True/False, it is not reflected back in the UI. Also when I try to get the rules after marking my plugin as "checked", I do not see its value in the generated rules. Is there something that I am missing?
var obj = {
"condition": "OR",
"rules": [
{
"value": 1,
"id": "OfEntityTypeQuery",
"operator": "equal"
},
{
"condition": "AND",
"rules": [
{
"builder_rule_1_value_0_id_btn.MinCorner.X": 0,
"builder_rule_1_value_0_id_btn.MinCorner.Y": 1,
"builder_rule_1_value_0_id_btn.MinCorner.Z": 2,
"builder_rule_1_value_0_id_btn.MaxCorner.X": 3,
"builder_rule_1_value_0_id_btn.MaxCorner.Y": 4,
"builder_rule_1_value_0_id_btn.MaxCorner.Z": 5,
"id": "WithinQuery",
"operator": "BBox",
"builder_rule_1_value_0_id_btn.Tolerance": 0.00001
},
{
"condition": "AND",
"rules": [
{
"builder_rule_2_value_0_id_btn.MinCorner.X": 3,
"builder_rule_2_value_0_id_btn.MinCorner.Y": 4,
"builder_rule_2_value_0_id_btn.MinCorner.Z": 5,
"builder_rule_2_value_0_id_btn.MaxCorner.X": 6,
"builder_rule_2_value_0_id_btn.MaxCorner.Y": 7,
"builder_rule_2_value_0_id_btn.MaxCorner.Z": 8,
"id": "WithinQuery",
"operator": "BBox",
"builder_rule_2_value_0_id_btn.Tolerance": 0.00001
},
{
"builder_rule_3_value_0_id_btn.Value": 0.02,
"id": "SizeIsQuery",
"operator": "equal",
"builder_rule_3_value_0_id_btn.Dimension": 3,
"builder_rule_3_value_0_id_btn.Tolerance": 0.0001
}
],
"parentBodyVerifies": true,
"not":true
}
],"not": true
}
]
};
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified in the report. Start by reproducing the custom plugin with the supplied rules data and compare checkbox state with the generated rules after toggling it. Done means the plugin's boolean value is restored from JSON, shown in the UI, and included in generated rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100