-
Notifications
You must be signed in to change notification settings - Fork 6
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
Validate imported field values #39
base: master
Are you sure you want to change the base?
Conversation
@petschki thanks for creating this Pull Request and help improve Plone! To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass. Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:
With this simple comment all the jobs will be started automatically. Happy hacking! |
@jenkins-plone-org please run jobs |
small change, big outcome 🙈 there are a lot validation errors from different packages when validating imported registry.xml values. Just to name one: |
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.
Apparently there is a new option to mark PRs as draft, which you did, and I just marked this pull request as ready for review, which was probably the wrong button to push. :-)
I haven't tried it locally, but the idea seems good.
try: | ||
importRegistry(context) | ||
except zope.schema._bootstrapinterfaces.RequiredMissing: | ||
# this should raise RequiredMissing |
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.
This can be done with:
with self.assertRaises(zope.schema._bootstrapinterfaces.RequiredMissing):
importRegistry(context)
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.
Thank's for the hint ... I'll change that
@mauritsvanrees draft PRs are quite cool, but once marked as "ready" you cannot go back. This PR is definitely not ready for merging, because it breaks a lot. If we agree to introduce validation of registry values we have to change/fix several other packages to pass all tests again. I think I take it on my Buschenschank todo list ... |
Is this still a a thing? |
fixes #38