Riverscapes / QRAVEPlugin

QGIS Plugin for viewing Riverscapes projects
GNU General Public License v3.0
0 stars 0 forks source link

UPLOADER: "Unchanged" files always marked for re-upload (Schroedinger's GIS) #121

Open MattReimer opened 7 months ago

MattReimer commented 7 months ago

TL;DR: Opening files in QGIS changes them.

Symptoms

The symptom of a project is as follows:

  1. User downloads a big project
  2. User loads said project using "Riverscapes Viewer"
  3. User does not make any changes to the project
  4. User clicks the "Upload" menu item
  5. Geopackages are marked for upload to the server

What is causing this?

This happens because when the user opens a project the Business Logic dictates that some files (usually geopackages and rasters) are opened, read and added to the project tree.

This act of reading them changes the MD5 hashes of the file (which is a terrible side-effect but a common problem in the GIS world).

Why this really sucks

  1. If all the user did was change the metadata or a smaller file in the project, the user will have to upload the entire project (or at least every file the businesslogic touches) again.
  2. This is a waste of time and bandwidth and could end up costing us $$$ if the uploader is used
  3. There is no way to get to the upload dialog without opening the project. This means there is no way to avoid this problem (in QGIS anyway, people using the rscli tool can avoid this problem).
  4. This precludes this tool (for now anyway) from being useful to make lots of little changes to many projects, especially larger projects.

@philipbaileynar put some notes in the docs about this: https://viewer.riverscapes.net/software-help/help-qgis-uploader/ (see notes at the bottom)

How could we fix this in the future