Project

General

Profile

Actions

Bug #12455

closed

Deprecation warning when writing total_hosts attribute

Added by Dominic Cleal over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Rails
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

DEPRECATION WARNING: You're trying to create an attribute `total_hosts'. Writing arbitrary attributes on a model is deprecated. Please just use `attr_writer` etc. (called from update_domain_counters_on_create at /home/dcleal/code/foreman/foreman/app/models/nic/base.rb:225)

Seen when running host_test.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #11444: Domains page shows negative number of hostsClosedTomer Brisker08/21/2015Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Related to Bug #11444: Domains page shows negative number of hosts added
Actions #2

Updated by Tomer Brisker over 8 years ago

  • Status changed from New to Need more information

I could not reproduce. Are you sure that you ran `rake db:migrate` and `rake db:test:prepare` before running the test?

Actions #3

Updated by Dominic Cleal over 8 years ago

  • Status changed from Need more information to Rejected
  • translation missing: en.field_release deleted (71)

Yep, test DB must have been outdated. Thanks!

Actions

Also available in: Atom PDF