Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Sync server fix local drive #1115

Merged
merged 34 commits into from
Mar 12, 2021
Merged

Sync server fix local drive #1115

merged 34 commits into from
Mar 12, 2021

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Mar 11, 2021

First iteration of using Local Settings
Exposed new methods for Local Settings
Various fixes and refactoring
Contains updates to Local Settings

Currently studio and local sites shouldn't be configurable in Settings. They are pulling root info from Anatomy.
Tested pulling root info from Local settings (for studio and local)

kalisp and others added 25 commits March 8, 2021 12:52
Implemented required methods in LocalDriveHandler
Added progress for LocalDriveHandler
local_id is accessible by get_local_site_id, shouldnt be visible in Settings
studio and local sites should be configured in Local Settings
refactor
renamed get_local_site to get_active_site (part of public API)
, get_remote_sites_from_settings

Refactorr
Sites could be configured in Local setting, so validation
doesn't have sense here
Small refactor
Fix - status for some failed was incorrectly set to Not available
Extended AbstracProvider with new method for resolvments of paths
Added defaults sites to configured sites
Name refactor
@kalisp kalisp added this to the 3.0 milestone Mar 11, 2021
@kalisp kalisp requested a review from a team March 11, 2021 15:27
@kalisp kalisp self-assigned this Mar 11, 2021
@@ -1334,20 +1421,20 @@ async def sync_loop(self):
while self.is_running and not self.module.is_paused():
import time
start_time = None
for collection, preset in self.module.get_synced_presets().\
self.module.set_sync_project_settings() # clean cache
for collection, preset in self.module.get_sync_project_settings().\
Copy link

Choose a reason for hiding this comment

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

line too long (83 > 79 characters)

@@ -849,6 +855,9 @@ def sort(self, index, order):

self.sort = {self.SORT_BY_COLUMN[index]: order, '_id': 1}
self.query = self.get_default_query()
# import json
# log.debug(json.dumps(self.query, indent=4).replace('False', 'false').\
Copy link

Choose a reason for hiding this comment

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

line too long (80 > 79 characters)

@mkolar mkolar merged commit 80857e8 into develop Mar 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants