-
Notifications
You must be signed in to change notification settings - Fork 336
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: update org feature flags backend #10446
Merged
nickoferrall
merged 24 commits into
feat/feature-flags-ui
from
feat/org-feature-flags-dynamic
Nov 20, 2024
+688
−165
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c2612ec
feat: add use ai to org
nickoferrall ed8e516
implement feature flag resolver and dataloaders to get all flags
nickoferrall c734ba1
implement toggle feature flag
nickoferrall 5fff7ec
update dataloader
nickoferrall e943ab4
add checks in toggle feature flag mutation
nickoferrall ebbbb67
feature flag subscription working
nickoferrall 412f30d
add lookup
nickoferrall dde53d2
Merge branch 'feat/add-use-ai' into feat/org-feature-flags-dynamic
nickoferrall f447d71
merge useAi
nickoferrall 52d0507
clean up
nickoferrall 74f684f
info icon centered
nickoferrall f0003d9
fix codegen error
nickoferrall ad7dc0e
Revert changes to yarn.lock
nickoferrall bb8f42e
fix ToggleFeatureFlagSuccess ts error
nickoferrall c2e559d
update enabled type
nickoferrall 7e81e1c
Merge branch 'feat/feature-flags-ui' into feat/org-feature-flags-dynamic
nickoferrall 85f77a6
only org admin can see ui
nickoferrall fd693f6
update err message
nickoferrall 93fa3cf
update props
nickoferrall cf6af28
seperate owned feature flag and feature flag
nickoferrall 947178a
state validScope type
nickoferrall 0620a0d
chore: remove pg.d.ts from version control
nickoferrall 0d2fdae
update featureFlag type in index.d.ts
nickoferrall f1dd5c4
feat: implement toggle ai features mutation (#10457)
nickoferrall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading status checks…
update enabled type
commit c2e559d7958cdbf35ee741df11359e90dde8326b
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,5 @@ type FeatureFlag { | |
""" | ||
Whether the flag is enabled for an owner or not | ||
""" | ||
enabled: Boolean! | ||
enabled: Boolean | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
-1
enabled
is a property of FeatureFlagOwner, so a type likeUpdateFeatureFlagSuccess
that returns a FeatureFlag won't have enabled as a field. This is technically OK sinceenabled
is optional, but it's not very expressive because we're basically using the sameFeatureFlag
type for 2 different types of objects (a FeatureFlag, and a FeatureFlagWithOwner). i would keepenabled
off this object or make a second object likeOwnedFeatureFlag
to express that they're different