Enhancement#4356: Add gzipped dumps import support
parent
941ab5bd9b
commit
9709e6a259
|
@ -18,7 +18,9 @@
|
|||
- Add a new permissions to allow add comments instead of use the existent modify permission for this purpose.
|
||||
- Include created, modified and finished dates for tasks in CSV reports
|
||||
- User stories and tasks listing API call support extra params to include more data (tasks and attachemnts and attachments, respectively)
|
||||
|
||||
- Import/Export:
|
||||
- Gzip export/import support.
|
||||
- Export performance improvements.
|
||||
|
||||
### Misc
|
||||
- [API] Improve performance of some calls over list.
|
||||
|
|
|
@ -318,6 +318,9 @@ class ProjectImporterViewSet(mixins.ImportThrottlingPolicyMixin, CreateModelMixi
|
|||
if not dump:
|
||||
raise exc.WrongArguments(_("Needed dump file"))
|
||||
|
||||
if dump.content_type == "application/gzip":
|
||||
dump = gzip.GzipFile(fileobj=dump)
|
||||
|
||||
reader = codecs.getreader("utf-8")
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue