soundscape-community/authoring-tool

System doesn't save imported activities

Opened this issue · 1 comments

Description
The system does not save an activity when it is imported from a GPX file.

To Reproduce
Steps to reproduce the behavior:

  1. Hit the Import button.
  2. Browse and select a GPX file that was generated earlier using the authoring tool.
  3. Select Import to continue.
  4. Return to "My Activities" display.
  5. See error (there is no new activity in the activities list for the activity that was just imported).

Expected behavior
Once the "Import" button's been hit on the import form/modal, the activity should be saved to the database and show up in the list of all activities. Since creation creates an activity the moment the creation form is satisfied, one would expect the imported activity to also be created the moment the form is completed.

Device Info

  • OS: Windows 11
  • Browser: Firefox

This issue is based on accessing the database where the information for an activity is stored. It mostly has to do with manipulating imported data. Some other related issues are:

  • Exporting an imported activity doesn't save all the waypoints
  • Importing an activity with an image in it causes an error