-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Log last cron execution #7689
Log last cron execution #7689
Conversation
🚀 Test Passed. 🚀 |
looks good. not tested 👍 |
@Kondou-ger can you supply some screenshots? |
Can you put it directly right next to the header? Otherwise it looks like it’s another radiobutton. :) |
@jancborchardt still looks a bit weird … |
<?php if ($_['cron_log']): ?> | ||
<p class="cronlog inlineblock"> | ||
<?php if ($_['lastcron'] !== false): | ||
$human_time = date('Y-m-d H:i', $_['lastcron']) . " UTC"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oc_util or oc_helper has some date time formating function - please use that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer ISO 8601, but okay.
<?php if ($_['cron_log']): ?> | ||
<p class="cronlog inlineblock"> | ||
<?php if ($_['lastcron'] !== false): | ||
$human_time = OC_Util::formatDate($_['lastcron']) . " UTC"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the result of formatDate UTC?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because the input is UTC, because time()
outputs UTC.
@Kondou-ger I think it looks good. Cron, and then directly the status of it. |
🚀 Test Passed. 🚀 |
Nice feature! Two points:
I will test this once these questions have been addressed. |
|
@Kondou-ger I was trying to find a better name but now my brain is stuck on "log last cron execution"... so let's keep it. Point 2 makes sense. Let me test this. |
Seems to work fine, except that even though the "status" element is here, I don't see a green dot inside. Note that to test this I used the merge instructions, so it is possible that some change on master breaks it. |
Somehow I forgot to move the squircles from files_external to core so they only show when you have to files_external app active. |
The inspection completed: 3 new issues |
🚀 Test Passed. 🚀 |
👍 Looks nice and seems to function as intended. |
I can see the circle now 👍 |
There was a setting to disable the last execution of cron. There is no known problem with this write access and it was also questioned when this feature was build in owncloud/core#7689 (comment) Recently there was also a bug report about a non-visible last cron execution (#6088) - let's better remove this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
There was a setting to disable the last execution of cron. There is no known problem with this write access and it was also questioned when this feature was build in owncloud/core#7689 (comment) Recently there was also a bug report about a non-visible last cron execution (#6088) - let's better remove this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Fixes #2012
@karlitschek @DeepDiver1975
@jancborchardt have a look at the design/feel free to improve this yourself. atm this is rather ugly.
We may also remove the squircles from files_external's css, as I put these into settings's css.