-
Notifications
You must be signed in to change notification settings - Fork 12
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
Re-implement replaced_by functionality from #130 #136
base: main
Are you sure you want to change the base?
Conversation
39e8ea6
to
b45bb23
Compare
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.
I approve the idea, but defer to our development experts on the execution
This doesn't appear to quite work. I added But before we try to fix that, I'm thinking about how this would actually be used. If we adopt something like the process I proposed in #116, this field doesn't need to be rendered, it's just a note in the yaml for future reference. We should probably settle on our maintenance process before we start implementing it. |
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.
let's address the functionality comment from @funnelfiasco — I'm happy with the intent here though
Signed-off-by: Evan Anderson <[email protected]>
Co-authored-by: Eddie Knight <[email protected]> Signed-off-by: Evan Anderson <[email protected]>
ba7a959
to
1e3cde9
Compare
Signed-off-by: Evan Anderson <[email protected]>
1e3cde9
to
324af2f
Compare
Signed-off-by: Evan Anderson <[email protected]>
85525d3
to
08ac139
Compare
I added the following to the criteria in the - id: OSPS-DO-01
replaced_by: OSPS-GV-03 This now renders as:
My thought was that people may also either have links to "latest" or simply search the latest for these strings, so it would be handy to have a 2-line link for folks. (This PR should now be ready, if we decide we want to be able to track this -- we can always iterate on the template rendering later if desired.) |
After the merge of the governance part of #130, the second half (creating a mechanism for tracking criteria renaming) was still pending (and the script had been re-arranged).
This PR does the following:
replaced_by
field for renumbering / retiring criteria (currently a single rule, but we could make it a list if that makes more sense)errors.Join()
of detected errors, rather thanlog.Printf()
each error and then returning a new "errors occurred" error. This may help if we use the code as a library later.slices.Contains()
rather than writing our owncontains
method.