-
Notifications
You must be signed in to change notification settings - Fork 40
MTV-3177: NADs not showing on Mappings tab edit mode #1853
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
MTV-3177: NADs not showing on Mappings tab edit mode #1853
Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1853 +/- ##
==========================================
- Coverage 36.81% 6.75% -30.07%
==========================================
Files 158 1009 +851
Lines 2548 19358 +16810
Branches 599 4006 +3407
==========================================
+ Hits 938 1307 +369
- Misses 1428 18044 +16616
+ Partials 182 7 -175 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
The fixes for disabling the "add" and refreshing for "cancel" actions - LGTM except a small comment question.
For the original bug fix of avoid filtering based on target ns - not sure it's a bug. please see comments below for details.
| name: `${network.namespace}/${network.name}`, | ||
| }; | ||
| } | ||
| networkMap[network.uid] = { |
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.
I don't think that this fix is correct since target networks should be filtered by target projects. Let's wait for backend approval for this:
https://issues.redhat.com/browse/MTV-3177?focusedId=28157294&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-28157294
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.
I see your point, I think it's very weird that the backend allows to set something that wouldn't work and doesn't throw an error about it, than our bug is that we allow to see nad from any namespace on the NetworkMap details page
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.
I see your point, I think it's very weird that the backend allows to set something that wouldn't work and doesn't throw an error about it,
Doesn't it throw an error? Maybe when trying to migrate VMs with invalid mappings that will result of a VM without a valid NIC then it will fail? Need to test it and see what happens.
than our bug is that we allow to see nad from any namespace on the NetworkMap details page
For NetworkMap CR, there is no option to set target project value. So it's not a bug since no filtering can be applied. The filtering should be applied once you select an existing NetworkMap for a specific plan IIUC...
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.
Looking into CNV docs, it does specify that the NAD should live in the same namespace as the VM/pod, so I'll revert this change as it's not a bug and keep only the other minor fixes.
And +1 on no sure filter on NM CR as it might or might not have a plan owner
src/plans/details/tabs/Mappings/components/PlanMappingsActionsBar/PlanMappingsActionsBar.tsx
Show resolved
Hide resolved
8426c96 to
8049af6
Compare
| variant={ButtonVariant.secondary} | ||
| onClick={reset} | ||
| onClick={() => { | ||
| reset(); |
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.
@avivtur Can you please just fix the prototype for reset param since I'm pretty sure that it will be fixed again as part of eslint fixes...
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.
fixed
Signed-off-by: Aviv Turgeman <[email protected]>
8049af6 to
62929c0
Compare
|
…v2v#1853) Signed-off-by: Aviv Turgeman <[email protected]>
…v2v#1853) Signed-off-by: Aviv Turgeman <[email protected]>
…v2v#1853) Signed-off-by: Aviv Turgeman <[email protected]>



📝 Links
https://issues.redhat.com/browse/MTV-3177
📝 Description
This PR fixes:
🎥 Demo
Before:
mapping-tab-bugs.mp4
After:
mapping-tab-bugs-fixed.mp4
📝 CC://