edina / fieldtrip-gb

Fieldtrip GB is a mobile mapping and data collection app that is available for iPhone and Android devices.
Other
1 stars 0 forks source link

Editors disappear upgrading from 1.4.7 to 1.5.0 #223

Open rgamez opened 9 years ago

rgamez commented 9 years ago

After the upgrade the user remains logged in but the editors downloaded previously are gone.

rgamez commented 9 years ago

In the 1.4.x versions and before the list of editors was created listing the filesystem, we changed that behaviour and now the list is stored in localStorage

rgamez commented 9 years ago

Related: https://github.com/edina/env-sys/issues/3

rgamez commented 9 years ago

For 1.5.0 release a note is going to be included where the user is informed that he should download again his editors, but the logic should be reviewed for future releases:

The actual code does:

  1. If the config.projectform variable is set to true and the localStorage['project-form-loaded'] is false or not set, the forms that are in the applicationDirectory + /forms directory are copied to the applicationStorageDirectory + /assets directory.
  2. If any form was copied to the assets directory the editors/private and the editors/public are scanned for editors and the localStorage['project-form-loaded'] is set to true

There is a mismatch of directories and in practice the editors are never scanned additionally the previous editors will remain in /editors not in the new path editors/private