Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global: dirmap for non local nor studio sites #746

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Jul 3, 2024

Changelog Description

Site Sync addon throws ValueError for no local/studio sites as it doesn't make sense to override roots for sftp or gdrive. This handles gracefully this exception.

Testing notes:

  1. create GDrive or SFTP site in Studio Settings and choose it Site Settings as remote site
  2. without this fix and enabled dirmap Maya won't show AYON in the menu
  3. for local-studio tests nothing should change

Site Sync addon throws ValueError for no local/studio sites as it doesn't make sense to override roots for sftp or gdrive.
This handles gracefully this exception.
@ynbot ynbot added type: bug Something isn't working size/XS labels Jul 3, 2024
Comment on lines 222 to 223
def _get_site_root_overrides(
self, sitesync_addon, project_name, site_name):
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def _get_site_root_overrides(
self, sitesync_addon, project_name, site_name):
def _get_site_root_overrides(
self, sitesync_addon, project_name, site_name
):

@iLLiCiTiT
Copy link
Member

iLLiCiTiT commented Jul 5, 2024

Site Sync addon throws ValueError for no local/studio sites as it doesn't make sense to override roots for sftp or gdrive. This handles gracefully this exception.

But, shouldn't that be handled by sitesync addon? Asking for root overrides should return empty dict in that case, or?

kalisp and others added 2 commits July 10, 2024 14:14
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
@kalisp kalisp requested a review from iLLiCiTiT July 10, 2024 12:14
@iLLiCiTiT iLLiCiTiT merged commit b487574 into develop Jul 10, 2024
2 checks passed
@iLLiCiTiT iLLiCiTiT deleted the bugfix/dirmap_for_remote_sites branch July 10, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants