Skip to content

SG-44680 Prevent downloading and copy ref link for container assets - #160

Merged
carlos-villavicencio-adsk merged 5 commits into
ticket/sg-43935/data-model-create-updatefrom
ticket/SG-44680_download_container_bug
Aug 6, 2026
Merged

SG-44680 Prevent downloading and copy ref link for container assets#160
carlos-villavicencio-adsk merged 5 commits into
ticket/sg-43935/data-model-create-updatefrom
ticket/SG-44680_download_container_bug

Conversation

@carlos-villavicencio-adsk

Copy link
Copy Markdown
Contributor

Base branch: #149

Adds validation to prevent displaying "download" and "copy reference link" for asset containers (root assets) Introduced on the component.VariantSet data model.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.80%. Comparing base (1a8ac38) to head (1a1a56f).

Additional details and impacted files
@@                            Coverage Diff                            @@
##           ticket/sg-43935/data-model-create-update     #160   +/-   ##
=========================================================================
  Coverage                                     17.80%   17.80%           
=========================================================================
  Files                                            32       32           
  Lines                                          3179     3179           
=========================================================================
  Hits                                            566      566           
  Misses                                         2613     2613           
Flag Coverage Δ
Linux 17.80% <ø> (ø)
Python-3.10 17.80% <ø> (ø)
Python-3.11 17.80% <ø> (ø)
Python-3.13 17.80% <ø> (ø)
Python-3.9 17.80% <ø> (ø)
Windows 17.80% <ø> (ø)
macOS 17.80% <ø> (ø)

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.

Comment thread hooks/tk-desktop_actions.py
Comment thread hooks/tk-maya_actions.py Outdated
Comment thread python/tk_multi_loader/flowam/flowam_actions.py Outdated
Comment on lines +439 to +449
try:
result = download_revision(flow_revision_id)
except DownloadRevisionError as exc:
if 'Component of purpose "source" does not exist on revision.' in str(exc):
QtGui.QMessageBox.warning(
None,
"Warning",
"This asset has no binaries to download.",
)
return
raise

@yungsiow yungsiow Aug 6, 2026

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'm assuming we can't actually get here now that we've added the download filter on the actions. This is just for extra safety?

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.

Yes, extra safety. This was the first iteration of the fix. But I don't think it will hurt. Do you think it's better to remove it?

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.

No I like it - just in case!

Comment thread python/tk_multi_loader/flowam/flowam_actions.py

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

Personally I would ignore case when alphabetizing, but not a huge deal. Looks good, thanks Charlie!

@carlos-villavicencio-adsk
carlos-villavicencio-adsk merged commit fe6b99e into master Aug 6, 2026
27 checks passed
@carlos-villavicencio-adsk
carlos-villavicencio-adsk deleted the ticket/SG-44680_download_container_bug branch August 6, 2026 16:18
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