Opened 5 years ago
Closed 4 years ago
#77 closed task (fixed)
Bulk workouts upload
Reported by: | borja | Owned by: | borja |
---|---|---|---|
Priority: | major | Milestone: | OpenWorkouts 0.3 |
Component: | workouts | Keywords: | |
Cc: |
Description
So, we already have some code to add workouts in batch mode from a local directory on the filesystem (browser:OpenWorkouts-current/ow/load_workouts.py), but that works only if the workout files (gpx, fit) are located in the filesystem of the computer where openworkouts is running on. In the case of running it in a separate server, users don't have an easy way to upload those workouts.
The idea would be to allow users to upload a compressed file containing all the workout files, like a zip, tgz, 7z, etc.
Then, openworkouts should uncompress that file into a temporary destination, and run our load_workouts code from there (in a separate, background, process of course).
One obvious problem of that is that those compressed files could be quite big, which usually don't work well with traditional http file uploads. One solution for that would be to use something like this js library:
Change History (5)
comment:1 Changed 4 years ago by borja
- Owner set to borja
- Status changed from new to accepted
comment:2 Changed 4 years ago by borja
comment:3 Changed 4 years ago by borja
- Milestone changed from OpenWorkouts 0.5 to OpenWorkouts 0.3
comment:4 Changed 4 years ago by borja
Implemented here:
This implementation do not address the issue with big file uploads, I think it is best to move that out to a ticket on its own (see ticket #85).
comment:5 Changed 4 years ago by borja
- Resolution set to fixed
- Status changed from accepted to closed
TODO-like list for this ticket: