-
Notifications
You must be signed in to change notification settings - Fork 368
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
Show "stale" flags #184
Comments
I think the key thing really is when a feature state associated with a We should also look into whether we even need the |
Yeah I guess just depends if we want to denormalise that bit of data. I'm sort of 50/50 on that. Maybe better to just compute it from the history. |
Update JSON to include |
Since we decided to implement this by adding |
I think what we are essentially trying to do here is something very similar to what audit log refactor will achieve, i.e: track state. |
It would be good to apply rules to stale flags based on flag naming conventions. For example, if a flag begins with |
Wouldnt tags be better for this? |
Yes, perhaps. |
I've been looking into this further and I think the correct solution for this actually puts us on the right path for #794 as well. My suggestion is that we have: A new model entity: Instead of the FE directly updating feature states, it should create a new Once this is in place, stale flags just becomes a case of checking when the last version was created and determining if that is longer than the period allowed for active flags. Some outstanding questions:
Based on this, I believe that this no longer relates to the AuditLog refactor. As such, I'm going to remove the AuditLog refactor label. Thoughts on this @dabeeeenster @kyle-ssg @gagantrivedi ? |
This sounds good to me. Feature versioning is a big improvement too that opens up other powerful features. We could store denormalised data, with the latest version of |
@kyle-ssg other than the order by created data (and showing the created date when ordering by it) are there any other ideas you have in terms of surfacing this feature? |
From speaking to @novakzaballa about this, the current plans are:
Optionally (I don't know if this is necessary if we apply the tag):
|
@matthewelwell, while this is aligned with what we talked, my suggestion was slightly different.
|
I like the idea of using tags to power this. After this work we will have > 1 "system tag" I believe? We should maybe display those in a different way somehow so people know that they are system generated? Also agree with @novakzaballa this feature deserves a left hand nav item. |
As discussed with @kyle-ssg, we will rely on the tag here. If we want a left hand nav item, the FE can simply use the existing endpoint and filter by the relevant tag. Tags themselves will include a new field which can be a shared identifier between the FE and the BE to allow for this. It will also allow the FE to implement some payment gating logic to prevent customers from using stale flags if their plan does not meet the requirements. |
@kyle-ssg this is now present in staging. There are a few things the FE needs to handle:
At the moment, the 'Stale' tag is created when a project is created, but I'm wondering whether it should actually be created if the |
This will help people identity flags that have not changed for a while and are good candidates for removal.
Add a button (somewhere! Not sure where - maybe by the current tags or by the search filter top right) to filter flags that haven't had a state change in N days (suggest N=30 initially but can be changed by the user).
The following events should be considered a state change:
UI
Add a "Last Modified" option here:
The text was updated successfully, but these errors were encountered: