Skip to content

Commit

Permalink
Consolidate CoreRepository/Read-Only -> Generic in menu
Browse files Browse the repository at this point in the history
Fixes #4071
  • Loading branch information
ogenstad committed Aug 13, 2024
1 parent fd9bfae commit 1e1b5c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions backend/infrahub/api/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,8 @@ async def get_menu(branch: Branch = Depends(get_branch_dep)) -> list[InterfaceMe
InterfaceMenu(title="Schema", path="/schema", icon="mdi:file-code"),
InterfaceMenu(
title="Repository",
path=f"/objects/{InfrahubKind.REPOSITORY}",
icon=_extract_node_icon(full_schema[InfrahubKind.REPOSITORY]),
),
InterfaceMenu(
title="Read-only Repository",
path=f"/objects/{InfrahubKind.READONLYREPOSITORY}",
icon="mdi:source-repository",
path=f"/objects/{InfrahubKind.GENERICREPOSITORY}",
icon=_extract_node_icon(full_schema[InfrahubKind.GENERICREPOSITORY]),
),
InterfaceMenu(
title="GraphQL Query",
Expand Down
1 change: 1 addition & 0 deletions backend/infrahub/core/schema/definitions/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@
"default_filter": "name__value",
"order_by": ["name__value"],
"display_labels": ["name__value"],
"icon": "mdi:source-repository",
"branch": BranchSupportType.AGNOSTIC.value,
"documentation": "/topics/repository",
"attributes": [
Expand Down

0 comments on commit 1e1b5c7

Please sign in to comment.