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

feat: update org feature flags backend #10446

Merged
merged 24 commits into from
Nov 20, 2024
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 Oct 31, 2024
ed8e516
implement feature flag resolver and dataloaders to get all flags
nickoferrall Nov 1, 2024
c734ba1
implement toggle feature flag
nickoferrall Nov 1, 2024
5fff7ec
update dataloader
nickoferrall Nov 4, 2024
e943ab4
add checks in toggle feature flag mutation
nickoferrall Nov 4, 2024
ebbbb67
feature flag subscription working
nickoferrall Nov 4, 2024
412f30d
add lookup
nickoferrall Nov 5, 2024
dde53d2
Merge branch 'feat/add-use-ai' into feat/org-feature-flags-dynamic
nickoferrall Nov 5, 2024
f447d71
merge useAi
nickoferrall Nov 5, 2024
52d0507
clean up
nickoferrall Nov 5, 2024
74f684f
info icon centered
nickoferrall Nov 5, 2024
f0003d9
fix codegen error
nickoferrall Nov 5, 2024
ad7dc0e
Revert changes to yarn.lock
nickoferrall Nov 5, 2024
bb8f42e
fix ToggleFeatureFlagSuccess ts error
nickoferrall Nov 5, 2024
c2e559d
update enabled type
nickoferrall Nov 6, 2024
7e81e1c
Merge branch 'feat/feature-flags-ui' into feat/org-feature-flags-dynamic
nickoferrall Nov 6, 2024
85f77a6
only org admin can see ui
nickoferrall Nov 6, 2024
fd693f6
update err message
nickoferrall Nov 6, 2024
93fa3cf
update props
nickoferrall Nov 6, 2024
cf6af28
seperate owned feature flag and feature flag
nickoferrall Nov 15, 2024
947178a
state validScope type
nickoferrall Nov 15, 2024
0620a0d
chore: remove pg.d.ts from version control
nickoferrall Nov 18, 2024
0d2fdae
update featureFlag type in index.d.ts
nickoferrall Nov 18, 2024
f1dd5c4
feat: implement toggle ai features mutation (#10457)
nickoferrall Nov 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update enabled type
nickoferrall committed Nov 6, 2024
commit c2e559d7958cdbf35ee741df11359e90dde8326b
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
Copy link
Member

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 like UpdateFeatureFlagSuccess that returns a FeatureFlag won't have enabled as a field. This is technically OK since enabled is optional, but it's not very expressive because we're basically using the same FeatureFlag type for 2 different types of objects (a FeatureFlag, and a FeatureFlagWithOwner). i would keep enabled off this object or make a second object like OwnedFeatureFlag to express that they're different

"""
enabled: Boolean!
enabled: Boolean
}