Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed

Conversation

kfreezen
Copy link
Contributor

get_values() did not load existing sections before checking the_sections property.

NOTE: Haven't written a test to check for this yet.

@kfreezen
Copy link
ContributorAuthor

Proposed fix for#1534

@kfreezen
Copy link
ContributorAuthor

Looking at test here; I suppose we can leave it raising a KeyError. The main fix was force-loading the_sections attribute before checking the list.

I'll re-commit using KeyError.

Copy link
Member

@ByronByron left a 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.

@Codym48
Copy link
Contributor

@kfreezen, consider acceptingkfreezen#1 to add test coverage for this change? I verified it fails on main:

image

@Byron
Copy link
Member

Closing as it's superseded by#1555

@ByronByron closed thisFeb 16, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ByronByronByron requested changes

Assignees
No one assigned
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
@kfreezen@Codym48@Byron

[8]ページ先頭

©2009-2025 Movatter.jp