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

Archiving Flags #317

Closed
dabeeeenster opened this issue Sep 15, 2021 · 14 comments · Fixed by #329
Closed

Archiving Flags #317

dabeeeenster opened this issue Sep 15, 2021 · 14 comments · Fixed by #329
Assignees
Labels
api Issue related to the REST API feature New feature or request front-end Issue related to the React Front End Dashboard
Projects

Comments

@dabeeeenster
Copy link
Contributor

Overview

We have had feedback that admin users often want to tidy up/clear up old flags, but are worried about removing the flag from SDK API requests (due to aspects like old Mobile app versions needing old/stale flags).

Proposal

Add an Archive button to the flag modal. Archiving a flag removes it from the default flag list for a project. If an environment has any archived flags, indicate the number here:

image

e.g.

🚀 Features 9 Archived Flags

The "9 Archived Flags" button would act as a toggle. Clicking on "9 Archived Flags" would toggle showing/hiding the archived flags in the list.

@dabeeeenster dabeeeenster added feature New feature or request front-end Issue related to the React Front End Dashboard api Issue related to the REST API labels Sep 15, 2021
@dabeeeenster dabeeeenster added this to Backlog in Roadmap Sep 15, 2021
@dabeeeenster dabeeeenster moved this from Backlog to In progress in Roadmap Sep 21, 2021
@gagantrivedi
Copy link
Member

Since this endpoint is paginated(with page size of 10 and no way for client to change that, although we can enable that) I think we have to implement pagination for this endpoint.

@dabeeeenster
Copy link
Contributor Author

@kyle-ssg how is the main list of features called from the front end dashboard? Is it doing paging in any way?

@matthewelwell
Copy link
Contributor

@dabeeeenster @gagantrivedi I remembered this morning (and verified) that we hacked this for production only. Check out app.settings.production, it has this line:

REST_FRAMEWORK["PAGE_SIZE"] = 999

@dabeeeenster
Copy link
Contributor Author

OK yes lets fix that 🤣

@dabeeeenster
Copy link
Contributor Author

Needs Front End @kyle-ssg

@dabeeeenster dabeeeenster added this to the Front End Collection milestone Sep 28, 2021
@kyle-ssg
Copy link
Member

kyle-ssg commented Sep 28, 2021

Note: for tech debt I'll be adding page_size=999 as a get param to /projects/:id/features in order to remove the need for the global page_size param. (Done in #357)

@kyle-ssg
Copy link
Member

Frontend tested on staging and pushed live under the flag archive_flags #356

@dabeeeenster
Copy link
Contributor Author

dabeeeenster commented Sep 28, 2021

Archived flags should be hidden by default. Archiving flags on staging works but they are still showing in the default list.

@kyle-ssg kyle-ssg removed this from the Front End ToDo milestone Sep 28, 2021
@kyle-ssg
Copy link
Member

kyle-ssg commented Sep 28, 2021

image
Not true?  Archived toggle is deselected by default.

@dabeeeenster
Copy link
Contributor Author

I see this as the default page:

image

Also toggling archive has no effect for me

@kyle-ssg
Copy link
Member

kyle-ssg commented Sep 28, 2021

And if you select archived does it show an additional 2 flags?

@dabeeeenster
Copy link
Contributor Author

dabeeeenster commented Sep 28, 2021

Video

Nothing in JS console

@kyle-ssg
Copy link
Member

Ok, that only happens in the case where no tags are selected , fixed here #367

@gagantrivedi
Copy link
Member

@dabeeeenster safe to close?

@dabeeeenster dabeeeenster moved this from In progress to Done in Roadmap Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API feature New feature or request front-end Issue related to the React Front End Dashboard
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants