Project

General

Profile

Bug #19400

Issues with bookmark validator in tests

Added by Ivan Necas over 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

We cache the info about the tables too soon, which can lead to loading data about them before the schema is loaded.
This can mainly happen in tests (I'm facing this in plugins tests)

Associated revisions

Revision f044c69d (diff)
Added by Ivan Necas over 1 year ago

Fixes #19400 - defer loading of tables list cache

The BookmarkControllerValidator can get loaded sooner than the tables
are loaded (especially in tests).

Revision 182108f9 (diff)
Added by Ivan Necas over 1 year ago

Fixes #19400 - defer loading of tables list cache

The BookmarkControllerValidator can get loaded sooner than the tables
are loaded (especially in tests).

(cherry picked from commit f044c69d7d5ab83aa4d6787ece84ef7ba3fd06d5)

Conflicts:
app/validators/bookmark_controller_validator.rb

History

#1 Updated by The Foreman Bot over 1 year ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4490 added

#2 Updated by Ivan Necas over 1 year ago

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

#3 Updated by Dominic Cleal over 1 year ago

  • Category set to Tests

#4 Updated by Ivan Necas over 1 year ago

  • Target version set to 1.13.1

#5 Updated by Marek Hulán about 1 year ago

  • Legacy Backlogs Release (now unused) set to 240

Also available in: Atom PDF