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 ♻️ allow properties input in checks #999

Merged
merged 10 commits into from
Jan 28, 2025

Conversation

martonvago
Copy link
Contributor

@martonvago martonvago commented Jan 27, 2025

Description

This PR makes the suggestion of having check functions in Sprout accept both dicts and Properties objects.
I thought of this when I was writing up the guide for check functions and kept having to transform each Properties object into a dict before using it in an example.

Not strictly necessary and maybe we don't want it, but here it is 🥇

This PR needs a medium-depth review.

Checklist

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

@martonvago martonvago self-assigned this Jan 27, 2025
@martonvago martonvago marked this pull request as ready for review January 27, 2025 11:30
@martonvago martonvago requested a review from a team as a code owner January 27, 2025 11:30
Base automatically changed from refactor/commonise-sprout-checks to main January 28, 2025 12:44
@lwjohnst86
Copy link
Member

@martonvago there's a bunch of conflicts, could you resolve them?

@martonvago
Copy link
Contributor Author

@lwjohnst86 ooh, it got a bit confused, should be okay now!

Copy link
Member

@lwjohnst86 lwjohnst86 left a comment

Choose a reason for hiding this comment

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

🎉

@lwjohnst86 lwjohnst86 merged commit d22a7a1 into main Jan 28, 2025
3 checks passed
@lwjohnst86 lwjohnst86 deleted the refactor/allow-properties-input-in-checks branch January 28, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants