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

Add LocalSettingsRepositoryContract #272

Conversation

sebastiandedeyne
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Related Issue Fix #123
Need Doc update not necessarily

Describe your change

We're working on a multi-tenant app and would like more fine-grained control over how config is stored. Since LocalSettingsRepository is final, we're not able to extend it to modify (see #222 for a previous attempt to make it extendable).

I respect the decision to keep everything final, so instead I propose creating a contract for the LocalSettingsRepository, so package users may bind their own implementation to the IoC.

What problem is this fixing?

Provides more control over local configuration storage, useful when dealing with multiple environments (see #123) or multi-tenant applications.

@sebastiandedeyne sebastiandedeyne force-pushed the feat/local-settings-repository-contract branch from 50a5d3a to 4094fb2 Compare March 17, 2021 13:46
@sebastiandedeyne
Copy link
Contributor Author

Tests are failing but I don't think that's related to this PR.

Copy link
Contributor

@DevinCodes DevinCodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @sebastiandedeyne !

The tests were not failing because of your code indeed, there's an issue with one of the projects we're using to generate credentials. Sorry for the inconvenience.

@DevinCodes DevinCodes merged commit f9d1df6 into algolia:master Mar 17, 2021
@DevinCodes
Copy link
Contributor

Just released this in v1.15.0, thank you for contributing and happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index configuration file per environment
2 participants