Skip to content
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

Retirement - use datetime instead of date - migration #11156

Merged
merged 14 commits into from Sep 16, 2016
Merged

Retirement - use datetime instead of date - migration #11156

merged 14 commits into from Sep 16, 2016

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Sep 9, 2016

This was originally a part of #7471, splitting off the backend part for easier review/merge..

This changes the retires_on field from :date to :datetime - the idea is that we will change the UI to let the user pick a specific point in time (including timezone) for the machine to retire, instead of a rather vague "that day +- 23.5 hours" (yay timezones!).

(retirement_last_warn already IS a datetime)

https://bugzilla.redhat.com/show_bug.cgi?id=1316632


UI changes are limited to adding time and time zone info to the messages and summaries...

retire flash
retire summary

@himdel himdel changed the title [WIP] Retirement - use datetime instead of date - migration Retirement - use datetime instead of date - migration Sep 16, 2016
@himdel himdel removed the wip label Sep 16, 2016
@miq-bot
Copy link
Member

miq-bot commented Sep 16, 2016

Checked commits https://github.com/himdel/manageiq/compare/298963247759838bd9eeba5cd6ad25cd0620c7eb~...f728ef10876fa68bdb7c01be96f0d69b700580e1 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
19 files checked, 25 offenses detected

app/models/mixins/retirement_mixin.rb

spec/lib/miq_expression_spec.rb

@himdel
Copy link
Contributor Author

himdel commented Sep 16, 2016

@gmcculloug can you review please? I'd like to get this in before the migration freeze..

@dclarizio cc, should be ready (I hope..)

@martinpovolny martinpovolny merged commit efc3b5a into ManageIQ:master Sep 16, 2016
@himdel himdel deleted the bz1316632-retire-migration branch September 16, 2016 12:50
@chessbyte chessbyte added this to the Sprint 47 Ending Oct 3, 2016 milestone Sep 16, 2016
@gmcculloug
Copy link
Member

psachin pushed a commit to psachin/manageiq-content that referenced this pull request Mar 3, 2017
The retires_on field was changed from a `:date` column to a `:datetime`
which now requires the days(in seconds) be added to the time.

- Depends on: ManageIQ/manageiq#14143
- This issue was introduced in PR ManageIQ/manageiq#11156
- https://bugzilla.redhat.com/show_bug.cgi?id=1427503

Signed-off-by: Sachin <psachin@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants