revanced-api icon indicating copy to clipboard operation
revanced-api copied to clipboard

feat: Add new field `archived` for announcements

Open oSumAtrIX opened this issue 1 year ago • 2 comments
trafficstars

Issue

Scenario: Some issue leads to an announcement. Now, the issue is fixed, but the announcement is still shown to everyone.

Solution

Add a field archived. The field value may be the date the announcement has been or will be archived. The field may be nullable. If it is null, the announcement is not archived. Additionally, this field should be modifiable through a PATCH in case we want to extend or shorten the date when to archive the announcement.

oSumAtrIX avatar Dec 28 '23 18:12 oSumAtrIX

Maybe there's a better-fitting word than "archived"

Ushie avatar Dec 30 '23 23:12 Ushie

Archived is used here as a general super term. If the field is true, any consumer can handle the announcements accordingly. The website would, for example, not display them unless you also want to show archived announcements; the API can ask for a query parameter to return archived announcements and so on.

oSumAtrIX avatar Jan 08 '24 20:01 oSumAtrIX