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

Add rotation toggle and filtering to table view #3646

Merged
merged 7 commits into from
Jun 29, 2021

Conversation

havron
Copy link
Contributor

@havron havron commented Jun 23, 2021

This PR tackles Issue #3633 🙂 it surfaces the rotation bool switch for all certificates to the certificate table view in Angular, and provides filtering support to let users quickly see which certs have autorotation on, and which do not!

It builds on @charhate's new API from PR #3176 for updating switches in the cert table view.

@@ -1516,7 +1519,7 @@ def put(self, certificate_id, data=None):
Certificates, "/certificates/<int:certificate_id>", endpoint="certificate"
)
api.add_resource(
Certificates, "/certificates/<int:certificate_id>/update/notify", endpoint="certificateUpdateNotify"
Certificates, "/certificates/<int:certificate_id>/update/switches", endpoint="certificateUpdateSwitches"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it's likely that anyone's using this endpoint programmatically (i.e. not via the UI) right now -- and therefore I think this change is acceptable -- but I do at least want to call out that this is a breaking/backwards incompatible change if they are.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @jtschladen, that's a great point; we could bump the version in the changelog for it if desired! Although as you noted, I also suspect this isn't a highly used API endpoint given that PUT /certificates/<id> has been around for much longer, and offers more flexibility to programmatic callers looking to update certs.

I'd be happy to preserve /update/notify and add a new, separate /update/rotation endpoint, if we want to be cautious. I think I'd just need to add a new Resource class for it, split up the service funcs, and use a customPOST in the Angular service call.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @havron for contributing the change. Code changes look good to me. We do suspect that it's not a highly used endpoint, so consolidating new changes in existing API makes sense. Given backward incompatibility, bumping version and adding changelog calling out this change will be helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good to me! I just added a changelog in 3e94c84, following the new release process. Let me know if I can improve the release notes 🙂 @charhate

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks @havron, really appreciate your efforts in compiling detailed release notes.
Given all the change going in next release and specially API change that is not backward compatible, the minor version change seems more appropriate (so 0.10.0 instead of 0.9.1). I have taken liberty to commit this 7edee9f, hope you do not mind.
I'll merge the PR soon and do a release.

havron and others added 4 commits June 28, 2021 18:55
Bumping minor version give all the changes, specially the API change that is not backward compatible
WARNING: Title underline too short
@charhate charhate merged commit c84fac6 into Netflix:master Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants