Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show manual cron run's last time #27544

Merged
merged 7 commits into from
Oct 11, 2023
Merged

Commits on Oct 9, 2023

  1. 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 fd34fdac1408ece6b7d9fe6a76501ed9a45d06fa)
    Gusted authored and earl-warren committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    40ea22c View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Update tests/integration/api_admin_test.go

    Co-authored-by: KN4CK3R <[email protected]>
    earl-warren and KN4CK3R authored Oct 10, 2023
    Configuration menu
    Copy the full SHA
    c1397b2 View commit details
    Browse the repository at this point in the history
  2. count is 28

    earl-warren committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    6742dcb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    668d5c2 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2023

  1. Configuration menu
    Copy the full SHA
    0eb4669 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6745299 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0bc9f71 View commit details
    Browse the repository at this point in the history