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

Update update #6336

Closed
wants to merge 22 commits into from
Closed

Update update #6336

wants to merge 22 commits into from

Conversation

gearama
Copy link
Member

@gearama gearama commented Jan 13, 2025

closes #6329
Based on the others languages mplementations the update and merge methods are being combined, upsertKind becomes updatemode, and the update method takes a new param

Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the contributing guide.

  • C++ Guidelines
  • Doxygen docs
  • Unit tests
  • No unwanted commits/changes
  • Descriptive title/description
    • PR is single purpose
    • Related issue listed
  • Comments in source
  • No typos
  • Update changelog
  • Not work-in-progress
  • External references or docs updated
  • Self review of PR done
  • Any breaking changes?

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-data-tables-cpp

Comment on lines +241 to +242
auto updateResponse
= m_tableClient->UpdateEntity(entity, Azure::Data::Tables::Models::UpdateMode::Update);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do the tests here validate the difference between Update and Merge, based on the observable behavioral difference on the returned response or model?

E.g. if I change Update to Merge here, will the test fail or continue to pass?

It would be a good idea to add some assert to check the enum is honored as expected.

Copy link
Contributor

@ahsonkhan ahsonkhan left a comment

Choose a reason for hiding this comment

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

Seems reasonable to align with other languages.

I would recommend having @LarryOsterman to review/approve before merging given the offline discussion.

@gearama gearama closed this Jan 13, 2025
@gearama
Copy link
Member Author

gearama commented Jan 13, 2025

reopening so i don't lose it till we come to a conclusion

@gearama gearama reopened this Jan 13, 2025
Copy link
Member

@antkmsft antkmsft left a comment

Choose a reason for hiding this comment

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

FWIW, it looks good to me, I don't see problems, but please check with the other team members (Larry, Ahson) who thought deeper and had more thoughts about it.

@gearama gearama closed this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mark methods on TableClient and TableServiceClient as const
4 participants