-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webui: searching for "match" doesn't provide any results #2349
Comments
@mr-tz, yes this works as designed. For example, a simple rule match looks like this: [
{
"key": "53-0",
"data": {
"type": "match location",
"name": "function @ 0x1400198F7"
},
"children": [
{
"key": "53-0",
"data": {
"type": "statement",
"typeValue": "or",
"name": "or:",
},
"children": [
{
"data": {
"type": "feature",
"typeValue": "api",
"name": "GlobalMemoryStatusEx", <---
"address": "0x1400344AE"
},
"children": []
}
]
}
]
}
] The search only operates on the If we want to include the {
"data": {
"type": "feature",
"typeValue": "api",
"name": "api: GlobalMemoryStatusEx", <---
"address": "0x1400344AE"
},
"children": []
} Similarly, if we want to include the {
"data": {
"type": "feature",
"typeValue": "api",
"name": "- api: GlobalMemoryStatusEx", <---
"address": "0x1400344AE"
},
"children": []
} In conclusion, the search works on the JSON, and the templating is used to add in colors, text, styling, ... etc. The reason behind separating the feature values into I hope this clears out things for you. Let me know if it is preferred to include these value and I can send a fix PR :) |
It feels a little inconsistent. I can search for |
Yeah, I see your point. It is because We can omit statements (like: [
{
"data": {
"type": "match location",
"name": "function @ 0x1400198F7"
},
"children": [
{
"data": {
"type": "statement",
"typeValue": "or", // use this instead in the templating to render cell value as `- or: `
"name": "", // remove or leave empty
},
"children": [
{
"data": {
"type": "feature",
"typeValue": "api",
"name": "GlobalMemoryStatusEx",
"address": "0x1400344AE"
},
"children": []
}
]
}
]
}
] In my opinion, it makes sense not to include statement in the search and only include features. |
I'd expect this to show this rule for example
Or is this by design?
The text was updated successfully, but these errors were encountered: