-
Notifications
You must be signed in to change notification settings - Fork 897
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
Save the updated widget timestamp #19405
Conversation
DialogField.first.updated_at
=> Tue, 10 Sep 2019 12:40:11 UTC +00:00
2.5.3 :014 > DialogField.first.updated_at = Time.now
=> 2019-10-16 08:48:55 -0400
2.5.3 :015 > DialogField.first
=> #<DialogFieldTextBox id: 22, name: "text_box_1", description: "", type: "DialogFieldTextBox", data_type: nil, notes: "I am a text box and I have a description here foo/...", notes_display: "show", display: "edit", display_method: nil, display_method_options: {}, required: true, required_method: nil, required_method_options: {}, default_value: "", values: nil, values_method: nil, values_method_options: {}, options: {:protected=>false}, created_at: "2019-09-10 12:40:11", updated_at: "2019-09-10 12:40:11", label: "Text Box", dialog_group_id: 6, position: 0, validator_type: "f", validator_rule: nil, reconfigurable: false, dynamic: false, show_refresh_button: false, load_values_on_init: true, read_only: false, auto_refresh: false, trigger_auto_refresh: false, visible: true> |
@d-m-u any tests to update to reflect this code change? |
|
265cd46
to
c7744f6
Compare
@miq-bot remove_label wip |
Checked commit d-m-u@c7744f6 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Since this is |
So the comment on widget content generation says that we're forcing the widget timestamp to change every time we run
find_or_build_contents_for_user
.But we're not saving it anyway so I don't think it's updating.
# Force updated timestamp to change when saved even if the new contents are the same