Import fails on large ZIP exports
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- web-dev
Hướng nghiên cứu
Bắt đầu bằng cách xem xét các điểm vào export và import được thảo luận trong #304, tập trung vào cách các tham chiếu đến media, background, marker và sharing image được biểu diễn trong JSON đã export. Tái hiện trường hợp ZIP lớn và xác minh rằng một bản export chỉ chứa các hình ảnh được tham chiếu có thể được import mà không vượt quá giới hạn upload 20MB.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
In discussion in #304 we found that StoryMap creates export ZIP files containing all files associated with a project, sometimes creating a ZIP which is larger than the 20MB maximum upload supported by the system. Thus, the export cannot be re-imported.
In this specific case, there were many files in the export which were not in active use in the storymap. This is unsurprising, since there's no "delete" functionality. It's also the case that many of the images were much larger than they reasonably needed to be for display in a storymap which would almost certainly have been smaller (in pixel dimensions) than the image file.
The workaround was to create a new ZIP, omitting all image files which weren't referenced in the JSON files in the export. This imported without any issue.
We might consider filtering the images part of the export process to only include images which are actively used in the media, background, marker, or sharing image locations. It's possible in theory that we'd still create an export larger than 20MB. I don't really think it's a good idea to increase that threshold, but then, I don't know what we'd do besides tell people "sorry."
I suppose we could also consider downsampling uploaded images, although that should go in its own issue if we decide it's the right way to go.
- Ngôn ngữ chính
- JavaScript
- Star
- 248
- Fork
- 61
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NUKnightLab/StoryMapJS
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
NUKnightLab/StoryMapJS#507 ·
-
Visual glitches Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
NUKnightLab/StoryMapJS#506 ·
-
Provide a npm distribution Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
NUKnightLab/StoryMapJS#505 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
NUKnightLab/StoryMapJS#495 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
NUKnightLab/StoryMapJS#488 ·
Tất cả issue của NUKnightLab/StoryMapJS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
area-deployment area-integrations triage:bot-seen
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 86/100
-
Issue-Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
sugarlabs/musicblocks#8924 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ArduPilot/ardupilot_wiki#8088 ·
-
[BUG] createTool tools cannot be registered with Mastra when exactOptionalPropertyTypes is enabled Đang mởcustomer-eng status: needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100