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

Fixes 3353: Snapshot inconsistent for API/UI #567

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

Andrewgdewar
Copy link
Contributor

Summary

Snapshot create-on-edit is inconsistent between API and UI
This was caused by the URL not being checked correctly before enqueueing snapshot/introspect tasks.
This card corrects that issue.

Testing steps

  • From the api or UI, update a repository (patch) with the original URL in the request.
    Without this change, introspection/snapshot tasks will always be enqueued.
    With it, the tasks will correctly, be ignored, as those two tasks are contingent on a URL change.

@Andrewgdewar Andrewgdewar marked this pull request as ready for review February 6, 2024 21:36
@Andrewgdewar Andrewgdewar changed the title Fixes 3353: Snapshot create-on-edit is inconsistent between API and UI Fixes 3353: Snapshot create-on-edit is inconsistent for API/UI Feb 6, 2024
@Andrewgdewar Andrewgdewar changed the title Fixes 3353: Snapshot create-on-edit is inconsistent for API/UI Fixes 3353: Snapshot inconsistent for API/UI Feb 6, 2024
@@ -863,8 +863,6 @@ func (suite *ReposSuite) TestFullUpdate() {
}, nil)
suite.reg.RepositoryConfig.On("Update", test_handler.MockOrgId, uuid, expected).Return(false, nil)

mockTaskClientEnqueueIntrospect(suite.tcMock, "https://example.com", repoUuid)
Copy link
Contributor Author

@Andrewgdewar Andrewgdewar Feb 6, 2024

Choose a reason for hiding this comment

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

This test was presuming that the enqueue task would happen if the URL was not updated.
With this change, this was necessary to remove from the test.

@jlsherrill
Copy link
Member

@swadeley
Copy link
Member

swadeley commented Feb 7, 2024

lgtm

@swadeley
Copy link
Member

swadeley commented Feb 7, 2024

/retest

1 similar comment
@swadeley
Copy link
Member

swadeley commented Feb 9, 2024

/retest

@swadeley
Copy link
Member

/retest

Copy link
Contributor

@rverdile rverdile left a comment

Choose a reason for hiding this comment

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

lgtm!

@swadeley swadeley merged commit 1860232 into content-services:main Feb 13, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants