melmothx / amusewiki

Text::Amuse-based publishing platform
https://amusewiki.org
Other
169 stars 26 forks source link

[Feature request] New filter: Bump #pubdate #450

Closed ienzo closed 6 months ago

ienzo commented 6 months ago

For varying reasons, texts often remain at the queue for a while. As an ad hoc method of making sure old items in queue appear on the top of the new texts page, the #pubdate line in the preamble is deleted. Down the line, however, this makes the text appear to the top of the new texts page whenever it is edited, which it can be years after the fact.

What I request is a new filter, probably called Bump #pubdate that, when checked, updates the pubdate to the time of next commit when the Save button is pressed. That way, we no longer need to use ad hoc methods and hacks of old texts in queue to appear to the start of the new texts page.

melmothx commented 6 months ago

Please give it a try on https://staging.amusewiki.org/ and see if that's what you needed.

ienzo commented 6 months ago

It looks great! Thanks for this. A small question, would the inclusion of microseconds be a problem for the engine? I notice after seconds it also records what seem to be microseconds.

On Sat, Dec 16, 2023, 5:14 PM Marco, @.***> wrote:

Please give it a try on https://staging.amusewiki.org/ and see if that's what you needed.

— Reply to this email directly, view it on GitHub https://github.com/melmothx/amusewiki/issues/450#issuecomment-1858770031, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDQGRVML6QG2RQXQUE4Z7DYJVQ63AVCNFSM6AAAAABASQQCROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYG43TAMBTGE . You are receiving this because you authored the thread.Message ID: @.***>

melmothx commented 6 months ago

ienzo @.***> writes:

It looks great! Thanks for this. A small question, would the inclusion of microseconds be a problem for the engine? I notice after seconds it also records what seem to be microseconds.

It should be pretty safe, but I'll throw in a test case and release this.

Debian package should be available later today.

-- Marco