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

Fixes #10451: A running Policy generation is not displayed on the Status dropdown #1602

Conversation

RaphaelGauthier
Copy link
Member

@@ -132,6 +132,12 @@ class AsyncDeployment extends CometActor with CometListener with Loggable {
<li><div id="deployment-end">{displayTime("Ended at ", end)}</div></li>
<li class="dropdown-header" style="border-bottom-style: dotted; border-color: gray;">{durationText} {DateFormaterService.getFormatedPeriod(start,end)}</li>
}
def loadingStatement(start : DateTime) = {
<li class="dropdown-header">Policies building...</li>
<li>{displayTime("Started at ", start)}</li>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we can't use the "start" method here, because with it, we have "Started at blablabla -> 1s ago". But the "1s ago" never changes, and so it is extremelly misleading.
So we need to only display the part with the date.

@RaphaelGauthier
Copy link
Member Author

Commit modified

@RaphaelGauthier RaphaelGauthier force-pushed the bug_10451/a_running_policy_generation_is_not_displayed_on_the_status_dropdown branch from a8d221c to 2b698fb Compare March 24, 2017 11:02
@fanf
Copy link
Member

fanf commented Mar 24, 2017

I think you misunderstood. We need to keep the start DATE, but not the "↳", because the DURATION won't be updated, and even after a couple of minute, we have "↳ less than 1 s ago", which is misleading because people will thought they can use that to measure the duration, but actually not.

So please, keep the line with the "Started at 2017-03-24 12:36:38"

@RaphaelGauthier
Copy link
Member Author

Commit modified

@RaphaelGauthier RaphaelGauthier force-pushed the bug_10451/a_running_policy_generation_is_not_displayed_on_the_status_dropdown branch from 2b698fb to 9dbfcc5 Compare March 24, 2017 13:29
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 9dbfcc5 into Normation:branches/rudder/3.1 Mar 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants