-
Notifications
You must be signed in to change notification settings - Fork 325
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
Feature flag refactoring (part 1) #4181
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
b87ad05
Rename feature types
pcapriotti 18423bd
Cleanup LockableFeature
pcapriotti d1b6aa5
Cleanup LockableFeaturePatch
pcapriotti b8822a2
Remove FeatureLockBase
pcapriotti 3de1a1f
Cleanup Feature
pcapriotti d6ec0b3
Remove unused function
pcapriotti 6db8d66
Replace adhoc default methods with def
pcapriotti bd932f4
Move MakeFeature to a separate module
pcapriotti f9fa49f
Create StoredFeature type class
pcapriotti 05a54ba
Abstract setFeature
pcapriotti bb9ddd1
Remove StoredFeature type class
pcapriotti 41fd3e0
Unify FeatureReadRow and FeatureWriteRow
pcapriotti 1093a94
Add lockStatusColumn to MakeFeature
pcapriotti 24fc44e
Turn featureColumns into a list
pcapriotti 3ba7688
Extend MakeFeature abstraction to nullary features
pcapriotti c503c87
Use Tagged to improve type inference
pcapriotti f0f551c
Add storeFeatureLockStatus
pcapriotti aa5183c
Use TH to generate feature singleton cases
pcapriotti 325b298
Rename unDbFeature to applyDbFeature
pcapriotti a15c86b
[feat] galley - make compile with AllFeatures represented as NP
MangoIV e00b538
Incorporate lock status in feature queries
pcapriotti 2bf29b7
Automate concatenation of rows
pcapriotti 00f853a
[chore] add changelog entry
MangoIV 9d328b3
Remove todo
pcapriotti 70f1a1f
Add haddock to generateSOPInstances
pcapriotti 59ce0ad
Recurse on all features in Arbitray Event instance
pcapriotti 1b0d45b
Remove redundant hiding clause
pcapriotti cae9fef
Remove unnecessary extensions
pcapriotti d71e2e2
Rename mkFeature and unmkFeature
pcapriotti 835f925
Add generated code excerpt to generateTupleP
pcapriotti cb76183
Remove unnecessary constraint
pcapriotti ca74ec3
Lint
pcapriotti e4737a1
Finish implementation of getAllFeatureConfigs
pcapriotti e269b7e
Fix conference calling flag assertions
pcapriotti 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
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Refactor feature flags | ||
- Improved naming slightly. Features types are now called `Feature`, `LockableFeature` and `LockableFeaturePatch` | ||
- Turned `AllFeatures` into an extensible record type | ||
- Removed `WithStatusBase` barbie. | ||
- Deleted obsolete `computeFeatureConfigForTeamUser` | ||
- Abstracted `getFeature` and `setFeature` | ||
- Abstracted getAllTeamFeatures |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
I think this might be possible with recursion on
SList
which reifies the type level list. You also need a csontraint on all elements, so perhaps smth likecpara_SList
might work this time.