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

refactor: ♻️ use check functions in edit_package_properties #974

Open
wants to merge 103 commits into
base: main
Choose a base branch
from

Conversation

martonvago
Copy link
Contributor

@martonvago martonvago commented Jan 17, 2025

Description

This PR refactors edit_package_properties to use the check functions.

Once #976 is merged in, I will update this PR with those changes. <-- Done! ✔️

This PR needs an in-depth review.

Checklist

  • Added or updated tests
  • Updated documentation
  • Ran just run-all

martonvago and others added 30 commits December 19, 2024 15:03
Co-authored-by: Luke W. Johnston <lwjohnst86@users.noreply.github.com>
Co-authored-by: Signe Kirk Brødbæk <40836345+signekb@users.noreply.github.com>
Co-authored-by: Signe Kirk Brødbæk <40836345+signekb@users.noreply.github.com>
martonvago and others added 18 commits January 20, 2025 16:01
…at/sprout-checks-4-sprout-specific-package-and-resource-errors
…ce-errors' into feat/sprout-checks-5-check-resource-properties
Co-authored-by: Luke W. Johnston <lwjohnst86@users.noreply.github.com>
Co-authored-by: Luke W. Johnston <lwjohnst86@users.noreply.github.com>
Co-authored-by: Luke W. Johnston <lwjohnst86@users.noreply.github.com>
Comment on lines +68 to +71
check_properties(
current_properties,
ignore=[CheckErrorMatcher(validator="required", json_path="resources")],
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Required check done because at this point all required fields should be present -- that is, all required fields except resources.

However, as above, resources may be present (if they were on the original properties), so I'm using check_properties for a full check.

Base automatically changed from refactor/use-check-error-matcher to main January 23, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants