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

Change meaning of AddOrUpdate return bool #4885

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

JohnMcPMS
Copy link
Member

@JohnMcPMS JohnMcPMS commented Oct 16, 2024

Issue

The requestor of this new (1.10) API needs to know whether the operation was an add or an update. At the same time, the "was the index modified" return value from Update has always been true for any changes since the manifest hash was added.

Change

Return true when adding and false when updating.

Validation

Updated the unit tests to reflect this semantic shift.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS requested a review from a team as a code owner October 16, 2024 16:19
@msftrubengu
Copy link
Contributor

So picky this requestor

@JohnMcPMS
Copy link
Member Author

So picky this requestor

J'accuse

@JohnMcPMS JohnMcPMS merged commit 9bfeedb into microsoft:master Oct 16, 2024
9 checks passed
@JohnMcPMS JohnMcPMS deleted the addorupdatechange branch October 16, 2024 18:53
ryfu-msft pushed a commit that referenced this pull request Oct 21, 2024
## Issue
The requestor of this new (1.10) API needs to know whether the operation
was an add or an update. At the same time, the "was the index modified"
return value from Update has always been true for any changes since the
manifest hash was added.

## Change
Return `true` when adding and `false` when updating.
ryfu-msft pushed a commit that referenced this pull request Oct 21, 2024
## Issue
The requestor of this new (1.10) API needs to know whether the operation
was an add or an update. At the same time, the "was the index modified"
return value from Update has always been true for any changes since the
manifest hash was added.

## Change
Return `true` when adding and `false` when updating.
ryfu-msft added a commit that referenced this pull request Oct 22, 2024
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