-
Notifications
You must be signed in to change notification settings - Fork 180
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
Nodes from chef runs should be properly marked as complete/incomplete #2806
Comments
Any pointers on how to do this? What would make a node invalid? |
This management command contains the comprehensive list of different conditions: Might be good to write a backend utility function (with tests) that encapsulates these conditions. |
@rtibbles The implementation of the For each criterion C, filter all ContentNodes that don't meet C, then update their Whereas, I think what we want to do in the How do you think a utility function could be written that is usable in both spots? |
Oh, I don't think we'd need to write something that worked for both - just a 'node validation' function would be sufficient for the single node case. |
@AtKristijan This may break many existing chef scripts so we should do some auditing before merging this change. I'm not sure if it's possible, but if this does break many chefs, perhaps we can surface these new validations as warnings instead of strict validation? |
Observed behavior
The internal cheffing API does not validate all conditions in determining whether a node is
complete
. It currently only validates against empty titles and invalid license fields.Expected behavior
A node should be validated against all of the same conditions that the
mark_incomplete
management command handles.References
Partially handled for titles and licenses in #2999
The text was updated successfully, but these errors were encountered: