-
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
Fix missing operations for MW datasource. #16611
Conversation
@miq-bot add_label bug,providers/middleware |
Checked commit tumido@87f9518 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot add_label gaprindashvili/no |
@tumido the bug states it's a regression - do you know perhaps what caused it? was this code accidentally deleted in the past? (this can also influence whether we can/should include it in gaprindashvili, although the bug's target release at the moment is set to future) |
@abonas I think this has never behaved correctly. Mutability implementation was done only for MiddlewareServer, so datasources do not define it. |
@tumido I think it's good to have some tests in this repo. Tests does not run across repositories. By having tests only in UI, if this gets broken in the future, we may realize it after it's merged. |
I think it's a regression. |
Nice! That's it! So it's a regression and in my eyes it should land in gaprindashvili
Though the functionality is not included in this repo. I can write some tests, but they would only verify the presence of this line, which seems to be useless to me... |
It seems to me as a trivial one-liner and the functionality is in the UI, so tests are also there. Or will be this single line used elsewhere in this repo? |
@tumido Cannot apply the following label because they are not recognized: gapridashvili/yes |
@miq-bot add_label gaprindashvili/yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can we get this reviewed, @ManageIQ/committers-hawkular ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good.
If you are confident that the UI tests are enough, it's good to go for me.
@agrare looks like it should go to core now |
@tumido @israel-hdez can you find the PR that changed this behavior in the UI just for future reference and post it here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
@agrare, sure. Regression was introduced by ManageIQ/manageiq-ui-classic@491caa1 . (Description updated as well.) |
Fix missing operations for MW datasource. (cherry picked from commit ef638d5)
Gaprindashvili backport details:
|
FYI, this caused a ui-classic travis failure..
|
@himdel there is an associated ui-classic PR ManageIQ/manageiq-ui-classic#2972 that I assume addresses the issue, can you take a look at that? |
@agrare It doesn't :( It changes an entirely different spec file. But if you know more about the area, can you please look at ManageIQ/manageiq-ui-classic#3040 ? :) This should fix it. |
…tions" This reverts commit ba585f0.
Reverted the backport to Gaprindashvili branch.
|
Please backport together with #16653, which is fixing the broken factory discovered by Travis for manageiq-ui-classic. |
Fix missing operations for MW datasource. (cherry picked from commit ef638d5) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1526557
Gaprindashvili backport details:
|
Add a delegation for
MiddewareDatasource
mutability to theMiddewareServer
similarly as it is forMiddlewareDeployment
. This allows to calculate visibility inMiddlewareStandaloneServerAction
helper properly and show Operation buttons on MW datasource page.Fixes: BUG 1460296
Test coverage in related: ManageIQ/manageiq-ui-classic#2972
Regression introduced by: ManageIQ/manageiq-ui-classic@491caa1
Before:
After: