SiteSync: host dirmap is not working properly (#4563)

- only editable keys are returned from Site Sync module to Local Settings

Cleaner approach even if LS UI is going away in Ayon.

- use remote_site only if is local_drive provider

- remove unwanted import

- cache mapping, update logging

Mapping was called multiple times for Nuke.
Logging was too verbose.
This commit is contained in:
Petr Kalis 2023-03-13 10:32:19 +01:00 committed by GitHub
parent 47de52bb03
commit a7f0d57638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 81 additions and 58 deletions

View file

@ -272,7 +272,7 @@ class SitesWidget(QtWidgets.QWidget):
)
site_configs = sync_server_module.get_all_site_configs(
self._project_name)
self._project_name, local_editable_only=True)
roots_entity = (
self.project_settings[PROJECT_ANATOMY_KEY][LOCAL_ROOTS_KEY]