Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Conflicted service values cause notification in deployer bar summary #599

Merged
merged 3 commits into from Oct 1, 2014

Conversation

hatched
Copy link
Contributor

@hatched hatched commented Sep 30, 2014

If the user has changed a configuration value and then another one comes in over the delta before they have committed then their config value is in a conflicted state. In the deployer bar summary we now show them the services which have conflicted values and allow them to go resolve the issues.

@@ -1,6 +1,16 @@

<div class="content">
<h2 class="title">Confirm your changes</h2>
{{#if conflictedServiceCount}}
<div class="unplaced-panel">
<p>You have {{conflictedServiceCount}} {{pluralize 'service' conflictedServiceCount}} with conflicted configurations. Click the links below to visit the services inspectors to resolve these conflicts to continue.</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

s/conflicted/conflicting it's not past tense.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd go simpler "click the links below to resolve these conflicts before continuing."

@mitechie
Copy link
Contributor

looks good at a first glance, a couple of nitpick wording comments.

@hatched hatched changed the title WIP If a service has a conflicted config value then we don't allow them to commit their queued changes Conflicted service values cause notification in deployer bar summary Oct 1, 2014
@hatched
Copy link
Contributor Author

hatched commented Oct 1, 2014

Manually running CI http://ci.jujugui.org:8080/job/juju-gui/2012/

@hatched
Copy link
Contributor Author

hatched commented Oct 1, 2014

To QA

  • Deploy/Commit MySQL
  • Open it's configuration panel and change binlog-format to something.
  • Save the configuration change
  • Open the console and run app.db.services.item(0).updateConfig({'binlog-format': 'fffffooooo'});
  • The input should now have a orange !.
  • Close the inspector
  • Click commit to open up the deployer bar summary.
  • There should be a notification saying that there is a conflict.
  • Click the link to mysql
  • It should close the summary and open the inspector.

@mitechie
Copy link
Contributor

mitechie commented Oct 1, 2014

👍

1 similar comment
@jcsackett
Copy link
Contributor

👍

@jcsackett
Copy link
Contributor

QA notes:

  • I followed the QA directions, they worked as expected.
  • I committed mysql and played around with non conflicted configs on both without issue.
  • I created conflicted configs in both services, and saw the appropriate warning on commit, and the links worked.

I'll note that the links are a little odd--an unordered list might make more sense than placing them inline.

QA OK.

@hatched
Copy link
Contributor Author

hatched commented Oct 1, 2014

Thanks for the reviews. The manually triggered run passed.
:shipit:

@jujugui
Copy link
Contributor

jujugui commented Oct 1, 2014

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/juju-gui-merge

jujugui added a commit that referenced this pull request Oct 1, 2014
Conflicted service values cause notification in deployer bar summary

If the user has changed a configuration value and then another one comes in over the delta before they have committed then their config value is in a conflicted state. In the deployer bar summary we now show them the services which have conflicted values and allow them to go resolve the issues.
@jujugui jujugui merged commit f2802d9 into juju:develop Oct 1, 2014
@hatched hatched deleted the block-confirm-conflict branch October 7, 2014 11:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants