Skip to content

feat: filter workspaceKinds by uiHide - #1033

Closed
akrem-chabchoub wants to merge 1 commit into
kubeflow:notebooks-v2from
akrem-chabchoub:feat/namespace-filter
Closed

akrem-chabchoub wants to merge 1 commit into
kubeflow:notebooks-v2from
akrem-chabchoub:feat/namespace-filter

Conversation

@akrem-chabchoub

@akrem-chabchoub akrem-chabchoub commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

closes: #860
related: #1010
blocked by: #1043

Summary

Wire the workspace kind selection step to hide kinds when the API returns ruleEffects.uiHide: true, while keeping kinds visible when ruleEffects is missing .
GET /workspacekinds?namespaceFilter=… is already used from the wizard via useWorkspaceKinds(namespace) (#1010)

What changed

  • WorkspaceFormKindList: filter kinds before the name filter — drop hidden and ruleEffects.uiHide, then apply the existing toolbar filters.
  • data-contracts: optional ruleEffects on workspace kinds (uiHide, aclDeny). Stubbed in the generated contracts until swagger is updated; remove the TODO and run npm run generate:api once the spec includes it.
  • mockBuilder: default ruleEffects on buildMockWorkspaceKind so mocks match the new shape.
  • Tests: unit tests for uiHide / missing ruleEffects and Cypress tests.

@github-project-automation github-project-automation Bot moved this to Needs Triage in Kubeflow Notebooks Apr 20, 2026
@google-oss-prow
google-oss-prow Bot requested review from caponetto and thaorell April 20, 2026 00:36
@google-oss-prow google-oss-prow Bot added area/frontend area - related to frontend components area/v2 area - version - kubeflow notebooks v2 labels Apr 20, 2026
@google-oss-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign paulovmr for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@akrem-chabchoub akrem-chabchoub changed the title Feat/namespace filter feat: filter workspaceKinds by ruleEffects.uiHide Apr 20, 2026
@akrem-chabchoub akrem-chabchoub changed the title feat: filter workspaceKinds by ruleEffects.uiHide feat: filter workspaceKinds by uiHide Apr 20, 2026
@akrem-chabchoub akrem-chabchoub changed the title feat: filter workspaceKinds by uiHide feat: filter workspaceKinds by uiHide Apr 20, 2026
@akrem-chabchoub

akrem-chabchoub commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor Author

CI is failing. The frontend workflow runs npm run generate:api, which regenerates src/generated/data-contracts.ts from workspaces/backend/openapi/swagger.json and removes any hand-edited types not present in swagger, including the ruleEffects stub in this PR.

Maybe I can add those fields in backend (temporarly) ?

@akrem-chabchoub
akrem-chabchoub marked this pull request as ready for review April 20, 2026 07:26
@akrem-chabchoub
akrem-chabchoub marked this pull request as draft April 20, 2026 07:26

@thaorell thaorell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @akrem-chabchoub , thank you for opening the PR. Yes I do believe the change should happen in the backend first. The types in data-contracts.ts describe the communication between the frontend and backend. It is autogenerated by running npm run generate:api and should not be manually fixed.
Any change should happen in the swagger.json file in the backend. The frontend can then detect the change in swagger.version file and then you can run npm run generate:api

@akrem-chabchoub

akrem-chabchoub commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor Author

@thaorell Thanks!
I made the implementation in backend side in #1043 to include ruleEffects.

Now once its merged we can link the commit to swagger.version and generate the data contracts.

Signed-off-by: akrem-chabchoub <chabchoub.akrem@gmail.com>
@andyatmiami

Copy link
Copy Markdown
Contributor

/hold

need to work with @akrem-chabchoub (and update issues/writeups) to reflect a slight change in requirements on how we want this implemented.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity.
It will be closed if no further activity occurs.
Thank you for your contributions.

Members may comment /lifecycle frozen to prevent this pull request from being marked as stale.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because it has not had recent activity.
You can reopen the PR if you want.

@github-actions github-actions Bot closed this Jul 26, 2026
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in Kubeflow Notebooks Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci area - related to ci area/frontend area - related to frontend components area/v2 area - version - kubeflow notebooks v2 do-not-merge/hold lifecycle/stale size/L

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants