-
Notifications
You must be signed in to change notification settings - Fork 2
Port UI5PathGraph
to use the newer data flow API
#216
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
Open
jeongsoolee09
wants to merge
18
commits into
main
Choose a base branch
from
jeongsoolee09/port-UI5PathGraph
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All of the disappeared edges are circular ones that "circles back" on itself and does not influence the analysis at all.
- Port over UI5PathInjection. - Create a UI5PathInjectionQuery file and move the configuration there. - Update expected results of the query.
UI5PathGraph
to use the newer data flow API
NOTE: The end-to-end results of the queries are okay (the #select portion is unchanged), but there are difference in `nodes` and `edges` that probably needs attention.
NOTE: The end-to-end results of the queries are okay (the `#select` portion is unchanged), but there are difference in `nodes` and `edges` that probably needs attention.
These are results with changes in only nodes and edges. We accept it because it means there are no changes in the overall behavior.
These are results with changes in only nodes and edges. We accept it because it means there are no changes in the overall behavior.
…-security/codeql-sap-js into jeongsoolee09/port-UI5PathGraph
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What This PR Contributes
Port over
UI5PathGraph
and all UI5 queries depending on itPort UI5 queries from the old data flow API that uses
TaintTracking::Configuration
to the new one. Porting UI5 queries requires care since it depends onUI5PathGraph
that enables UI5 binding paths appearing in UI5 views (e.g. XML views) to be included in the path information.The implementation of
UI5PathGraph
previously depended upon the fact that there is only onePathNode
type:DataFlow::PathNode
. This is no longer the case with the newer API where each data flow configuration module has their ownPathNode
types. Therefore, the newUI5PathGraph
is parameterized on a data flow configuration module like the following:One could argue that it could be shortened to
module UI5PathGraph<DataFlow::GlobalFlowSig ConfigModule>
based on the usagemodule UI5XssUI5PathGraph = UI5PathGraph<UI5XssFlow::PathNode, UI5XssFlow::PathGraph>
, butConfigModule::PathNode
does not exposegetNode
since there is no type-level constraint on the memberPathNode
(its declaration is onlyclass PathNode;
).Resolve deprecation warning on
AmdModuleDefinition.getDependency/1
Use
AmdModuleDefinition.getDependencyExpr/1
instead because of the above being deprecated.Future Works
UI5PathGraph
, as it is easy to forget toimport
the instantiatedUI5PathGraph
.PathString
.