Skip to content

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

Open
chenm1adsk wants to merge 1 commit into
ticket/SG-43456_migration_1from
ticket/SG-43419-launch-publisher-single-file-mode
Open

feat: [SG-43419] Launch publisher via engine command with single_file_mode support#147
chenm1adsk wants to merge 1 commit into
ticket/SG-43456_migration_1from
ticket/SG-43419-launch-publisher-single-file-mode

Conversation

@chenm1adsk

@chenm1adsk chenm1adsk commented Jun 22, 2026

Copy link
Copy Markdown

Summary

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.

Tests

Verified when single_file_mode turned on, only accept one file in publish dialog
Screenshot 2026-06-22 at 3 11 38 PM
Also verified that this restriction doesn't cause regression when single_file_mode is off

…_mode support

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.
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.18%. Comparing base (1fd1069) to head (586c0fb).

Additional details and impacted files
@@                     Coverage Diff                      @@
##           ticket/SG-43456_migration_1     #147   +/-   ##
============================================================
  Coverage                        19.18%   19.18%           
============================================================
  Files                               51       51           
  Lines                             4842     4842           
============================================================
  Hits                               929      929           
  Misses                            3913     3913           
Flag Coverage Δ
Linux 19.18% <ø> (ø)
Python-3.10 19.18% <ø> (ø)
Python-3.11 19.18% <ø> (ø)
Python-3.13 19.18% <ø> (ø)
Python-3.9 19.18% <ø> (ø)
Windows 19.18% <ø> (ø)
macOS 19.18% <ø> (ø)

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 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.

LGTM

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