Project

General

Profile

Bug #21607

ISE when trying to auto complete on a CV Docker Filter

Added by Partha Aji over 4 years ago. Updated almost 4 years ago.

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

Description

1) Sync a docker repo (I picked "fedora/ssh" as upstream)
2) Create a content view
3) Add a docker repo to that CV
4) Add a Docker Filter of type include
5) Under Filter Details -> Tags click Add Rule
6) Open JS console (Inspect Elements -> Console)
7) Type some thing in the Include Tags text box "la" for auto completing latest

Expected:
"latest" as the suggested choice for autocomplete

Actual:
GET https://obelix.example.com/katello/api/v2/docker_tags/auto_complete_name?repoids%5B%5D=84&term=l 500 (Internal Server Error)

PG::UndefinedTable: ERROR:  missing FROM-clause entry for table "katello_docker_tags" 
 | LINE 1: ..."))) AND "katello_repositories"."id" = 84))) AND (katello_do...
 |                                                              ^
 | 
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.9/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cac
 ....
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/activerecord-4.2.9/lib/active_record/relation/calculations.rb:186:in `pluck'
 | /home/vagrant/katello/app/controllers/katello/api/v2/docker_tags_controller.rb:13:in `auto_complete_name'
 | /home/vagrant/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.9/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
  .....

Associated revisions

Revision e77c2e6b (diff)
Added by Partha Aji over 4 years ago

Fixes #21607 - docker-tag auto name completion

This commit addresses a bug where the docker tag name was not gettign
autocompleted when requested from the UI. The Table referenced in the
autocomplete did not point DockerMetaTag and instead pointed to
DockerTag breaking this.

History

#1 Updated by Partha Aji over 4 years ago

  • Bugzilla link set to 1506865

#2 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7057 added

#3 Updated by Partha Aji over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#4 Updated by Justin Sherrill over 4 years ago

  • Legacy Backlogs Release (now unused) set to 329

Also available in: Atom PDF