-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat!: struct for metadata for consistency and power #130
Conversation
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.
imho the breaking change is fine since flagd still supports the non-namespaced protos and not all languages are still using the new namespaced protos.
if the breaking change is a problem, it is worth considering having this under the v2
ns
@toddbaert and I discussed this and we concluded that,
Footnotes |
5f6b854
to
705c84a
Compare
Signed-off-by: Todd Baert <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Agreed, I've done this. This makes all our metadata consistent. Maybe if we could go back in time I'd use map<string, string>, but Struct also will allow us to do more complex stuff too. |
|
Signed-off-by: Todd Baert <[email protected]>
@Kavindu-Dodan @thisthat @bacherfl I've marked the old metadata tag ( Only servers using/consuming the old field should be impacted now. See related SO. |
Good improvement. I think this is the way to go to avoid unnecessary issues between flagd & providers. |
🤖 I have created a release *beep* *boop* --- <details><summary>protobuf: 0.6.0</summary> ## [0.6.0](protobuf-v0.5.4...protobuf-v0.6.0) (2024-02-15) ### ⚠ BREAKING CHANGES * struct for metadata for consistency and power ([#130](#130)) ### ✨ New Features * struct for metadata for consistency and power ([#130](#130)) ([673fc15](673fc15)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This PR alters the new schemas to use maps consistently for all metadata.
Previously, the
getMetadata
RPC was returning a custom key/val response, which is the old proto2 way of doing maps.Additionally, for consistency, I have changed the flag metadata to
map<string, string>
as well. This is a "more" breaking change, but it's consistent and will allow for much stronger typing. If there's a need for more flexibility in flag metadata, we can revert.We can avoid this change if the breaking is a concern, but I think it's save to assume nobody but us are using this new proto.