The attached patch proposes a new news item format (2.1). In format 2.1, the Expires: header is mandatory.
PMs can detect whether a given news item is "expired" by comparing the current date in UTC to the expired date. Expired news items should not be shown to users. Once this is accepted and implemented, we can go back and bump the existing news items to format 2.1 and add the new mandatory header. Old news implementations should ignore the "Expires" header (as they ignore any unspecified header.) On Wed, Jan 3, 2018 at 10:16 AM, Alec Warner <anta...@gentoo.org> wrote: > > > On Wed, Jan 3, 2018 at 6:07 AM, Ulrich Mueller <u...@gentoo.org> wrote: > >> >>>>> On Tue, 2 Jan 2018, Alec Warner wrote: >> >> > Problem: >> > New stages have numerous news items listed that are likely not >> > relevant, but are shown due to limitations in the filtering in NEWS >> > items. E.g. on a recent stage3: >> >> > [...] >> >> We could add an "Expires:" header to the news item format, and the >> package manager (or eselect news) could mask old items based on it. >> > > Ok, I'll submit a patch to the GLEP for this. Stay tuned. > > -A > > >> >> Ulrich >> > >
patch
Description: Binary data