Project

General

Profile

Bug #32434

apipie:cache:index warns the cache is out of date

Added by Ewoud Kohl van Wijngaarden 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Rake tasks
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

When you run the rake task apipie:cache:index it prints a message that the cache is out of date:

API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.

Since this is the command to actually generate that cache, the user shouldn't be bothered with it.

Associated revisions

Revision 7a403146 (diff)
Added by Ewoud Kohl van Wijngaarden 5 months ago

Fixes #32434 - Fix warn about oudated apipie cache

When you run the rake task apipie:cache:index it prints a message that
the cache is out of date:

API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.

Since this is the command to actually generate that cache, the user
shouldn't be bothered with it.

This approach uses Foreman.in_rake? to determine which task runs rather
than parsing ARGV manually.

History

#1 Updated by The Foreman Bot 5 months ago

  • Assignee set to Ewoud Kohl van Wijngaarden
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8474 added

#2 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 2.5.0 added

#3 Updated by Ewoud Kohl van Wijngaarden 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF