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

[FINE] Union edit service_dialog API call with other calls - removal of cont… #16747

Closed
wants to merge 2 commits into from

Conversation

paulslaby
Copy link
Contributor

Edit call needed payload: {..., content: {dialog_tabs: [...]}}, but all other calls needs {..., dialog_tabs: [...]}, just one level removed. This commit unions that, with respect to backward compatibility.

Bugzilla link: TBD

…ent key

Edit call needed payload: `{..., content: {dialog_tabs: [...]}}`, but all other calls needs `{..., dialog_tabs: [...]}`, just one level removed. This commit unions that, with respect to backward compatibility.
@miq-bot miq-bot changed the title Union edit service_dialog API call with other calls - removal of cont… [FINE] Union edit service_dialog API call with other calls - removal of cont… Jan 5, 2018
@paulslaby
Copy link
Contributor Author

It'll be needed to update documentation as well

@jirisnopek1
Copy link

Problem is described at bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1532200

@miq-bot
Copy link
Member

miq-bot commented Jan 8, 2018

Checked commits paulslaby/manageiq@e824f85~...edadb37 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍪

@chessbyte chessbyte requested a review from abellotti January 8, 2018 14:42
@simaishi
Copy link
Contributor

@paulslaby Is there a 'master' PR for this change?

@paulslaby
Copy link
Contributor Author

paulslaby commented Jan 12, 2018 via email

@simaishi
Copy link
Contributor

simaishi commented Jan 12, 2018

If 'master' is broken, please open a PR for 'master' branch and indicate which branch(es) the PR should be backported by adding <branch>/yes label. Once the PR is merged, I will backport to appropriate branches. Thanks!

service_dialog.update!(data.except('content'))
service_dialog.update_tabs(data['content']['dialog_tabs']) if data['content']
service_dialog.update!(data.except('dialog_tabs', 'content'))
service_dialog.update_tabs(data['dialog_tabs'] || data['content']['dialog_tabs']) if data['dialog_tabs'] || data['content']
Copy link
Member

Choose a reason for hiding this comment

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

if both are specified, we're looking at dialog_tags instead of the current content, is that the expectation ?

also, we need specs updates to test both cases.

/cc @jntullo

@simaishi
Copy link
Contributor

I'm closing this PR as 'master' PR is now created: ManageIQ/manageiq-api#285

@simaishi simaishi closed this Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants