Skip to content

Comments

Use feature singletons in TeamFeatureStore#3308

Merged
pcapriotti merged 3 commits intodevelopfrom
pcapriotti/feature-singletons
May 23, 2023
Merged

Use feature singletons in TeamFeatureStore#3308
pcapriotti merged 3 commits intodevelopfrom
pcapriotti/feature-singletons

Conversation

@pcapriotti
Copy link
Contributor

@pcapriotti pcapriotti commented May 23, 2023

This introduces a FeatureSingleton GADT, which is then used by the Cassandra interpretation of TeamFeatureStore to determine how to read and write into the database.

Feature singletons avoids having to pass a database-specific constraint to the effect itself, and as a consequence makes it possible to remove the db type variable from all the code that uses the TeamFeature effect.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

This introduces a `FeatureSingleton` GADT, which is then used by the
Cassandra interpretation of `TeamFeatureStore` to determine how to read
and write into the database.

Feature singletons avoids having to pass a database-specific constraint
to the effect itself, and as a consequence makes it possible to remove
the `db` type variable from all the code that uses the `TeamFeature`
effect.
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label May 23, 2023
@smatting smatting self-requested a review May 23, 2023 12:18
@pcapriotti pcapriotti merged commit f657ae3 into develop May 23, 2023
@pcapriotti pcapriotti deleted the pcapriotti/feature-singletons branch May 23, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants