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

feat(ui): humanize cron expressions #4233

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

yuri1969
Copy link
Contributor

@yuri1969 yuri1969 commented Jul 4, 2024

What changes are being made and why?

  • Added cRonstrue as dependency.
  • Enabled English/French localization.
  • Created a dedicated component providing a way to display human-readable cron expressions app-wide.
  • Displaying the cron expressions on Flow listing using as human-readable; no work on Executions has been done.
  • Refactored the app locale/lang config access.

closes #4211

How the changes have been QAed?

id: minuteFlow
namespace: company.team

tasks:
  - id: log
    type: io.kestra.plugin.core.log.Log
    message: It's {{ trigger.date ?? taskrun.startDate | date("HH:mm") }} 

triggers:
  - id: schedule
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "* * * * *"

* Added the **cRonstrue** dependency.
* Enabled English/French localization.
* Enabled the readable cron expression on Flow listing.
* Refactored the app locale config access.
@anna-geller anna-geller merged commit 26d2794 into kestra-io:develop Jul 4, 2024
7 checks passed
@yuri1969 yuri1969 deleted the cron-explained branch July 4, 2024 19:30
brian-mulier-p pushed a commit that referenced this pull request Jul 5, 2024
* Added the **cRonstrue** dependency.
* Enabled English/French localization.
* Enabled the readable cron expression on Flow listing.
* Refactored the app locale config access.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Display the CRON schedule in a human-readable format (worst case using AI)
2 participants