Title: Support snapshot reference by zhiyuanliang-ms · Pull Request #232 · Azure/AppConfiguration-JavaScriptProvider · GitHub
Open Graph Title: Support snapshot reference by zhiyuanliang-ms · Pull Request #232 · Azure/AppConfiguration-JavaScriptProvider
X Title: Support snapshot reference by zhiyuanliang-ms · Pull Request #232 · Azure/AppConfiguration-JavaScriptProvider
Description: Snapshot Reference A snapshot reference is a configuration setting that references a snapshot in the same App Configuration store. When loaded, the provider resolves it and adds all key-values from that snapshot. Using snapshot references enables switching between snapshots at runtime, unlike using a snapshot selector, which requires code changes and/or restarts to switch to a new snapshot. The content type of a snapshot reference is: "application/json; profile=\"https://azconfig.io/mime-profiles/snapshot-ref\"; charset=utf-8"; Behavior difference from .NET provider Different from PR #689 The snapshot api design in JS provider is different from .NET provider. In JS provider, keyvalue and feature flag are fully decoupled. The load and refresh operations for key values and feature flags are performed separatedly. The selector for key value will not load feature flags, vice versa. You must explicitly specify selectors for them. To load key value or feature flag from snapshot, you must use a snapshot selector i.e. SettingSelector.snapshotName. When you specify a snapshot selector for key values, even if there is any feature flag in that snapshot, the feature flag will not be loaded when loading key values. You must also specify the same snapshot selector in FeatureFlagOptions. It is a library level choice. We won't break it. So, when resolving a snapshot reference, feature flags in the snapshot will be ignored. Note: This PR is not ready for review yet. It depends on the Azure JS SDK adding support for snapshot reference types. After that update, I’ll replace all existing helper functions with the SDK ones.
Open Graph Description: Snapshot Reference A snapshot reference is a configuration setting that references a snapshot in the same App Configuration store. When loaded, the provider resolves it and adds all key-values from...
X Description: Snapshot Reference A snapshot reference is a configuration setting that references a snapshot in the same App Configuration store. When loaded, the provider resolves it and adds all key-values from...
Opengraph URL: https://github.com/Azure/AppConfiguration-JavaScriptProvider/pull/232
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a2280df9-a7b0-737f-853f-9ce9beadc4ed |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B74A:3EF125:B4C8F:F38EC:698EDD4C |
| html-safe-nonce | 39a532cc629e273e29520b55832d0ce88ddaf391ed6ffb2172431d1842ccf3c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzRBOjNFRjEyNTpCNEM4RjpGMzhFQzo2OThFREQ0QyIsInZpc2l0b3JfaWQiOiIxNjc3OTkxMTI2OTA3NTI4NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35bf13566f487b700e7e2574cf7ebdfbf937374677d761b6dfdc447b76b9d499 |
| hovercard-subject-tag | pull_request:2880802686 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/Azure/AppConfiguration-JavaScriptProvider/pull/232/files |
| twitter:image | https://avatars.githubusercontent.com/u/141655842?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/141655842?s=400&v=4 |
| og:image:alt | Snapshot Reference A snapshot reference is a configuration setting that references a snapshot in the same App Configuration store. When loaded, the provider resolves it and adds all key-values from... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/Azure/AppConfiguration-JavaScriptProvider git https://github.com/Azure/AppConfiguration-JavaScriptProvider.git |
| octolytics-dimension-user_id | 6844498 |
| octolytics-dimension-user_login | Azure |
| octolytics-dimension-repository_id | 688057518 |
| octolytics-dimension-repository_nwo | Azure/AppConfiguration-JavaScriptProvider |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 688057518 |
| octolytics-dimension-repository_network_root_nwo | Azure/AppConfiguration-JavaScriptProvider |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width