You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] add sync_context to SyncFlags payload #1635
open-feature/flagd-schemas#183 deprecated the GetMetadata call. Now the sync stream can return the same data, saving providers an RPC call. Providers will do exactly the same thing with this information as they currently do with the GetMetadata call.
Requirements:
implement sync_context field in SyncFlags, which has the same payload as GetMetadata
keep GetMetadata for now, for reverse compatibility
I wanted to just ask questions for my understanding (I am new to the gRPC world and the .proto files so I am learning as I worked on this issue), the sync.proto that is established has sync_context there and numbered(???) stating I believe it is new & optional can be passed and older clients and they will ignore it. If any of that is wrong let me know. 😅
but I know your comment was knowing if the data was in the payload or the other call needs to be made, would documenting the change and making sure for new clients only use the new way while older clients possibly slowly migrate until fully removed be a viable solution (it may not be if I missed some context, which is why I wanted to ask lol.
that is correct, but the sync_context will actually supersede the GetMetadata-Request, and for me currently, it is not clear how we will migrate the clients in a non-breaking way. Our providers currently fetch first the metadata and afterwards the sync endpoint. We can not remove the metadata request at the beginning, because we don't know which version of flagd is running, or if there will be data in the sync payload. So this generates a little bit of confusion for me, how we want to try to solve this, or ensure this behavior. ;)
@aepfli Ohhhh, that makes a lot of sense, and definitely filled in some missing context bu-dum-tss 😅. I was understanding it as the SyncFlags is called first or the base every time and then GetMetadata was called to fill in that missing info from previous versions. I didn’t realize it was called first.
Since we don’t currently know which version is being ran there’s confusion on even to check which method is the one to use, and not wanting to break it until people migrate is the important part. I’m with you now, thanks!
Activity
[-][FEATURE] add sync_context[/-][+][FEATURE] add sync_context to SyncFlags payload[/+]bbland1 commentedon Jun 16, 2025
@aepfli thanks for the review on the PR!
I wanted to just ask questions for my understanding (I am new to the gRPC world and the
.protofiles so I am learning as I worked on this issue), thesync.protothat is established hassync_contextthere and numbered(???) stating I believe it is new & optional can be passed and older clients and they will ignore it. If any of that is wrong let me know. 😅but I know your comment was knowing if the data was in the payload or the other call needs to be made, would documenting the change and making sure for new clients only use the new way while older clients possibly slowly migrate until fully removed be a viable solution (it may not be if I missed some context, which is why I wanted to ask lol.
aepfli commentedon Jun 17, 2025
that is correct, but the
sync_contextwill actually supersede theGetMetadata-Request, and for me currently, it is not clear how we will migrate the clients in a non-breaking way. Our providers currently fetch first the metadata and afterwards the sync endpoint. We can not remove the metadata request at the beginning, because we don't know which version of flagd is running, or if there will be data in the sync payload. So this generates a little bit of confusion for me, how we want to try to solve this, or ensure this behavior. ;)bbland1 commentedon Jun 17, 2025
@aepfli Ohhhh, that makes a lot of sense, and definitely filled in some missing context bu-dum-tss 😅. I was understanding it as the
SyncFlagsis called first or the base every time and thenGetMetadatawas called to fill in that missing info from previous versions. I didn’t realize it was called first.Since we don’t currently know which version is being ran there’s confusion on even to check which method is the one to use, and not wanting to break it until people migrate is the important part. I’m with you now, thanks!
feat: add sync_context to SyncFlags (open-feature#1642)