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

Console command to clean obsolete features #46

Open
nclavaud opened this issue Mar 2, 2022 · 1 comment · May be fixed by #59
Open

Console command to clean obsolete features #46

nclavaud opened this issue Mar 2, 2022 · 1 comment · May be fixed by #59
Labels
Improvement New feature or request
Milestone

Comments

@nclavaud
Copy link
Contributor

nclavaud commented Mar 2, 2022

Hey @trompette

We have been using this bundle for quite a while now - 🙌 - and we have many features that are not registered anymore in the bundle configuration, but still present in the database.

I was thinking about ways to clean obsolete (as in "now unregistered") features and this is what came to mind:

  1. a CLI command to forget about a specific feature, like feature-toggles:forget my_feature
  2. a CLI command to forget about all unregistered features, like feature-toggles:forget-all

Option 2 is clearly what I need, but maybe two high-level. Option 1 would a good start, but to be really helpful we would need a way to list all features in database, registered or not.

I think both options would need something like FeatureRegistry::getDefinitions() or listDefinitions() at some point.

What do you think?

@trompette trompette added the Improvement New feature or request label Mar 3, 2022
@trompette
Copy link
Owner

trompette commented Mar 3, 2022

Hi @nclavaud!

I think a new CLI command would be a nice addition indeed.

Option 2 looks like the way to go, with a descriptive name like feature-toggles:clean-obsolete-features.

@nclavaud nclavaud linked a pull request Mar 27, 2024 that will close this issue
@trompette trompette added this to the 5.2.0 milestone Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants