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

[#4069] Use more standard disabled lookup functions #4073

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Oct 15, 2021

resolves #4069

Description

Fixes for handling partial parsing and disabled nodes that were backported to 0.21 required a different approach since we wanted to avoid changing the manifest schema. In that fix a new DisabledLookup replaced the existing find_disabled_by_name. The DisabledNameSearcher is a variant of the various *Lookup classes. For consistency and performance we want to use similar functionality for all of these lookups. The previous 'find_disabled_by_name' looped through the entire disabled list/dictionary each time, and having a persistent lookup index on disabled is more efficient.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

@cla-bot cla-bot bot added the cla:yes label Oct 15, 2021
Copy link
Contributor

@nathaniel-may nathaniel-may left a comment

Choose a reason for hiding this comment

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

the code lgtm.

Is this just for the backport? Or is this how we want to do it in 1.0 too?

@gshank
Copy link
Contributor Author

gshank commented Oct 15, 2021

This is for 1.0.0. The backport to 0.21.latest already used the DisabledLookup class, but didn't include some of the extra cleanup for consistency.

@gshank gshank merged commit 80a5d27 into main Oct 15, 2021
@gshank gshank deleted the 4069_disabled_partial_parsing branch October 15, 2021 19:37
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
automatic commit by git-black, original commits:
  80a5d27
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve on handling of disabled nodes in partial parsing
2 participants