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

Fix Update endpoint #260

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Fix Update endpoint #260

merged 1 commit into from
Sep 12, 2024

Conversation

nharper
Copy link
Collaborator

@nharper nharper commented Sep 11, 2024

Multiple state transitions in the Update endpoint were broken. This fixes those transitions and deprecates the Rejected status in favor of Removed.

Copy link
Collaborator

@carlosjoan91 carlosjoan91 left a comment

Choose a reason for hiding this comment

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

Approved with a very small nit about a comment. Thanks for the fix

api/update.go Outdated
domainState, found := domainStates[entry.Name]
if !found {
// entry is on the preload list but not marked as
// preloaded or pending removal in the database. Mark it
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: preloaded, pending removal, or pending automated removal (for completeness sake)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Multiple state transitions in the Update endpoint were broken. This
fixes those transitions and deprecates the Rejected status in favor
of Removed.
@nharper nharper merged commit 68ad1ae into chromium:main Sep 12, 2024
2 checks passed
@nharper nharper deleted the update-fix branch September 12, 2024 00:05
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.

2 participants