-
Notifications
You must be signed in to change notification settings - Fork 17
feat: deprecate selector body field #199
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -30,7 +30,7 @@ message SyncFlagsRequest { | |||||
| // flag configurations from a collection, select the source of the flag or combine this to any desired underlying | ||||||
| // filtering mechanism. | ||||||
| // ex:- selector: 'source=database,app=weatherapp' | ||||||
| string selector = 2; | ||||||
| string selector = 2 [deprecated = true]; // remember to reserve field number 2 if this is removed; | ||||||
| } | ||||||
|
|
||||||
| // SyncFlagsResponse is the server response containing feature flag configurations and the state | ||||||
|
|
@@ -54,7 +54,7 @@ message FetchAllFlagsRequest { | |||||
| // flag configurations from a collection, select the source of the flag or combine this to any desired underlying | ||||||
| // filtering mechanism. | ||||||
| // ex:- selector: 'source=database,app=weatherapp' | ||||||
| string selector = 2; | ||||||
| string selector = 2 [deprecated = true]; // remember to reserve field number 2 if this is removed; | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment explaining the deprecation could be more helpful to users of this API. It's good practice to mention what should be used as a replacement. The information about reserving the field is a good implementation detail for maintainers, but guiding users is more important for a deprecation message.
Suggested change
|
||||||
| } | ||||||
|
|
||||||
| // FetchAllFlagsResponse is the server response containing feature flag configurations | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment explaining the deprecation could be more helpful to users of this API. It's good practice to mention what should be used as a replacement. The information about reserving the field is a good implementation detail for maintainers, but guiding users is more important for a deprecation message.