[AppConfig] Make sure the consistency behaviors between languages. #22789
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For the remaining consistency issue that java has in Azure/azure-sdk#2801.
Changing the strongly-typed properties after setting the value to non-valid feature flag
C#: Value is updated. Strongly typed properties throw on access.
Java: value is updated but don't automatically convert to the strongly-typed property value. no error throws [need to be addressed] // [Resolved] Strongly typed properties throw on access.
Python: Value is updated. Properties throw
ValueError
on access.JS: Value is updated.
parseFeatureFlag
throws since the value can't be parsedAccessing strongly typed properties after setting a different feature flag JSON
C#: Value is updated. Strongly typed properties return new values out of the parsed JSON
Java: value is updated but don't automatically convert to the strongly-typed property value. [need to be addressed]
// [Resolved] Strongly typed properties return new values out of the parsed JSON
Python: Value is updated, properties return new values out of the parsed JSON, returns
None
if it is not present.JS: value is updated,
parseFeatureFlag
does parse the new valueAccessing value after changing strongly-typed properties.
Value
reflect the change?C#: Yes
Java: Yes
Python: Yes
JS: Yes