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

DialogEditor - remove code that changes fields to refresh from name to id #3302

Merged
merged 1 commit into from Jan 23, 2018
Merged

DialogEditor - remove code that changes fields to refresh from name to id #3302

merged 1 commit into from Jan 23, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jan 23, 2018

Since ManageIQ/ui-components#228 , we're using name instead of id in fields_to_refresh.

Previously, we used the id and this bit of code converted the names coming from the API to ids.
That's counter-productive now, removing :)

(This is a two-part fix, ManageIQ/ui-components#238 should go first.)

Testing: go to /miq_ae_customization/editor, create a dynamic field and a non-dynamic field.
Edit the non-dynamic field's "Fields to Refresh" to use the dynamic field.
Save the dialog, edit it.
See the non-dynamic field's "Fields to Refresh".

before: empty, now: the value set when creating

Cc: @romanblanco @eclarizio

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

…o id

since ManageIQ/ui-components#228 , we're using `name` instead of `id` in `fields_to_refresh`.

Previously, we used the `id` and this bit of code converted the names coming from the API to ids.
That's counter-productive now, removing :)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1536528
@miq-bot
Copy link
Member

miq-bot commented Jan 23, 2018

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/abc36173921c07e4d02a6615020ecc3b54839a6c with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

Copy link
Member

@romanblanco romanblanco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, looks good, works 👍
Thank you @himdel

@martinpovolny martinpovolny added this to the Sprint 78 Ending Jan 29, 2018 milestone Jan 23, 2018
@martinpovolny martinpovolny merged commit 0db59ee into ManageIQ:master Jan 23, 2018
@martinpovolny martinpovolny self-assigned this Jan 23, 2018
@himdel himdel deleted the fields-to-refresh-bz1536528 branch January 23, 2018 13:02
simaishi pushed a commit that referenced this pull request Jan 23, 2018
DialogEditor - remove code that changes fields to refresh from name to id
(cherry picked from commit 0db59ee)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1537571
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 94a1c2455402021568174cdfb4196315f04e7d49
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Tue Jan 23 14:01:02 2018 +0100

    Merge pull request #3302 from himdel/fields-to-refresh-bz1536528
    
    DialogEditor - remove code that changes fields to refresh from name to id
    (cherry picked from commit 0db59eeb5fc9e8de21854825fd238163ff4833be)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1537571

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