-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conversation
@@ -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) |
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.
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.
lgtm |
/retest |
1 similar comment
/retest |
29f2874
to
575f2ae
Compare
/retest |
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.
lgtm!
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
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.