Skip to content
Code-Schnipsel Gruppen Projekte
  1. Mär 27, 2025
    • Henning Leutz's avatar
      Merge branch 'next-2.x' into 'main' · cf820864
      verfasst von Henning Leutz
      feat: add required attribute to cron.xml
      
      See merge request !27
    • Henning Leutz's avatar
      feat: add required attribute to cron.xml · 311f2c3a
      verfasst von Henning Leutz
      In this commit, we have improved the handling of cron tasks and introduced the 'required'
      attribute. Changes made include:
      
      - Added 'required' attribute to three cron exec in `cron.xml` to enforce their creation.
      - Updated `EventHandler` to only create `required` crons, and to stop creating non-required crons
      when the `$onlyRequired` argument is set to `true`.
      - Improved how crons are created with different scopes by replacing the switch statement with a
      `match` expression in `EventHandler`.
      - Added the handling of the 'required' attribute in `Manager` to ensure all cron objects are aware
      of if they are required or not. This attribute is set to `true` for required crons and `false` if
      not specified or not required.
      - Simplified the array replacement in `EventHandler`.
      
      This improvement in how cron tasks are managed will result in more efficient and robust operation
      of the system.
      311f2c3a
    • Henning Leutz's avatar
      Merge branch 'next-2.x' into 'main' · 964bd3d6
      verfasst von Henning Leutz
      feat: add cleanup cron history functionality
      
      See merge request !25
    • Henning Leutz's avatar
      fix(phpcs): remove unnecessary newline in QuiqqerCrons.php · c1245a36
      verfasst von Henning Leutz
      This commit removes an unnecessary newline from QuiqqerCrons.php to improve readability of the
      code. No functional changes were made.
      c1245a36
    • Henning Leutz's avatar
      fix: status check not via cron history · ea5e8799
      verfasst von Henning Leutz
      Updated the EventHandler class to improve handling of cron jobs and exceptions. Changes include:
      - Refactored variable names for clarity
      - Adjusted method to check last cron job execution, replacing custom Cron Manager method with
      direct database query to limit potential errors
      - Used DateTime to calculate timestamps and format dates
      - Simplified array constructs and replaced string substitutions
      - Added exception declaration to methods
      - Improved experience when handling cron history during migration.
      
      Related: #58
      Related: #59
      ea5e8799
    • Henning Leutz's avatar
      style: code style refactor · da43e001
      verfasst von Henning Leutz
      da43e001
    • Henning Leutz's avatar
      feat: add cleanup cron history functionality · 524889db
      verfasst von Henning Leutz
      Added a new functionality to the QUI Cron system for cleaning up cron history. These changes
      include:
      - An additional cron task defined in `cron.xml` for housekeeping the cron history.
      - A new function called `cleanupCronHistory(array $params, Manager $CronManager)` in
      `QuiqqerCrons.php` that removes old cron history entries which are older than a defined amount of
      weeks.
      - Added a new field and additional indexes in the `cron_history` table in `database.xml` to support
      the new feature.
      - New localized messages are added for the cron cleanup task 'title' and 'description' in
      `locale.xml`.
      
      Related: #59
      524889db
  2. Mär 04, 2025
    • Henning Leutz's avatar
      Merge branch 'next-2.x' into 'main' · 0911f050
      verfasst von Henning Leutz
      chore(phpstan): update phpstan version and clear phpstan baseline
      
      See merge request !23
    • Henning Leutz's avatar
      fix(phpstan): improve cron execution and error handling · 73e00022
      verfasst von Henning Leutz
      Summary of changes:
      - Removed redundant PHPDoc from `ExecCrons` class.
      - Ensured the input `cronId` is cast to an integer before calling `runCron` in `ExecCrons` class.
      - Removed extraneous details from PHPDoc in `Manager` class.
      - Added more robust checking for parameters in `Manager` class.
      - Included method existence check for `deactivate` before calling it in `QuiqqerCrons` class.
      
      These changes contribute towards improving cron execution and handling potential errors more
      gracefully.
      
      Related: #57
      73e00022
    • Henning Leutz's avatar
      refactor(phpcs): update type declaration syntax · dde17568
      verfasst von Henning Leutz
      This commit updates the type declaration syntax in the `ExecCrons.php` and `Manager.php` files to
      use a space around the `|` operator for better code readability. This change does not affect the
      functionality of the code. Minor structural change.
      dde17568
    • Henning Leutz's avatar
      chore(phpstan): update phpstan version and clear phpstan baseline · 13b1adea
      verfasst von Henning Leutz
      Updated the version of `phpstan` in `.phive/phars.xml` to `1.*` and installed `1.12.13`. Removed
      the specific lines of ignored errors in `phpstan-baseline.neon` to keep it clean and avoid masking
      significant errors. Now, `phpstan` will provide better and more specific coding style issues and
      potential bugs.
      13b1adea
  3. Sep 12, 2024
  4. Aug 22, 2024
  5. Aug 05, 2024
  6. Jun 11, 2024
  7. Mai 16, 2024
  8. Mai 10, 2024
  9. Mai 06, 2024
  10. Mai 02, 2024
  11. Mai 01, 2024
  12. Apr 29, 2024
Lade