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

[App Config] updateSyncToken method #14507

Merged
11 commits merged into from
Mar 26, 2021

Conversation

HarshaNalluru
Copy link
Member

@HarshaNalluru HarshaNalluru commented Mar 25, 2021

TODOs

Reference: PR from .NET Azure/azure-sdk-for-net#18487

@ghost ghost added the App Configuration Azure.ApplicationModel.Configuration label Mar 25, 2021
@HarshaNalluru HarshaNalluru marked this pull request as ready for review March 25, 2021 20:25
@HarshaNalluru HarshaNalluru marked this pull request as draft March 25, 2021 20:26
Copy link
Member

@richardpark-msft richardpark-msft left a comment

Choose a reason for hiding this comment

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

Small changes.

{ syncTokens } as InternalAppConfigurationClientOptions
);
assert.equal(
client["_syncTokens"]["_currentSyncTokens"].size,
Copy link
Member

Choose a reason for hiding this comment

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

You passed in syncTokens here so you don't need to delve into the object private fields to get it.

Copy link
Member Author

Choose a reason for hiding this comment

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

client["_syncTokens"] -> syncTokens

// user treats token as an opaque value (note - this _does_ mutate the appconfigclient)
// however, this mutations happens regardless since the system can and does return
// sync token headers during normal operation.
client.updateSyncToken(eventGridEvent.syncToken);
Copy link
Member

Choose a reason for hiding this comment

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

Just to check - there's nothing to test here. I'd remove this test.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed

@HarshaNalluru HarshaNalluru marked this pull request as ready for review March 25, 2021 21:29
Copy link
Member

@richardpark-msft richardpark-msft left a comment

Choose a reason for hiding this comment

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

Looks great!

@ghost
Copy link

ghost commented Mar 26, 2021

Hello @HarshaNalluru!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 9a7195d into Azure:master Mar 26, 2021
jay-most pushed a commit to jay-most/azure-sdk-for-js that referenced this pull request Apr 26, 2021
### TODOs
- [x] Add the new `updateSyncToken` method to `AppConfigurationClient` 
  (Picked up pieces from @richardpark-msft's work here Azure#14342.)
- [x] Add a unit test
- [x] ~~Hoping to add a live test by leveraging the eventgrid SDK~~
- [x] Changelog
- [x] Hold off merging - wait for 1.1.1 to be released
- [x] What's the new version number for preview? - `1.2.0-beta.1` fine?
  
Reference: PR from .NET Azure/azure-sdk-for-net#18487
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Configuration Azure.ApplicationModel.Configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants