Skip to content

Conversation

@sjt-rvx
Copy link
Contributor

@sjt-rvx sjt-rvx commented Jul 1, 2025

Changelog Description

Allows the inventory item labels to be driven by settings.

Part of RVX's summer of pull requests

@ynbot ynbot added the size/XS label Jul 1, 2025
@sjt-rvx sjt-rvx changed the title Rvx inventory labels Settings-driven inventory labels Jul 1, 2025
@BigRoy BigRoy added community Issues and PRs coming from the community members type: enhancement Improvement of existing functionality or minor addition labels Jul 1, 2025
self._clear_items()
# fetch the label settings

settings = get_project_settings(
Copy link
Member

@iLLiCiTiT iLLiCiTiT Jul 1, 2025

Choose a reason for hiding this comment

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

This whole shebang of getting the template should be implemented in controller not in UI.

Here should be just

group_name_template = self._controller.get_label_template()

Copy link
Member

@iLLiCiTiT iLLiCiTiT Jul 1, 2025

Choose a reason for hiding this comment

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

Or maybe even better, the container items should be returned with the label prepared...

UI should only show what controller (and models) prepare for data. In ideal case scenario should not make any calls using ayon_api or call host method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Issues and PRs coming from the community members size/XS type: enhancement Improvement of existing functionality or minor addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants