Skip to content

Conversation

@dgarros
Copy link
Collaborator

@dgarros dgarros commented Oct 13, 2024

  • Removed the previous menu and migrated the new menu to the old endpoint
  • Added a new file to define the new menu and complete the migrations of the existing menu to this new format
  • Updated the command dev.load-infra-schema to load both the schema and the menu

The changes in the Python SDK are being tracked in this PR opsmill/infrahub-sdk-python#73

@github-actions github-actions bot added group/backend Issue related to the backend (API Server, Git Agent) group/frontend Issue related to the frontend (React) labels Oct 13, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Oct 14, 2024

CodSpeed Performance Report

Merging #4623 will degrade performances by 99.81%

Comparing dga-20241011-menu (4f23e7c) with develop (3a2ed2e)

Summary

❌ 1 (👁 1) regressions
✅ 9 untouched benchmarks

Benchmarks breakdown

Benchmark develop dga-20241011-menu Change
👁 test_get_menu 764.2 µs 407,107.6 µs -99.81%

Copy link
Contributor

@ogenstad ogenstad left a comment

Choose a reason for hiding this comment

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

LGTM, left some small comments. Also I think Bilal mentioned a duplicate "Deployment" under the deployment section.

order_weight=obj.order_weight.value,
path=obj.path.value or "",
kind=obj.get_kind(),
kind=obj.kind.value or "",
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on the MenuItem class and the obj.kind.value or "" it seems like kind, path and icon should perhaps be mandatory as strings but have "" as the default value. Having said that I don't know if this would work in the frontend (.i.e. to send in a required blank value).

- namespace: Organization
name: Manufacturer
label: Manufacturer
kind: LocationManufacturer
Copy link
Contributor

Choose a reason for hiding this comment

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

Schema does seem to exist in demo data right?

@dgarros dgarros merged commit 1e4e48e into develop Oct 16, 2024
31 of 32 checks passed
@dgarros dgarros deleted the dga-20241011-menu branch October 16, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

group/backend Issue related to the backend (API Server, Git Agent) group/frontend Issue related to the frontend (React)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants