Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

fix: fixes issue where first flag listener callback was not triggered… #97

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

tanderson-ld
Copy link
Contributor

@tanderson-ld tanderson-ld commented Jun 4, 2024

… if active context is a multicontext

Requirements

  • I have added test coverage for new or changed functionality
  • I have followed the repository's pull request submission guidelines
  • I have validated my changes against all supported platform versions

Related issues

#70

Describe the solution you've provided

Key should have been FullyQualifiedKey. This was a bug introduced during the users to context work.

private readonly Context _otherUser = Context.New("other-key");

private readonly Context _basicUser = Context.NewMulti(Context.New(ContextKind.Of("user"), "user-key1"), Context.New(ContextKind.Of("custom-kind"), "custom-key1"));
private readonly Context _otherUser = Context.NewMulti(Context.New(ContextKind.Of("user"), "user-key2"), Context.New(ContextKind.Of("custom-kind"), "custom-key2"));
Copy link
Contributor Author

@tanderson-ld tanderson-ld Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: Using multi-contexts in the test here causes the tests to fail without the fix, so this is sufficient test coverage now.

@tanderson-ld tanderson-ld merged commit 6bf8ec1 into main Jun 5, 2024
2 checks passed
@tanderson-ld tanderson-ld deleted the ta/sc-246089/multi-context-flag-listener-issue branch June 5, 2024 18:17
tanderson-ld pushed a commit that referenced this pull request Jun 5, 2024
🤖 I have created a release *beep* *boop*
---


##
[5.2.1](5.2.0...5.2.1)
(2024-06-05)


### Bug Fixes

* fixes issue where first flag listener callback was not triggered…
([#97](#97))
([6bf8ec1](6bf8ec1))

---
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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants