Skip to content

WIP - TEAMFOUR-154 No registered clusters#165

Closed
woodm1979 wants to merge 27 commits into
masterfrom
TEAMFOUR-154_no_registered_clusters
Closed

WIP - TEAMFOUR-154 No registered clusters#165
woodm1979 wants to merge 27 commits into
masterfrom
TEAMFOUR-154_no_registered_clusters

Conversation

@woodm1979
Copy link
Copy Markdown
Contributor

If no registered clusters are available, the user should see a
message-box with a button to add clusters.
Also, a button to add clusters should appear in the header of the table
of clusters.

Per Sean's suggestion, I separated some things out into separate
directives.

If no registered clusters are available, the user should see a
message-box with a button to add clusters.
Also, a button to add clusters should appear in the header of the table
of clusters.

Per Sean's suggestion, I separated some things out into separate
directives.
@WAT-TeamFour
Copy link
Copy Markdown

From Jenkins: There was a test failure while running Jenkins tests.

@ongk
Copy link
Copy Markdown
Contributor

ongk commented Apr 1, 2016

I believe the story was for ITOps and not the dev user. The current service-registration directive is for the dev user. I have a PR (https://github.com/hpcloud/stratos-ui/pull/162) that separates out the API and model of the registration for ITOps and dev users. Once that is merged, then, the serviceInstance model is the correct one to use.

@woodm1979
Copy link
Copy Markdown
Contributor Author

@ongk I went ahead and rebased (apparently necessary???) and fixed the linting errors.

I'm not sure what you need from me regarding the ITOps vs the Dev user. I'll go review your patches and ask you in a bit. :-)

@WAT-TeamFour
Copy link
Copy Markdown

From Jenkins: There was a test failure while running Jenkins tests.

@WAT-TeamFour
Copy link
Copy Markdown

From Jenkins: There was a test failure while running Jenkins tests.

My previous patches added service registration for normal users, instead
of admin users.  That was wrong, and Kelly has helped me figure out what
I need to do to move that functionality over to admin users.
@woodm1979 woodm1979 changed the title TEAMFOUR-154 No registered clusters WIP - TEAMFOUR-154 No registered clusters Apr 7, 2016
@WAT-TeamFour
Copy link
Copy Markdown

From Jenkins: There was a test failure while running Jenkins tests.

On the register-clusters page, you can now remove clusters, and the
complete button works correctly.

Also removed some debug code that was there previously as scaffolding.
@WAT-TeamFour
Copy link
Copy Markdown

From Jenkins: There was a test failure while running Jenkins tests.

* @public
*/
disconnect: function (serviceInstanceUrl) {
remove: function (id) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This was only use id as parameter to follow the service instance API; however, if it's easier to pass in the cluster object, I think that is ok as well. The id can always be retrieved from the object and it will simplify the _remove below.

The karma tests were failing because I had really just copied them from
the service-registration code.  Many of them didn't apply, and a bit of
correcting was absolutely necessary.

Also, per Kelly's suggestions:
removed the hideClusterRegistration method
converted app.model.serviceInstance.remove to accept a serviceInstance
instead of an id.
@WAT-TeamFour
Copy link
Copy Markdown

From Jenkins: There was a test failure while running Jenkins tests.

@woodm1979
Copy link
Copy Markdown
Contributor Author

There's something wrong with this PR/branch. I'm closing this. Use #178 instead.

@woodm1979 woodm1979 closed this Apr 8, 2016
@woodm1979 woodm1979 deleted the TEAMFOUR-154_no_registered_clusters branch April 8, 2016 16:20
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.

4 participants