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.
As a pre-requisite to #312 we needed a way for users to gradually enrol into the new functionality as they receive 'training', which needed to persist across machines and work consistently in different tools, so storing a new column in the DB seemed sensible ...
featureFlags
on theUser
tableMyUser
type (just a JSON string, parsed in the client)feautureFlags
shared around the app via the GlobalStateContextchangeFeatureFlag
which writes key/values to the featureFlags JSONB columnpinboardFeatureFlag_
, dropping them from URL once the new mutationchangeFeatureFlag
has been called with the new value (true
orfalse
) -- this allows trainers to provide a URL with feature flag query param to users and then it will remain on for the user indefinitely following their trainingonManuallyOpenedPinboardIdsChanged
to becomeonMyUserChanges
and now fires based on the new mutation too, which allows all connected clients to hear about changes to featureFlags and react accordinglyadd new database column script run against: