Make validation and publication options usable without the metadata approval workflow#9420
Make validation and publication options usable without the metadata approval workflow#9420josegar74 wants to merge 3 commits into
Conversation
…pproval workflow Three options in Administration > Settings have been moved into more suitable groups so it's clear they can be used at any time: - Force validation on metadata save - Allow publication of invalid metadata - Automatic unpublication of invalid metadata The options themselves work exactly as before — only where they appear in the settings page has changed. Until now these three options lived under the "Metadata workflow" group. But in reality they apply whether or not the workflow is being used — for example, you can force a validation check every time a record is saved even if you don't use the approval process at all. Grouping them under "Metadata save" and "Metadata publication" instead removes that confusion and makes it obvious the options are always available.
GeoSander
left a comment
There was a problem hiding this comment.
Looks good to me. Good decision I think to reorganize these settings.
|
@cmangeat , @sebr72 this test fails: Even updating Locally, after updating the file with the It's not the first PR having problems with this test. Also I can not see any value for these editor tests. I agree unit testing is very important, but this low level XML editor stuff that is not easy to update, it seems more problematic than useful. Can you please describe how to update the files properly so tests can pass after changes applied for settings in this case, which is quite unrelated. |
Hello. First approach could be setting this boolean to true; and run the tests locally, so to read the updates with git diff for example (setting the boolean to true will produce the expected control files). "quite unrelated" is the point. |
|
@cmangeat thanks for the feedback, I'll try that and let you know |
…pproval workflow / Fix unit test
|
@cmangeat thank you. I have tried the option you pointed and it seems to work. |
Three options in Administration → Settings have been moved into more suitable groups so it's clear they can be used at any time:
Until now these three options lived under the "Metadata workflow" group. Because of that, people naturally assumed they only had an effect when the metadata approval workflow was switched on. In reality they apply whether or not the workflow is being used — for example, you can force a validation check every time a record is saved even if you don't use the approval process at all.
Grouping them under "Metadata save" and "Metadata publication" instead removes that confusion and makes it obvious the options are always available.
Checklist
mainbranch, backports managed with labelREADME.mdfilespom.xmldependency management. Update build documentation with intended library use and library tutorials or documentation