On Thu, Jan 4, 2018 at 8:20 PM, Alec Warner <anta...@gentoo.org> wrote:

> 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.
>

Brief amendment. In the case where the PM cannot parse the expires header;
it should assume the item is not expired and display it (e.g. it should
fail open.)

Updated patch attached.

-A


>
> 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
>>>
>>
>>
>

Attachment: patch
Description: Binary data

Reply via email to