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
[AMBARI-22826] Mpack related changes to Add Hosts Page. #200
Conversation
} | ||
this.get('controller.manuallyInstalledHosts').forEach(function (host) { | ||
var element = self.$('tr[id="' + host.hostName + '"]') | ||
if (element) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"}}>
Refer to this link for build results (access rights to CI server needed): |
installedHosts.push({ | ||
'hostName': item.Hosts.host_name, | ||
'cpuCount': item.Hosts.cpu_count, | ||
'memory': (parseFloat(item.Hosts.total_mem) * 0.000001).toFixed(2) + " GB", |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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');
8dced85
to
2a02ac3
Compare
2a02ac3
to
c7e0620
Compare
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Ambari Web tests pass successfully. The failure is due to Ambari Server tests failing. |
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.