-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #13753 - adding statistics on compute_resources usage #3196
Conversation
All models etc. referenced within the Rails environment startup, including in initialisers should load without making any reference to the database. This ensures when running `rake test` without a test DB set up already that the Rails env can be loaded first by Rails before it prepares the test DB from db/schema.rb (itself created by a db:migrate in dev/prod envs). The table_name for Ptable needed to be overridden, matching ProvisioningTemplate as it defaulted to 'ptables' rather than 'templates' when the `attribute_names` call was removed from validate_inclusion_in_families. References to attribute_names in API controller wrapping overrides were replaced by reusing the protected_attribute lists, which don't use the database and are also more consistent than the existing lists.
We already use json 1.8, this workaround is no longer needed.
JSON is included in Ruby stdlib >= 1.9
Rubocop can enforce what timezone to store in the database , so we can ensure everything is stored using UTC and we don't miss these things in code reviews. When objects are displayed, they must use the time provided by set_timezone in the controller. This is particularly relevant for Trends, Puppet graphs, etc... to ensure they are stored always properly
The status colors are a bit off from the colors suggested in the palette. https://www.patternfly.org/styles/color-palette/
apparently, the PO generator treats underscore as something important, it assumes it's the GetText underscore method, thus, breaking things in a spactacular way. removing it solves it.
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine, selecting the appropriate project. More guidelines are available on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
@jhutar Please rebase your branch against the current develop branch. |
I can just put the
line in my patch. Or just wait once my work is merged, then rebase on top of that. |
This depends on Lukas's branch lzap:debug-db-13703 and that is being reviewed in #3184
Because I hope to his soonest possible release (1.11?) I wanted to ask for a review now, while only relevant commit is e919755.
I have not tested on MySQL, so I would appreciate help here.
Thank you very much in advance for a review.