Skip to content

Conversation

@jgolieb
Copy link

@jgolieb jgolieb commented Jan 25, 2018

What changes were proposed in this pull request?

Orchestrate final steps to install services from multiple mpacks using latest API, including creating service groups, creating version definitions, and deploying services.

How was this patch tested?

All tests passing:

20334 passing (24s)
125 pending

Jason Golieb added 17 commits January 17, 2018 12:10
…h names hard-coded to be <mpackId>-<mpackVersion>.
…-mpack-deployment

# Conflicts:
#	ambari-web/app/styles/application.less
#	ambari-web/app/styles/wizard.less
#	ambari-web/app/templates/installer.hbs
# Conflicts:
#	ambari-web/app/styles/application.less
#	ambari-web/app/styles/wizard.less
#	ambari-web/app/templates/installer.hbs
# Conflicts:
#	ambari-web/app/styles/application.less
#	ambari-web/app/styles/wizard.less
#	ambari-web/app/templates/installer.hbs
# Conflicts:
#	ambari-web/app/styles/application.less
#	ambari-web/app/styles/wizard.less
…-mpack-deployment

# Conflicts:
#	ambari-web/app/controllers/wizard/step7_controller.js
#	ambari-web/app/styles/application.less
#	ambari-web/app/styles/bootstrap_overrides.less
#	ambari-web/app/styles/wizard.less
#	ambari-web/app/templates/wizard/downloadMpacks.hbs
#	ambari-web/app/templates/wizard/selectMpacks.hbs
#	ambari-web/app/templates/wizard/verifyProducts.hbs
@jgolieb
Copy link
Author

jgolieb commented Jan 25, 2018

@asfgit
Copy link

asfgit commented Jan 25, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/290/
Test FAILed.
Test FAILured.

background-color: inherit;
}
.wizard .wizard-body .wizard-nav {
min-width: 250px;
Copy link
Contributor

Choose a reason for hiding this comment

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

On narrow screen wizard-body will jump to bottom, better to leave previous styles

Copy link
Author

Choose a reason for hiding this comment

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

No, my changes ensure that the wizard-body stays where it should even if the screen is very narrow (although hopefully nobody is using Ambari on that small of a screen, since the UI is really not designed for it).

image

…-mpack-deployment

# Conflicts:
#	ambari-web/app/templates/wizard/step2.hbs
@asfgit
Copy link

asfgit commented Jan 29, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/326/
Test FAILed.
Test FAILured.

{{else}}
<button type="button" class="icon-button retry-button" disabled="disabled"></button>
{{/if}}
</span>
Copy link
Contributor

@ishanbha ishanbha Jan 29, 2018

Choose a reason for hiding this comment

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

IMO we can directly bind it and use bootstrap classes instead.
{{bindAttr class=":btn :btn-default :retry-button mpack.failed::disabled"}}

Copy link
Contributor

Choose a reason for hiding this comment

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

mpack.failed:disabled would have inverted the logic. mpack.failed::disabled disables it when mpack.failed is false. So as long as the value of mpack.failed is false (or null) the button would remain disabled, doesn't matter it is in-progress or it succeeds. Your if else code above is also doing the exact same thing

Copy link
Author

@jgolieb jgolieb Jan 30, 2018

Choose a reason for hiding this comment

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

I tried this suggestion and a couple other options, including binding the disabled attribute directly, but the results were not satisfactory. It looks like in this specific situation, the existing code is a satisfactory solution, if not the most elegant.

@ishanbha ishanbha merged commit 9c930c4 into apache:branch-feature-AMBARI-14714-ui Jan 30, 2018
@jgolieb jgolieb deleted the AMBARI-22804_multi-mpack-deployment branch January 30, 2018 18:48
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