Project

General

Profile

Actions

Feature #37087

closed

Prepare STI usage to be compatible with Ruby 3.0

Added by Oleh Fedorenko 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Some of our STI models (host and subnet) have redefined initialization method signature, which cause failures in code logic due to Ruby 3.0 more strict way of dealing with keyword arguments. As a first step we must to comply with Rails' model initialization method signature. As a second step, we must review app/models/host.rb module's method_missing stub to accept keyword arguments to be able to answer and delegate different calls with different signatures. Without this, we can't migrate to Ruby 3.


Related issues 1 (0 open1 closed)

Blocks Foreman - Feature #36849: Run Foreman tests on Ruby 3.0ClosedOleh FedorenkoActions
Actions #1

Updated by Oleh Fedorenko 4 months ago

Actions #2

Updated by The Foreman Bot 4 months ago

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

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.10.0 added
Actions #4

Updated by Oleh Fedorenko 4 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF