Reorganize classes/re-architecture code #13
Labels
code quality
Nonfunctional improvements to the codebase
under consideration
Dev has not yet decided whether or how to implement
WIP design document for a new code architecture
Add a
DandisetBackup
class that takes care of all repository-wide operations for backing up a Dandisetdandiset: RemoteDandiset
ds: AsyncDataset
manager: Manager
Syncer
methods into a single method of this classDatasetter
methods to this class:update_dandiset()
ensure_github_remote()
sync_dandiset()
update_github_metadata()
?tag_releases()
mkrelease()
backup_zarrs()
update_dandiset_metadata()
a method of this classasync_assets()
a method of this classregister_s3urls()
a method of this classAdd a
ZarrBackup
class for subsumingZarrSyncer
?Wrap this block in a function that takes a
DandisetBackup
,aiterassets()
async iterator,tracker
, &error_on_change
and returns a structure containingReport
,dm.last_timestamp
,dm.need_add
, &dm.zarrs
Move the
addurl
methods & attributes ofDownloader
to anAddurl
(?) class, an instance of which will be passed toDownloader
on instantiationAdd a
Superdataset
class that takes care of operations on the superdatasetThe text was updated successfully, but these errors were encountered: