Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Proposed change to get_values behavior#1535
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Proposed fix for#1534 |
Looking at test here; I suppose we can leave it raising a KeyError. The main fix was force-loading the I'll re-commit using KeyError. |
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.
Thanks a lot, much appreciated!
I think the commit should link back to the issue it resolve to create a more declarative history.
Finally it should be possible to devise a test that would fail without this change to cement it. Otherwise it might be removed in future because it's unclear why eager loading of sections is necessary.
@kfreezen, consider acceptingkfreezen#1 to add test coverage for this change? I verified it fails on main: |
Closing as it's superseded by#1555 |
get_values() did not load existing sections before checking the
_sections
property.NOTE: Haven't written a test to check for this yet.