Bug #19400

Issues with bookmark validator in tests

Added by Ivan Necas 9 months ago. Updated 3 months ago.

Status:Closed
Priority:Normal
Assigned To:Ivan Necas
Category:Tests
Target version:Team Ivan Iteration 14
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/theforeman/foreman/pull/4490
Story points-
Velocity based estimate-
Release1.16.0Release relationshipAuto

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
Added by Ivan Necas 9 months 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
Added by Ivan Necas 6 months 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 9 months ago

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

#2 Updated by Ivan Necas 9 months ago

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

#3 Updated by Dominic Cleal 9 months ago

  • Category set to Tests

#4 Updated by Ivan Necas 8 months ago

  • Target version set to Team Ivan Iteration 14

#5 Updated by Marek Hulán 3 months ago

  • Release set to 1.16.0

Also available in: Atom PDF