MerginMaps / work-packages

Mergin Maps Work Packages: manage field surveys for multiple teams
MIT License
7 stars 4 forks source link

Cache downloaded master and WP projects #30

Closed wonder-sk closed 2 years ago

wonder-sk commented 3 years ago

For larger projects with hundreds of MB of data, downloading master project and WP projects always from scratch can be quite time consuming. It would be better to keep a private directory with downloaded projects and only verify that they are untouched (so that we do not upload unwanted changes).

wonder-sk commented 3 years ago

NOW:

/tmp/mergin-work-packages-xxxxx/
  wp/
    base/
      ...
    input/
      ...
    output/
      ...
  master/     ... full "master" project checkout
  wp-WP1/     ... full checkout
  wp-WP2/     ... full checkout

NEXT RELEASE:

python3 wp_mergin.py --cache-dir /tmp/my-cache

/tmp/my-cache/       ... project cache dir
   master/
   WP1/
   WP2/

/tmp/mergin-work-packages-xxxxx/      ... temp dir
  wp/
    base/
      ...
    input/
      ...
    output/
      ...