Skip to content

SG-43459 Migrate Build scene/template workflows - #145

Merged
carlos-villavicencio-adsk merged 37 commits into
ticket/SG-43456_migration_1from
ticket/SG-43459_migration_phase2
Jun 22, 2026
Merged

SG-43459 Migrate Build scene/template workflows#145
carlos-villavicencio-adsk merged 37 commits into
ticket/SG-43456_migration_1from
ticket/SG-43459_migration_phase2

Conversation

@carlos-villavicencio-adsk

@carlos-villavicencio-adsk carlos-villavicencio-adsk commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Base branch #137

Requirements

Description

This will prevent having these workflows dependant from tk-framework-flowam.

TODO

  • Remove references for framework-flowam on flowam_actions.py
  • Remove references for framework-flowam on entity, latest publish, and publish history models.
  • Remove requirement on info.yml
  • Tested on Maya
  • Tested on Desktop
  • Remove tk_core_ref from azure-pipelines.yml

@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 26.23318% with 329 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (ticket/SG-43456_migration_1@777b988). Learn more about missing BASE report.

Files with missing lines Patch % Lines
python/tk_multi_loader/flowam/create.py 22.28% 143 Missing ⚠️
python/tk_multi_loader/flowam/reference.py 12.30% 57 Missing ⚠️
python/tk_multi_loader/flowam/file.py 12.69% 55 Missing ⚠️
python/tk_multi_loader/flowam/flowam_actions.py 13.63% 38 Missing ⚠️
python/tk_multi_loader/build_asset_dialog.py 45.45% 6 Missing ⚠️
python/tk_multi_loader/flowam/entity_model.py 53.84% 6 Missing ⚠️
...thon/tk_multi_loader/flowam/latestpublish_model.py 62.50% 6 Missing ⚠️
python/tk_multi_loader/flowam/template_queries.py 60.00% 4 Missing ⚠️
python/tk_multi_loader/build_template_dialog.py 57.14% 3 Missing ⚠️
python/tk_multi_loader/dialog.py 25.00% 3 Missing ⚠️
... and 4 more
Additional details and impacted files
@@                      Coverage Diff                       @@
##             ticket/SG-43456_migration_1     #145   +/-   ##
==============================================================
  Coverage                               ?   19.18%           
==============================================================
  Files                                  ?       51           
  Lines                                  ?     4842           
  Branches                               ?        0           
==============================================================
  Hits                                   ?      929           
  Misses                                 ?     3913           
  Partials                               ?        0           
Flag Coverage Δ
Linux 19.18% <26.23%> (?)
Python-3.10 19.18% <26.23%> (?)
Python-3.11 19.18% <26.23%> (?)
Python-3.13 19.18% <26.23%> (?)
Python-3.9 19.18% <26.23%> (?)
Windows 19.18% <26.23%> (?)
macOS 19.18% <26.23%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@carlos-villavicencio-adsk
carlos-villavicencio-adsk marked this pull request as ready for review June 18, 2026 15:22
Comment thread hooks/tk-houdini_actions.py Outdated

@chenm1adsk chenm1adsk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left some question of improvement that I am not sure if we should aim for in the scope of this ticket.

Comment on lines 105 to 106
if len(actions) == 0:
actions.extend(list(mappings.get("All", [])))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not introduced by this PR but as I mentioned in phase1 PR, this will change the behaviour of when to append actions in "All", we shouldn't introduce to tk-multi-loader2.

Comment thread python/tk_multi_loader/flowam/flowam_actions.py Outdated
Comment thread python/tk_multi_loader/flowam/reference.py
Comment thread python/tk_multi_loader/flowam/__init__.py
Comment thread python/tk_multi_loader/flowam/create.py Outdated
Comment thread hooks/tk-desktop_actions.py Outdated
enable_flowam = app.get_setting("enable_flowam", False)
if enable_flowam:
am_base_obj = kwargs.get("am_base_obj")
if self.parent.context.flow_project_id:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I feel like it is better to just create a function to group flow logic.
For example create a _flow_execute_action and called it when flow project id exists

Comment thread hooks/tk-maya_actions.py
Comment thread python/tk_multi_loader/flowam/latestpublish_model.py
Comment thread python/tk_multi_loader/flowam/file.py Outdated
Comment thread python/tk_multi_loader/flowam/flowam_actions.py Outdated
Comment thread python/tk_multi_loader/flowam/flowam_actions.py Outdated
Comment thread python/tk_multi_loader/flowam/reference.py Outdated
Comment thread python/tk_multi_loader/flowam/reference.py
Comment thread python/tk_multi_loader/flowam/reference.py
Comment thread python/tk_multi_loader/flowam/reference.py Outdated
Comment thread python/tk_multi_loader/flowam/reference.py Outdated

@yungsiow yungsiow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Thanks Charlie!

@carlos-villavicencio-adsk
carlos-villavicencio-adsk merged commit 1fd1069 into ticket/SG-43456_migration_1 Jun 22, 2026
27 checks passed
@carlos-villavicencio-adsk
carlos-villavicencio-adsk deleted the ticket/SG-43459_migration_phase2 branch June 22, 2026 20:28
carlos-villavicencio-adsk added a commit that referenced this pull request Jul 8, 2026
* Add MEDM abstractions and utilities

* Apply black

* Apply black - pre-commit version

* Add remaining types

* DRY

* SG-43457 [Part2] Migration of MEDM main logic and resources (#138)

* 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)

* SG-43677 Fix hooks to support multiple kwargs (#144)

* SG-43459 Migrate Build scene/template workflows (#145)

* Remove framework dependency from dialogs classes

* Migrate build asset/template workflows

* Remove more references

* Use sandbox functions

* Update references on models

* Migrate thumbnail utilities

* Use more sandbox functions

* Finish migrating framework-floam references

* Update references from sgtk.flowam.create

* Remove framework loading

* Rename fucntion to get FlowAMActions instance

* Rename `am_base_obj` to `flowam_actions`

* Latest Updates

* Finish clean-up

* Update imports

* Tested reference link and download workflows

* Finished testing build scene, open, reference, discard.

* Tested create template workflow

* Add tk_core_ref value for testing

* Format

* Fix fixture

* remove migrated methods

* Rename `medm` directory to `flowam`

* Removed `enable_flowam` setting

* Get rid of `FlowAMActions` dependency injection and use app level module

* Update core new definitions

* Fix format

* Handle error

* Remove dead code

* Update references, rename variables

* Fix discard draft logic

* Format

* Update reference sequence

* Improved `CreateReferenceError`

* CR fixes

* Fix method signature

* Import flowam module just to be safe

* Add codecov.yml file

* Exclude ui files from codecov

* Fix paths

* Add more files

* Add hosts validationo

* feat: [SG-43419] Launch publisher via engine command with single_file_mode support (#147)

Replace direct app lookup + non-existent _set_context() call with the established engine command callback pattern. Grab the publisher app from the matched command's properties to call show_dialog() directly, passing single_file_mode=True when the action is a Flow AM republish ("publish"), so the dialog restricts users to dropping or browsing a single file.

* Try to add support to older cores

* Fix format

* Update conditionals

* Point CI to tk-core master

* Remove config dependency for entity mapping (#148)

* Remove config dependency for entity mapping

* Code review feedback

* Actions reorg

* Update workfile actions

* Format!

---------

Co-authored-by: Ming Chen <ming.chen@autodesk.com>
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.

3 participants