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

[AMBARI-22826] Mpack related changes to Add Hosts Page (ishanbha) #178

Conversation

ishanbha
Copy link
Contributor

What changes were proposed in this pull request?

Changes to be made for the Add Hosts Page including changes to the manual registration of hosts, registration using ssh and table display for the pre-registered hosts.

How was this patch tested?

Previous tests were modified/removed. New tests were added. All unit tests pass.
20392 passing (21s)
125 pending

Please review Ambari Contributing Guide before opening a pull request.
@atkach @hiveww @Jetly-Jaimin @vivekratnavel

@asfgit
Copy link

asfgit commented Jan 24, 2018

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

@vivekratnavel vivekratnavel changed the title AMBARI-22826 - Mpack related changes to Add Hosts Page (ishanbha) [AMBARI-22826] Mpack related changes to Add Hosts Page (ishanbha) Jan 24, 2018
@ishanbha ishanbha self-assigned this Jan 24, 2018
this.get('inputtedAgainHostNames').push(hostNameArr[i]);
var tempArr = [];
if (this.get('manualInstall')) {
this.get('manuallyInstalledHosts').forEach ( function (host) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use mapProperty('hostName')

if(arr.length <= 1) {
return arr.toString();
}
var formattedText = "";
Copy link
Contributor

Choose a reason for hiding this comment

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

You can use arr.join('\n')

if (filter) {
filter = filter.toUpperCase();
}
this.get('controller.manuallyInstalledHosts').forEach(function (host) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We are trying to minimize directly changing DOM nodes, use class binding instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@atkach But here I need to dynamically set display to none or block based on what is being typed in the filter box for each item in the list. I thought fetching by id is quick. How do I bind each item in the list to a class?

@ishanbha ishanbha closed this Jan 25, 2018
@ishanbha ishanbha deleted the AMBARI-22826-branch-feature-AMBARI-14714-ui branch January 25, 2018 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants