Skip to content

Fix empty values in older (pre-3.0) models #3844

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

Merged
merged 6 commits into from
Apr 14, 2025
Merged

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Apr 12, 2025

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Deal with odd cases, e.g. when value of a value is empty.

Issue Number: Fixes #3829

What is the new behavior?

  • Added regression tests for ValueSpecification update.
  • Added and fixed corner cases (superseeds 3829 handle empty value #3830)
  • Type all storage functions. This will reduce the room for error in the future.
  • Cleanup: no longer need to deal with "homeless literals"

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the python Pull requests that update Python code label Apr 12, 2025
@amolenaar amolenaar requested a review from danyeaw April 12, 2025 21:03
@amolenaar amolenaar mentioned this pull request Apr 12, 2025
7 tasks
Those resort to String literals to be on the safe side.
@mikekidner
Copy link
Contributor

Thanks @amolenaar !

Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

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

Hi @amolenaar, this is a really nice fix and cleanup! Just one nitpick about a comment.

Co-authored-by: Dan Yeaw <dan@yeaw.me>
@amolenaar
Copy link
Member Author

Fixed.

@amolenaar amolenaar merged commit 9cee441 into main Apr 14, 2025
25 checks passed
@amolenaar amolenaar deleted the storage-value-specs branch April 14, 2025 16:22
@danyeaw danyeaw added fix A fix for a bug and removed python Pull requests that update Python code labels May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Model fails to load if value in storage.get_specification_value_from_value is None
3 participants