forgejo/services
Gusted 3fe019ca3c
[GITEA] Show manual cron run's last time
- Currently in the cron tasks, the 'Previous Time' only displays the
previous time of when the cron library executes the function, but not
any of the manual executions of the task.
- Store the last run's time in memory in the Task struct and use that,
when that time is later than time that the cron library has executed this
task.
- This ensures that if an instance admin manually starts a task, there's
feedback that this task is/has been run, because the task might be run
that quick, that the status icon already has been changed to an
checkmark,
- Tasks that are executed at startup now reflect this as well, as the
time of the execution of that task on startup is now being shown as
'Previous Time'.
- Added integration tests for the API part, which is easier to test
because querying the HTML table of cron tasks is non-trivial.
- Resolves https://codeberg.org/forgejo/forgejo/issues/949

(cherry picked from commit 0475e2048e)
(cherry picked from commit dcc952f0db)
(cherry picked from commit 7168a240e8)
(cherry picked from commit 4bc4cccb1b)
2023-08-22 13:57:02 +02:00
..
actions add disable workflow feature (#26413) 2023-08-14 15:14:30 +00:00
agit Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
asymkey
attachment
auth [TESTS] oauth2: make it possible to use an alternate http.Client 2023-08-22 08:41:55 +02:00
automerge
context Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
convert [GITEA] Add Upload URL to release API 2023-08-22 10:01:20 +02:00
cron [GITEA] Show manual cron run's last time 2023-08-22 13:57:02 +02:00
externalaccount Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
forgejo [UPGRADE] add sanity checks for [storage*] 2023-08-22 09:30:41 +02:00
forms Allow to archive labels (#26478) 2023-08-14 11:56:14 +02:00
gitdiff Fix stderr usages (#26477) 2023-08-13 20:49:30 +08:00
issue Add transaction when creating pull request created dirty data (#26259) 2023-08-10 02:39:21 +00:00
lfs Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
mailer Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
markup
migrations Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
mirror Sync branches when mirroring (#25722) 2023-07-06 13:18:37 +02:00
org
packages Allow package cleanup from admin page (#25307) 2023-08-08 00:46:10 +00:00
pull Add transaction when creating pull request created dirty data (#26259) 2023-08-10 02:39:21 +00:00
release Less naked returns (#25713) 2023-07-07 05:31:56 +00:00
repository Add link to job details and tooltip to commit status in repo list in dashboard (#26326) 2023-08-21 15:26:10 +08:00
task Add Retry button when creating a mirror-repo fails (#26228) 2023-08-04 10:21:32 +08:00
user add unit test for user renaming (#26261) 2023-08-03 09:38:51 +08:00
webhook Add branch_filter to hooks API endpoints (#26599) 2023-08-21 11:43:52 +00:00
wiki Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) 2023-08-09 14:57:45 +08:00