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 the behaviour of the new project field for Kind installation #1417

Conversation

sgratch
Copy link
Collaborator

@sgratch sgratch commented Dec 19, 2024

Reference: #1409 (comment) - comment (1).

  • Enable the ProjectNameSelect component to run on Kind (non OCP) installation, the same as supported for the console namespaces menu.
  • Fix the namespace default value for upstream (konveyor-forklift for u/s, openshift-mtv for d/s )

Screenshots for kind installation, current is set to all-namespaces

Before

Screenshot from 2024-12-19 20-56-30

After

Screenshot from 2024-12-19 20-55-05

Screenshot from 2024-12-19 20-58-35

@sgratch sgratch force-pushed the fix-new-project-field-for-providers-behaviour-on-kind branch 2 times, most recently from e3ed2dc to fba00db Compare December 19, 2024 19:14
isList: true,
});

return !projects || !projectsLoaded || projectsLoadError
Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC when using isList prop on on hook above it always return array. Empty or with content. So in this case checking !project don't have any need as array is always truthy

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, fixing to check the array length..

@sgratch sgratch force-pushed the fix-new-project-field-for-providers-behaviour-on-kind branch from fba00db to 4223f3c Compare December 19, 2024 20:15
Reference:
kubev2v#1409 (comment)
- comment num 1.

- Enable the ProjectNameSelect component to run on Kind (non OCP)
installaiton, the same as supported for the console namespaces menu.

-Fix the namespace default value for upstream.

Signed-off-by: Sharon Gratch <[email protected]>
@sgratch sgratch force-pushed the fix-new-project-field-for-providers-behaviour-on-kind branch from 4223f3c to 3dcb635 Compare December 19, 2024 20:54
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.21%. Comparing base (13484d0) to head (3dcb635).
Report is 164 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1417      +/-   ##
==========================================
- Coverage   36.81%   36.21%   -0.60%     
==========================================
  Files         158      159       +1     
  Lines        2548     2579      +31     
  Branches      599      589      -10     
==========================================
- Hits          938      934       -4     
- Misses       1428     1643     +215     
+ Partials      182        2     -180     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sgratch sgratch added the bug Categorizes issue or PR as related to a bug. label Dec 19, 2024
@sgratch sgratch merged commit 27e5dad into kubev2v:main Dec 19, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants