Skip to content
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

feat(common lib): improved performance of get_nested_values_info #5075

Merged
merged 2 commits into from
Mar 30, 2022

Conversation

Churro
Copy link
Contributor

@Churro Churro commented Mar 28, 2022

Problem

#4955 introduced a novel approach to check objects for nested attributes. As tested in #4884, the recursive expansion of path values is done for all attributes within the tested object, even though the check would only be needed for a set of attributes that are already known beforehand. This impacts runtime complexity, especially with deeper nested hierarchies.

Proposed Changes

I submit this contribution under the Apache-2.0 license.

@kicsbot
Copy link
Contributor

kicsbot commented Mar 28, 2022

Scan submitted to Checkmarx

@kicsbot
Copy link
Contributor

kicsbot commented Mar 28, 2022

Logo
Checkmarx SAST - Scan Summary & Details

Cx-SAST Summary

Total of 5 vulnerabilities
High 0 High
Medium 0 Medium
Low 5 Low
Info 0 Info

Violation Summary

No policy violation found

@rafaela-soares rafaela-soares added community Community contribution query New query feature labels Mar 29, 2022
rafaela-soares
rafaela-soares previously approved these changes Mar 29, 2022
Copy link
Contributor

@rafaela-soares rafaela-soares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Thank you so much, @Churro!

@rafaela-soares
Copy link
Contributor

@Churro, can you please resolve the conflicts with the master? Thank you so much in advance 😊

@Churro
Copy link
Contributor Author

Churro commented Mar 29, 2022

Done, @rafaela-soares 👍

@rafaela-soares rafaela-soares merged commit ba13a99 into Checkmarx:master Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution query New query feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants