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

Fix service dialog edit #15658

Merged
merged 1 commit into from
Jul 27, 2017
Merged

Fix service dialog edit #15658

merged 1 commit into from
Jul 27, 2017

Conversation

jntullo
Copy link

@jntullo jntullo commented Jul 26, 2017

Resolving more compressed id problems for the dialog editor

When updating a dialog, the content that is passed to it includes a dialog_id or dialog_tab_id etc...on update, this was being interpreted as a 10 (or whatever region it's in), causing it to no longer be associated with the correct dialog. In addition, the IDs for those object were being interpreted as so, causing a unique key violation (amongst other problems).

While this is a temporary fix to get the dialog editor working, I think that we need to revisit the way we handle compressed ids. If we are sending out compressed ids, we should be uncompressing them on the way back in, or we may run into more problems like this. (cc: @abellotti @imtayadeway )

cc: @romanblanco, @martinpovolny

@miq-bot assign @gtanzillo
@miq-bot add_label bug

@miq-bot miq-bot added the bug label Jul 26, 2017
@jntullo jntullo changed the title remove the compressed id from updated attributes Fix service dialog edit Jul 26, 2017
@miq-bot
Copy link
Member

miq-bot commented Jul 26, 2017

Checked commit jntullo@5350e2a with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 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.

I've tested changes in UI, fixed the issue 👍

@martinpovolny
Copy link
Member

I see a transaction added. Does it fix the problem where some things got saved even though a failure was returned back to the client?

@romanblanco, @jntullo ?

@jntullo
Copy link
Author

jntullo commented Jul 26, 2017

@martinpovolny yeah, that transaction was added in to resolve that

@martinpovolny martinpovolny merged commit d110908 into ManageIQ:master Jul 27, 2017
@martinpovolny martinpovolny added this to the Sprint 66 Ending Aug 7, 2017 milestone Jul 27, 2017
@chessbyte chessbyte assigned martinpovolny and unassigned gtanzillo Jul 27, 2017
imtayadeway added a commit to imtayadeway/manageiq-api that referenced this pull request Sep 18, 2017
Support for compressed ids was added and enabled by default (rendering
all ids in their compressed form) with the thought of solving two
problems at once:

1. javascript doesn't support very large numbers
2. we wanted to add support for compressed ids

It turns out that (2) wasn't solving any problems in UI land
anymore. With the added complexity and emerging issues¹ that came as a
result of this change, it seemed better to remove the compressed id
support and simply render all ids as strings instead, which is
sufficient to solve the javascript large numbers issue.

Support for incoming compressed ids in URLs has been left, since this
has already been incorporated into the Fine release.

1. See ManageIQ#49,
ManageIQ/manageiq#15658
imtayadeway added a commit to imtayadeway/manageiq-api that referenced this pull request Sep 18, 2017
Support for compressed ids was added and enabled by default (rendering
all ids in their compressed form) with the thought of killing two
birds with one stone:

1. javascript doesn't support very large numbers
2. we wanted to add support for compressed ids

It turns out that (2) wasn't solving any problems in UI land
anymore. With the added complexity and emerging issues¹ that came as a
result of this change, it seemed better to remove the compressed id
support and simply render all ids as strings instead, which is
sufficient to solve the javascript large numbers issue.

Support for incoming compressed ids in URLs has been left, since this
has already been incorporated into the Fine release.

1. See ManageIQ#49,
ManageIQ/manageiq#15658
imtayadeway added a commit to imtayadeway/manageiq-api that referenced this pull request Sep 18, 2017
Support for compressed ids was added and enabled by default (rendering
all ids in their compressed form) with the thought of killing two
birds with one stone:

1. javascript doesn't support very large numbers
2. we wanted to add support for compressed ids

It turns out that (2) wasn't solving any problems in UI land
anymore. With the added complexity and emerging issues¹ that came as a
result of this change, it seemed better to remove the compressed id
support and simply render all ids as strings instead, which is
sufficient to solve the javascript large numbers issue.

Support for incoming compressed ids in URLs has been left, since this
has already been incorporated into the Fine release.

1. See ManageIQ#49,
ManageIQ/manageiq#15658
imtayadeway added a commit to imtayadeway/manageiq-api that referenced this pull request Sep 18, 2017
Support for compressed ids was added and enabled by default (rendering
all ids in their compressed form) with the thought of killing two
birds with one stone:

1. javascript doesn't support very large numbers
2. we wanted to add support for compressed ids

It turns out that (2) wasn't solving any problems in UI land
anymore. With the added complexity and emerging issues¹ that came as a
result of this change, it seemed better to remove the compressed id
support and simply render all ids as strings instead, which is
sufficient to solve the javascript large numbers issue.

Support for incoming compressed ids in URLs has been left, since this
has already been incorporated into the Fine release.

1. See ManageIQ#49,
ManageIQ/manageiq#15658
imtayadeway added a commit to imtayadeway/manageiq-api that referenced this pull request Sep 18, 2017
Support for compressed ids was added and enabled by default (rendering
all ids in their compressed form) with the thought of killing two
birds with one stone:

1. javascript doesn't support very large numbers
2. we wanted to add support for compressed ids

It turns out that (2) wasn't solving any problems in UI land
anymore. With the added complexity and emerging issues¹ that came as a
result of this change, it seemed better to remove the compressed id
support and simply render all ids as strings instead, which is
sufficient to solve the javascript large numbers issue.

Support for incoming compressed ids in URLs has been left, since this
has already been incorporated into the Fine release.

1. See ManageIQ#49,
ManageIQ/manageiq#15658
alexander-demicev pushed a commit to alexander-demicev/manageiq-api that referenced this pull request Oct 5, 2017
Support for compressed ids was added and enabled by default (rendering
all ids in their compressed form) with the thought of killing two
birds with one stone:

1. javascript doesn't support very large numbers
2. we wanted to add support for compressed ids

It turns out that (2) wasn't solving any problems in UI land
anymore. With the added complexity and emerging issues¹ that came as a
result of this change, it seemed better to remove the compressed id
support and simply render all ids as strings instead, which is
sufficient to solve the javascript large numbers issue.

Support for incoming compressed ids in URLs has been left, since this
has already been incorporated into the Fine release.

1. See ManageIQ#49,
ManageIQ/manageiq#15658
@jntullo jntullo deleted the bug/fix_dialog_edit branch November 28, 2017 19:41
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.

6 participants