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

Include deploy marker and oldest deploy step in state #1516

Merged
merged 2 commits into from
Apr 28, 2017
Merged

Conversation

ssalinas
Copy link
Member

/cc @darcatron

if (deployStepDelta > oldestDeployStep) {
oldestDeployStep = deployStepDelta;
}
}
long delta = now - pendingDeploy.getDeployMarker().getTimestamp();
if (delta > oldestDeploy) {
oldestDeploy = delta;
Copy link
Contributor

@matush-v matush-v Apr 26, 2017

Choose a reason for hiding this comment

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

not sure if I'm following the logic correctly here, but should this be in an else clause? Seems like we're calculating the delta twice and will get the longer time even if it's an incremental deploy

Copy link
Member Author

Choose a reason for hiding this comment

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

two different deltas. I'm adding additional fields since it is likely some things still use the old oldestDeploy one, so still calculating that one as normal

@ssalinas ssalinas merged commit 20796b3 into master Apr 28, 2017
@ssalinas ssalinas deleted the oldest_deploys branch April 28, 2017 12:51
@ssalinas ssalinas modified the milestone: 0.15.0 Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants