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. #200

Conversation

ishanbha
Copy link
Contributor

Creating new pull request as the previous one was closed and branch deleted.
@atkach your suggestions are incorporated here

What changes were proposed in this pull request?

Add hosts step related changes for mpack

How was this patch tested?

20392 passing (23s)
125 pending

Please review Ambari Contributing Guide before opening a pull request.

}
this.get('controller.manuallyInstalledHosts').forEach(function (host) {
var element = self.$('tr[id="' + host.hostName + '"]')
if (element) {
Copy link
Contributor Author

@ishanbha ishanbha Jan 25, 2018

Choose a reason for hiding this comment

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

@atkach I am changing the display of each item in the list to none or block based on what is being entered in the filter box. DOM being fetched on the basis of id. Do you think there is a way to use class bindings in this scenario. Please suggest.

Copy link
Contributor

Choose a reason for hiding this comment

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

For example, define host as an object with the flag "isFiltered", in the template:
{{#each host in view.hosts}}
<tr {{bindAttr class="host.isFiltered::hidden"}}>

@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/291/
Test FAILed.
Test FAILured.

installedHosts.push({
'hostName': item.Hosts.host_name,
'cpuCount': item.Hosts.cpu_count,
'memory': (parseFloat(item.Hosts.total_mem) * 0.000001).toFixed(2) + " GB",
Copy link
Contributor

Choose a reason for hiding this comment

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

If values in kb, conversion should be {KB}/(1024*1024)={GB}

<tr class="no-pre-registered">
<td colspan="5">
<p class="no-host-header">{{t common.noHostsFound}}</p>
<p style="font-size: 12px;">{{t installer.step2.noHostsFound.header}}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't use inline styles

var tempArr = [];
if (this.get('manualInstall')) {
var hostNames = this.get('manuallyInstalledHosts').mapProperty('hostName');
tempArr.push(hostNames);
Copy link
Contributor

Choose a reason for hiding this comment

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

You are pushing the whole array instead hostname string, should be:
tempArr = this.get('manuallyInstalledHosts').mapProperty('hostName');

@ishanbha ishanbha force-pushed the AMBARI-22826-branch-feature-AMBARI-14714-ui branch from 8dced85 to 2a02ac3 Compare January 26, 2018 21:59
@ishanbha ishanbha force-pushed the AMBARI-22826-branch-feature-AMBARI-14714-ui branch from 2a02ac3 to c7e0620 Compare January 26, 2018 23:14
@asfgit
Copy link

asfgit commented Jan 26, 2018

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

@asfgit
Copy link

asfgit commented Jan 27, 2018

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

@ishanbha
Copy link
Contributor Author

ishanbha commented Jan 27, 2018

Ambari Web tests pass successfully. The failure is due to Ambari Server tests failing.

@Jetly-Jaimin Jetly-Jaimin merged commit efae1bc into apache:branch-feature-AMBARI-14714-ui Jan 27, 2018
@ishanbha ishanbha deleted the AMBARI-22826-branch-feature-AMBARI-14714-ui branch February 1, 2018 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants