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

Do not assume there is a local history when checking if a commit is within project history. #3431

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Aug 1, 2024

BugDX-2992 Nightly failure: TestArtifactsIntegrationTestSuite/TestArtifacts_Download_Remote

@mitchell-as mitchell-as marked this pull request as ready for review August 1, 2024 15:24
@@ -888,16 +888,18 @@ func GetCommitWithinCommitHistory(currentCommitID, targetCommitID strfmt.UUID, a
// This function exists primarily as an existence check because the buildplanner API currently
// accepts a query for a org/project#commitID even if commitID does not belong to org/project.
// See DS-1705 (yes, DS, not DX).
func GetCommitWithinProjectHistory(commitID strfmt.UUID, owner, name string, localCommitID strfmt.UUID, auth *authentication.Auth) (*mono_models.Commit, error) {
func GetCommitWithinProjectHistory(commitID strfmt.UUID, owner, name string, localCommitID *strfmt.UUID, auth *authentication.Auth) (*mono_models.Commit, error) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: We may want to consider renaming commitID to searchCommitID as it is hard to determine what the difference in commitID and localCommitID are. In fact, for the state export buildplan use-case I believe these two commit IDs will be the same, which further adds to the confusion.

@mitchell-as mitchell-as merged commit eb977f7 into version/0-46-0-RC1 Aug 2, 2024
11 of 14 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-2992 branch August 2, 2024 15:58
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.

2 participants