Skip to content

SG-43460 [Part4] Build dialogs and template utils#140

Merged
carlos-villavicencio-adsk merged 7 commits into
ticket/SG-43458_migration_3from
ticket/SG-43460_migration_4
Jun 10, 2026
Merged

SG-43460 [Part4] Build dialogs and template utils#140
carlos-villavicencio-adsk merged 7 commits into
ticket/SG-43458_migration_3from
ticket/SG-43460_migration_4

Conversation

@carlos-villavicencio-adsk

Copy link
Copy Markdown
Contributor

Base branch #139

Build dialogs

Migrate the code in the two custom UIs

  • Build Asset Dialog
  • Build Template Dialog

And related utilities into tk-multi-loader2.

@carlos-villavicencio-adsk carlos-villavicencio-adsk force-pushed the ticket/SG-43460_migration_4 branch from 4ae7184 to e5f8388 Compare June 3, 2026 18:57

@chenm1adsk chenm1adsk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The remaining looks good to me.

self.ui.templateWidget.setVisible(is_template_mode)
self.ui.pipeline_step_combo_box.clear()

if is_template_mode and self.step:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should call self.get_pipeline_steps() here as well, otherwise self.pipeline_steps is always empty and will cause issue when later we try to pipeline_step = self.pipeline_steps[step] in get_pipeline_step_templates()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think this is something we should worry about. I've been logging this scenario, and self.step is mostly None all the time, and self.pipeline_steps can be {}.

self.ok_button = self.ui.build_template_button_box.button(
QtGui.QDialogButtonBox.Ok
)
self.ok_button.clicked.disconnect()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude give me this suggestion but I am not sure if it is correct, could you please double check?

ok_button.clicked has no Python-side slots connected, so disconnect() raises
RuntimeError. The internal Qt connection from ok_button.clicked to
button_box.accepted() is managed in C++ and invisible to Python. Fix:
disconnect button_box.accepted instead:

self.ui.build_template_button_box.accepted.disconnect()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think we should worry about this.

Comment thread python/tk_multi_loader/build_template_dialog.py
* Fix bug when details panel collapses/expands

* SG-43627 Fix empty space gap on the details panel (#143)
@carlos-villavicencio-adsk carlos-villavicencio-adsk merged commit 62f361b into ticket/SG-43458_migration_3 Jun 10, 2026
9 of 24 checks passed
@carlos-villavicencio-adsk carlos-villavicencio-adsk deleted the ticket/SG-43460_migration_4 branch June 10, 2026 18:42
carlos-villavicencio-adsk added a commit that referenced this pull request Jun 10, 2026
* Migrate config hooks

* Add type annotations

* Wrap `get_am_base_obj` into the loader action manager

* Wraps constant

* SG-43460 [Part4] Build dialogs and template utils (#140)

* Migrate `BuildAssetDialog` and `BuildTemplateDialog` classes

* Migrate template helpers

* Code review feedback

* Update setting name

* Change MEDM to FlowAM in comments

* Replace MEDM in log messages

* SG-43626 Fix bug when details panel collapses/expands (#142)

* Fix bug when details panel collapses/expands

* SG-43627 Fix empty space gap on the details panel (#143)
carlos-villavicencio-adsk added a commit that referenced this pull request Jun 10, 2026
* Migration of the MEDM resources

* Migration of MEDM core logic

* Fix thumbnail display on version history

* Tentative wrap-up

* Format

* Fix CI: add missing fw

* Update Azure pipelines additional_repositories

* Revert framework additions for CI

* Comment framework for CI

* Test CI green

* Add remaining types

* Fix types

* Code review feedback

* Move  `DRAFT_VERSION_IDENTIFIER`  to constants

* SG-43458 [Part3] Config Hooks (#139)

* Migrate config hooks

* Add type annotations

* Wrap `get_am_base_obj` into the loader action manager

* Wraps constant

* SG-43460 [Part4] Build dialogs and template utils (#140)

* Migrate `BuildAssetDialog` and `BuildTemplateDialog` classes

* Migrate template helpers

* Code review feedback

* Update setting name

* Change MEDM to FlowAM in comments

* Replace MEDM in log messages

* SG-43626 Fix bug when details panel collapses/expands (#142)

* Fix bug when details panel collapses/expands

* SG-43627 Fix empty space gap on the details panel (#143)
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