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

Install and initialise flagsmith #14

Merged
merged 4 commits into from
Apr 23, 2023
Merged

Conversation

vexuas
Copy link
Owner

@vexuas vexuas commented Apr 23, 2023

Context

Flagsmith is an open source feature flag service. Normally I don't really use feature flags for my personal projects but I want to migrate to the v2 endpoint of the nekos API. I could just migrate instantly but it's a bit unstable right now with the owner in the middle of active development and figuring out the devops. Opted to use flagsmith instead which will check if the use_nekos_api_v2 is enabled whenever the /image command is triggered. If it is, we'll use the v2 handlers. Else stick with the v1 ones.

This does require an additional environment variable tho: FLAGSMITH_KEY

nekos v2 flagsmith

Change

  • Install flagsmith
  • Initialise and pass flagsmith to commands
  • Add condition if flag is enabled

@vexuas vexuas added the tweaks Small changes that aren't bug fixes or tests. Increments the patch version when merged label Apr 23, 2023
@vexuas vexuas merged commit 8f3e86b into develop Apr 23, 2023
@vexuas vexuas deleted the feature/install-flagsmith branch April 23, 2023 08:03
@vexuas vexuas mentioned this pull request Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tweaks Small changes that aren't bug fixes or tests. Increments the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant