-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
luci-mod-system: give crontab (aka scheduled tasks) some helpers #7495
base: master
Are you sure you want to change the base?
Conversation
Interesting how many people and how use the cron. The UI improvements also increase a size but it looks like that's not a problem anymore.
As for inspiration we may check how this implemented in other web admin panels like cPanel and Webmin https://webmin.com/docs/modules/scheduled-cron-jobs/ |
Not many users? Possibly because it remains cryptic.
Fair point. I thought retaining both original window would be possible. Requires two save buttons and routines.
Fixable. But it then affects whichever column it appears in.
Also thought about this. Probably more maintainable. Take it for a test-drive and see how it works for you. |
Maybe it would be enough to add a link to a wiki https://openwrt.org/docs/guide-user/base-system/cron. |
To me the proposed editor looks confusing compared to the direct crontab file editing. It might be better to just provide more help text about the fields with the old crontab editor. |
Probably. I think this can be provided side-by-side instead of replacing the existing crontab editor. |
yes side-by-side would be perfect, i.e. show and allow editing of the resulting cron rules. Maybe also good to add a comment field? |
Side-by-side it is. A comment field only has a place if the crontab itself also permits it. Otherwise it's a code comment at the end of the command. e.g. |
Fixed.
Added.
Added. |
Good find. Fixed now. That'll get converted so that next page load it's no longer an alias but a normal task format. Anyway, the pretty layout needs some love. |
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Signed-off-by: <my@email.address>
row (viagit commit --signoff
)<package name>: title
first line subject for packagesAny input from @dannil @stokito @Ramon00 @hnyman @rdmitry0911 ?
Gave crontab a small makeover. It's raw and rudimentary but it is already an improvement over editing the raw crontab.
Good if others can take it for a spin or suggest improvements. ( inter-row and element styling )
I do not recommend putting any safeguards in for the command field, since we were already editing the crontab directly.