-
Notifications
You must be signed in to change notification settings - Fork 356
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
Add long_id
s (original, uncompressed id's) in ManageIQ.gridChecks
#2791
Conversation
@karelhala Should we even have the short ids in gtl? Looks like gaprindashvili is the last release with 2 kinds of ids so trying to figure out if we can't just make (Note to self: If this is merged as is (using |
I don't think we should - short ids will lead to 404 errors if used in API calls.
I think that is what is required. @himdel If you are OK with this change, should I go ahead and fix the JS specs? #2482 would have fixed this for us. But in the interim, do you have an alternative if we decide not to go with this proposed solution? |
@AparnaKarve I'm fine with your code as it is :).. I was just wondering if we can make the GTL use the long ones by default (in But if that's a non-trivial change (or if there are still places relying on the short id), no objections to just merging this PR, we just have to ping Tim to undo it when removing the compressed ids :). |
@himdel @AparnaKarve well the short ID is used in some screens for correct redirect (sadly I do not remeber which ones). But sure we can move the |
6d2067c
to
ba218a8
Compare
@karelhala For now, I have made |
@AparnaKarve Sorry, I lied.. turns out, That means we can't reliably use Would using (Or we can try fixing (trying to figure out which of these is the least breaking change for gaprindashvili..) |
.. Never mind, turns out changing So #2902 should help, and with that one, I think this can go in as is (haven't tested yet). |
Checked commits AparnaKarve/manageiq-ui-classic@8c913fa~...ba218a8 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Checked commits AparnaKarve/manageiq-ui-classic@8c913fa~...ba218a8 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
LGTM, verified I can delete GOD objects :) 👍 @AparnaKarve this is present in gaprindashvili as well, right? |
Yes please. Thank you! |
Add `long_id`s (original, uncompressed id's) in ManageIQ.gridChecks (cherry picked from commit 25a619e)
Gaprindashvili backport details:
|
@miq-bot add_label blocker |
Noticed that
ManageIQ.gridChecks
now contains compressed id's instead of the non-compressed ids (or long ids).This seems like a recent change...
and has introduced a bug, because newer screens like Physical Servers and Generic Object Definitions, use the id to pass it to the REST API for a Delete operation
Since the API does not recognize the compressed id, it causes a 404 error.
The change in the PR fixes the issue.
Although, I would need @karelhala input here, because we did not need this code before.
@karelhala Any idea what changed? Also should this be fixed some place else (and not here)?