Project

General

Profile

Refactor #20643

Katello::ContentView.update_cp_content outdated and non-functional

Added by Matthias Dellweg about 1 year ago. Updated 4 months ago.

Status:
Need more information
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Branch:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
Brad
Fixed in Releases:
Found in Releases:

Description

commit 1545b9ecaa9b5c99c5aa4802bc52e182f49f3980 deletes a lot of code thereby rendering Katello::ContentView.update_cp_content unfunctional.

The error message looks like:
NoMethodError: undefined method `update_cp_content' for #<Katello::ContentViewEnvironment:0x000000xxxxxxxx>

The undefined method was in `app/models/katello/glue/candlepin/environment.rb`.

Is Katello::ContentView.update_cp_content unused and should therefore be removed, or should the code in glue be resurrected?

History

#1 Updated by Eric Helms about 1 year ago

  • Status changed from New to Need more information

Howdy,

Could you share what operation or action you performed that led you to run into this? That will help with replicating the failure you are seeing. Also, what version of Katello were you running?

#2 Updated by Matthias Dellweg about 1 year ago

Sure,
assuming you have a running foreman/katello instance, and created a content view with an associated view environment, you can call
Katello::ContentView.first.update_cp_content Katello::ContentView.first.environments.first
in the rails console.
I have no idea, whether you can trigger it from the web ui. I found the problem while digging through the code and was unsure about the implications.

#3 Updated by John Mitsch about 1 year ago

  • Tracker changed from Bug to Refactor
  • Target version set to 160
  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF