microsoft / microsoft/api-guidelines
unknownFutureValue in Evolvable enums
Open
@OlgaPodo is already working on this.
Since Jul 22, 2022.
- Dominant language
- No language data
- Stars
- 23.3k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
About the unknownFutureValue from Evovable enums, I have some questions regarding to how it works.
- Do developers need to convert the values after unknownFutureValue to unknownFutureValue in the code? I heard this is automatically handled. If it's automatically handled, how is the value parsed/shows when the server receives it (is it converted from unknownFutureValue to all values after unknownFutureValue in the filter)?
- I see there's a sunset date for the process of deprecation to move the unknownFutureValue to the very bottom of the enum to make the values not hidden by default. Do we need to support the previous version of the unkonwnFutureValue until the sunset date? Again, is it automatically handled? If so, how? if not, how do we identify different versions
- When we change the order of unknownFutureValue user will need to change the code on their side anyways, which would defeat the purpose of unknownFutureValue(I suppose the original design was for user to include all values of the version it was using and include unknownFutureValue for additional values. But after changing the version unknownFutureValue actually doesn't contain the values it previously covered. This will also create confusion as user would suppose unknownFutureValue covers everything)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.