Skip to content

fix: updated merge functionality - #182

Merged
james-milligan merged 2 commits into
open-feature:mainfrom
james-milligan:bug-fix
Oct 3, 2022
Merged

james-milligan merged 2 commits into
open-feature:mainfrom
james-milligan:bug-fix

Conversation

@james-milligan

Copy link
Copy Markdown
Contributor

Signed-off-by: James-Milligan [email protected]

This PR

  • flag updates are handled on a per source basis, allowing deletions to be recognised
  • adds the Source method to the sync provider interface, returning a string

Related Issues

Fixes #181

How to test

make build
./flagd start -f config/samples/example_flags.json --sync-provider filepath
curl -X POST "localhost:8013/schema.v1.Service/ResolveInt" -d '{"flagKey":"myIntFlag","context":{"color":"yellow"}}' -H "Content-Type: application/json"

returns

{"value":"1", "reason":"DEFAULT", "variant":"one"}

Now change the name of the myIntFlag in config/samples/example_flags.json to notMyIntFlag

curl -X POST "localhost:8013/schema.v1.Service/ResolveInt" -d '{"flagKey":"myIntFlag","context":{"color":"yellow"}}' -H "Content-Type: application/json"

returns

{"code":"not_found","message":"FlagdError:, FLAG_NOT_FOUND"}

Signed-off-by: James-Milligan <[email protected]>
Signed-off-by: James-Milligan <[email protected]>
@james-milligan james-milligan changed the title updated merge functionality fix: updated merge functionality Oct 3, 2022
@beeme1mr

beeme1mr commented Oct 3, 2022

Copy link
Copy Markdown
Member

Ran it locally and it worked great.

@james-milligan
james-milligan merged commit 94d7697 into open-feature:main Oct 3, 2022
@james-milligan
james-milligan deleted the bug-fix branch October 3, 2022 15:20
AlexsJones pushed a commit that referenced this pull request Oct 4, 2022
🤖 I have created a release *beep* *boop*
---


##
[0.2.2](v0.2.1...v0.2.2)
(2022-10-03)


### Bug Fixes

* updated merge functionality
([#182](#182))
([94d7697](94d7697))

---
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>
raphael-wigoutschnigg-dt pushed a commit to open-feature-forking/flagd that referenced this pull request Mar 11, 2025
… v1.9.1 (open-feature#182)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
beeme1mr added a commit that referenced this pull request May 20, 2026
## Summary

Resolved 5 open Dependabot security alerts by bumping vulnerable
dependencies.

## Dependabot Alerts Resolved

| Alert | Package | Severity | Fix |
|-------|---------|----------|-----|
| #179 | `postcss` | **medium** | Bumped from 8.5.8 to 8.5.14 in
`playground-app/package-lock.json` (vite resolves postcss to patched
version naturally, no override needed) |
| #181 | `github.com/go-git/go-git/v5` | **high** | Bumped from 5.18.0
to 5.19.1 in `test/integration/go.mod` |
| #182 | `github.com/go-git/go-billy/v5` | **medium** | Bumped from
5.8.0 to 5.9.0 via go-git upgrade |
| #183 | `github.com/go-git/go-billy/v5` | **high** | Bumped from 5.8.0
to 5.9.0 via go-git upgrade |
| #180 | `github.com/in-toto/in-toto-golang` | **medium** | Bumped from
0.10.0 to 0.11.0 in `test/integration/go.mod` |

## Unresolvable alerts

- **Alert #184** (`github.com/docker/docker`, high) — vulnerable `<=
28.5.2`; no patched Go module version is published yet (latest is
28.5.2; fix is on `moby/moby/v2` 2.0.0-beta.14, a different module path)
- **Alert #185** (`github.com/docker/docker`, medium) — same; no patched
version available on the `docker/docker` module path
- **Alert #186** (`github.com/docker/docker`, high) — same; no patched
version available on the `docker/docker` module path
- **Alert #152** (`github.com/docker/docker`, high) — requires >= 29.3.1
but no patched Go module version is published yet
- **Alert #151** (`github.com/docker/docker`, medium) — same; requires
>= 29.3.1, no patched version available

All docker/docker alerts are transitive deps of `testcontainers-go` in
the orphaned integration-test module; will be resolved when upstream
cuts a Go module under the existing `docker/docker` path or
testcontainers-go migrates to `moby/moby/v2`.

---------

Signed-off-by: Jonathan Norris <[email protected]>
Co-authored-by: Michael Beemer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] flagd doesn't reindex flags on delete

3 participants