Skip to content
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

fix: invalid scoped-sync responses for empty flags #1352

Merged
merged 4 commits into from
Jul 5, 2024

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented Jul 5, 2024

Fixes an issue where invalid flag payloads were returned on sync requests with scopes if the flag set was empty.

Below is an example of the bug.

$ grpcurl -import-path /home/todd/temp -proto sync.proto -plaintext localhost:8015 flagd.sync.v1.FlagSyncService/FetchAllFlags
{
  "flagConfiguration": "{\"flags\":{}}"
}
$ grpcurl -import-path /home/todd/temp -proto sync.proto -plaintext -d '{"selector":"../config/samples/example_flags.flagd.json"}' localhost:8015 flagd.sync.v1.FlagSyncService/FetchAllFlags 
{}

@toddbaert toddbaert requested a review from a team as a code owner July 5, 2024 15:44
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 5, 2024
Copy link

netlify bot commented Jul 5, 2024

Deploy Preview for polite-licorice-3db33c canceled.

Name Link
🔨 Latest commit 8a7e186
🔍 Latest deploy log https://app.netlify.com/sites/polite-licorice-3db33c/deploys/6688315182deb60008b4614e

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert force-pushed the fix/bad-sync-response-with-scopes branch from efbfa9a to 8a7e186 Compare July 5, 2024 16:54
@toddbaert toddbaert merged commit 51371d2 into main Jul 5, 2024
14 checks passed
@toddbaert toddbaert deleted the fix/bad-sync-response-with-scopes branch July 5, 2024 18:25
@github-actions github-actions bot mentioned this pull request Jul 5, 2024
toddbaert pushed a commit that referenced this pull request Jul 8, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.11.1</summary>

##
[0.11.1](flagd/v0.11.0...flagd/v0.11.1)
(2024-07-08)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.2
([#1342](#1342))
([efdd921](efdd921))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.0
([#1340](#1340))
([1e487b4](1e487b4))
* **deps:** update module golang.org/x/net to v0.27.0
([#1353](#1353))
([df9834b](df9834b))
* **deps:** update module google.golang.org/grpc to v1.65.0
([#1346](#1346))
([72a6b87](72a6b87))
* **deps:** update opentelemetry-go monorepo
([#1347](#1347))
([37fb3cd](37fb3cd))
* invalid scoped-sync responses for empty flags
([#1352](#1352))
([51371d2](51371d2))
</details>

<details><summary>flagd-proxy: 0.6.4</summary>

##
[0.6.4](flagd-proxy/v0.6.3...flagd-proxy/v0.6.4)
(2024-07-08)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.2
([#1342](#1342))
([efdd921](efdd921))
* **deps:** update module github.com/open-feature/flagd/core to v0.10.0
([#1340](#1340))
([1e487b4](1e487b4))
* **deps:** update module golang.org/x/net to v0.27.0
([#1353](#1353))
([df9834b](df9834b))
* **deps:** update module google.golang.org/grpc to v1.65.0
([#1346](#1346))
([72a6b87](72a6b87))
* **deps:** update opentelemetry-go monorepo
([#1347](#1347))
([37fb3cd](37fb3cd))
</details>

<details><summary>core: 0.10.1</summary>

##
[0.10.1](core/v0.10.0...core/v0.10.1)
(2024-07-08)


### 🐛 Bug Fixes

* **deps:** update module buf.build/gen/go/open-feature/flagd/grpc/go to
v1.4.0-20240215170432-1e611e2999cc.2
([#1342](#1342))
([efdd921](efdd921))
* **deps:** update module golang.org/x/crypto to v0.25.0
([#1351](#1351))
([450cbc8](450cbc8))
* **deps:** update module golang.org/x/mod to v0.19.0
([#1349](#1349))
([6ee89b4](6ee89b4))
* **deps:** update module google.golang.org/grpc to v1.65.0
([#1346](#1346))
([72a6b87](72a6b87))
* **deps:** update opentelemetry-go monorepo
([#1347](#1347))
([37fb3cd](37fb3cd))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Signed-off-by: OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants