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

Extend functionality of custom validation plugins #4391

Merged

Conversation

SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat commented Feb 22, 2023

Pass model instances through to the validation routines, to allow extra introspection and functionality (if required).

Ref: #4389

@SchrodingersGat SchrodingersGat added plugin Plugin ecosystem breaking Indicates a major update or change which breaks compatibility labels Feb 22, 2023
@SchrodingersGat SchrodingersGat added this to the 0.11.0 milestone Feb 22, 2023
Copy link
Member

@matmair matmair left a comment

Choose a reason for hiding this comment

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

A test if validations are run would probably be good

@SchrodingersGat
Copy link
Member Author

@matmair this is a prime candidate for profiling the unit tests. The extra plugin validation code has blown the unit tests out to three hours

@matmair
Copy link
Member

matmair commented Feb 27, 2023

@SchrodingersGat that is definitely not optimal

@SchrodingersGat SchrodingersGat merged commit abeb85c into inventree:master Mar 7, 2023
@SchrodingersGat SchrodingersGat deleted the validation-extensions branch March 7, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Indicates a major update or change which breaks compatibility plugin Plugin ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants