Skip to content

Conversation

dgarros
Copy link
Contributor

@dgarros dgarros commented Apr 22, 2025

This PR regroup multiple changes and refactoring of the structure of the projects.
One of my goal is to help us come up with best practices on how to best organized a repository/project meant to work with Infrahub.

Main changes

  • Migrate data script to object files, based on Add infrahubctl object command infrahub-sdk-python#328
    • Leverage Template to simplify the creation of Devices
  • Add local Python module to simplify files management
  • Add Dockerfile and docker compose to leverage local Python module within infrahub
  • Add integration tests with live instance of Infrahub (including with streamlit)
  • Leverage Python Protocols to improve Python typing both in Streamlit and in Infrahub Generator
  • Update streamlit to use the sync version of the SDK

@@ -0,0 +1,8 @@
---
Copy link
Collaborator

Choose a reason for hiding this comment

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

Adding the repository like this isn't consistent with what's in the readme file I believe

Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we get rid of that one now that we use yaml objects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do in a future PR

Copy link
Collaborator

@BaptisteGi BaptisteGi left a comment

Choose a reason for hiding this comment

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

Awesome, that's way better ✨

@dgarros dgarros merged commit dc25690 into main Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants