Project

General

Profile

Actions

Refactor #14823

open

Stop saving _timestamp fact

Added by Marek Hulán over 8 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Facts
Target version:
-
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

We ignore this fact via no_timestamp scope anyway so we can avoid importing it completely. The base can be taken from https://github.com/theforeman/foreman/pull/3465


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #13819: Fact imports fail with: Validation failed: Fact name has already been takenClosedMarek Hulán02/20/2016Actions
Actions #1

Updated by Marek Hulán over 8 years ago

  • Related to Bug #13819: Fact imports fail with: Validation failed: Fact name has already been taken added
Actions #2

Updated by Michael Brown over 8 years ago

Marek Hulán wrote:

We ignore this fact via no_timestamp scope anyway so we can avoid importing it completely. The base can be taken from https://github.com/theforeman/foreman/pull/3465

Tested commit from Marek in our environment: https://github.com/ares/foreman/commit/36b39ba7f1dc004a44d7c1f0ef0f1993a18e9519

New facts added successfully. Hoping this can be pulled into the 1.10.4 maintenance release, as we're planning a large rollout based on Foreman 1.10 and Katello 2.4.

Thanks for your help with this Marek!

/Mike

Actions #3

Updated by Marek Hulán over 8 years ago

I believe this comment belongs to #13819, anyway I'll set the target there and we'll see.

Actions #4

Updated by Michael Brown over 6 years ago

Marek Hulán wrote:

I believe this comment belongs to #13819, anyway I'll set the target there and we'll see.

Can we close this issue, since it was fixed in #13819 and we're well past Foreman 1.10... ;-)

Thanks!

Actions #5

Updated by Marek Hulán over 6 years ago

  • Difficulty set to easy

I think we're still saving _timestamp fact to DB and using :no_timestamp_facts scope for hiding it https://github.com/theforeman/foreman/search?utf8=%E2%9C%93&q=no_timestamp_facts&type=

so this should remain open

Actions #6

Updated by Ohad Levy over 6 years ago

AFAIR we use the timestamp fact as a means to keep the last compile field (https://github.com/theforeman/foreman/blob/develop/app/models/host/base.rb#L151) - I'm not sure if we really use that so ymmv

Actions

Also available in: Atom PDF