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
Fixes #24634: API to find usage of a node property in Directives #5557
base: branches/rudder/8.0
Are you sure you want to change the base?
Fixes #24634: API to find usage of a node property in Directives #5557
Conversation
PR updated with a new commit |
3 similar comments
PR updated with a new commit |
PR updated with a new commit |
PR updated with a new commit |
34fecec
to
5294643
Compare
Commit modified |
5294643
to
3247f92
Compare
PR rebased |
1 similar comment
PR rebased |
PR updated with a new commit |
Commit modified |
e2825c6
to
994811e
Compare
Commit modified |
994811e
to
0bdaec7
Compare
PR updated with a new commit |
Commit modified |
db32c9c
to
9aef71b
Compare
Commit modified |
9aef71b
to
1f73634
Compare
Commit modified |
b332534
to
c141189
Compare
Commit modified |
1 similar comment
Commit modified |
c141189
to
edd1d5d
Compare
} yield { | ||
techniques.filter { t => | ||
// I'm only checking in the value of method parameters here | ||
val methodParamValues = t.calls.flatMap(getParam).filter(p => p.contains(s"$${node.properties[$propertyName]")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we somehow need to use the parsed version (but I don't have any idea how/where it is available)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember, we have indeed a parsed version, and it is basically the same process, thanks for the feedback, I will try to modify that
Cool, looks promising! Could you add tests, if possible :
|
PR updated with a new commit |
PR updated with a new commit |
Commit modified |
f0f377e
to
90bc8f4
Compare
PR updated with a new commit |
2 similar comments
PR updated with a new commit |
PR updated with a new commit |
PR rebased |
9a91dc7
to
1787266
Compare
PR rebased |
1787266
to
83ae097
Compare
1c009e1
to
f17b205
Compare
f17b205
to
8928b2f
Compare
https://issues.rudder.io/issues/24634
Pagination
Preamble
This PR has been made as a side project on my free time. I don't have a deadline, and I don't know when it will be done. It's started as a small test to see if this was not too much painful to develop, but it ends up being a little bit more polish that I was expecting. Feel free to comment, add remarks and review the work done, I will do my best to address them ASAP on my free time.
Goal
This feature aim to add discoverability on node's properties. Nodes' properties are an essential part of Rudder workflow, it's seem important to see if a property used or not and if yes to be able to visit the object that is using this property. I'm often
Journal
16/04/2024 - 92ab292 3e85145
06/04/2024 - 89348fd
max-height
and the rowswidth
but... it works, that's all I need05/04/2024
I'm also concerned about the performance issues to parse every directive's parameter and technique's parameter on large instance, need more reflection on this subject, later.
04/04/2024 - fe6096f
test_find_property_usage_in_technique
is not initialized, making some other tests (who rely onNodeConfig
) fail, and I cannot figure it why for the moment.Todos :
toJson