Project

General

Profile

Bug #30361

Changing a Content View on a single Content Host twice throws an angular error but works still

Added by Chris Roberts about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

When changing a Content View on a single Content Host, after changing it once, then going back and changing it again we get an Angular JS error and my message does not show up. This exists in master and downstream on 6.7

bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:32303 TypeError: v2.contentViews is not a function
at fn (eval at compile (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:1), <anonymous>:4:156)
at Scope.destination.<computed> [as handleOptions] (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:28143)
at Scope.$scope.edit (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:98367)
at fn (eval at compile (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:1), <anonymous>:4:132)
at callback (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:45687)
at Scope.$eval (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:36129)
at Scope.$apply (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:36228)
at HTMLDivElement.<anonymous> (bastion.debug-3be20f16e0c6ea4f2e1ee7b02d33fe5c40c5c91a92984387734152afe3f1e4e6.js:45691)
at HTMLDivElement.dispatch (foreman-vendor.bundle-v4.11.1-development-8f1002a20f1552db88e3.js:327442)
at HTMLDivElement.elemData.handle (foreman-vendor.bundle-v4.11.1-development-8f1002a20f1552db88e3.js:327254)

Associated revisions

Revision 78b015ec (diff)
Added by Partha Aji about 2 years ago

Fixes #30361 - shows the right Cv in Content Hosts (#8868)

Prior to this commit an angular error message was raised on the content
hosts details page whenever the Content View belonging to the Content
Host was updated twice. This issue occured because a method got over
written in the scope causing angular issue

This commit resolves this be setting a better name to the contentViews
method to 'availableContentViews'

History

#1 Updated by Jonathon Turel about 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.0.0
  • Category changed from Web UI to Hosts

#2 Updated by The Foreman Bot about 2 years ago

  • Assignee set to Partha Aji
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8868 added

#3 Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases Katello 3.18.0 added

#4 Updated by Partha Aji about 2 years ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Chris Roberts about 2 years ago

  • Target version changed from Katello 4.0.0 to Katello 3.17.0

Also available in: Atom PDF