Repository navigation
feat: filter workspaceKinds by uiHide - #1033
akrem-chabchoub wants to merge 1 commit into
Conversation
3504c0a to
3d900cf
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
cbc4dbc to
3d900cf
Compare
|
CI is failing. The frontend workflow runs Maybe I can add those fields in backend (temporarly) ? |
thaorell
left a comment
There was a problem hiding this comment.
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
Signed-off-by: akrem-chabchoub <chabchoub.akrem@gmail.com>
3d900cf to
d6085c0
Compare
7d488ae to
d6085c0
Compare
|
/hold need to work with @akrem-chabchoub (and update issues/writeups) to reflect a slight change in requirements on how we want this implemented. |
|
This pull request has been automatically marked as stale because it has not had recent activity. Members may comment |
|
This pull request has been automatically closed because it has not had recent activity. |
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 whenruleEffectsis missing .GET /workspacekinds?namespaceFilter=…is already used from the wizard viauseWorkspaceKinds(namespace)(#1010)What changed
WorkspaceFormKindList: filter kinds before the name filter — drophiddenandruleEffects.uiHide, then apply the existing toolbar filters.data-contracts: optionalruleEffectson workspace kinds (uiHide,aclDeny). Stubbed in the generated contracts until swagger is updated; remove the TODO and runnpm run generate:apionce the spec includes it.mockBuilder: defaultruleEffectsonbuildMockWorkspaceKindso mocks match the new shape.uiHide/ missingruleEffectsand Cypress tests.