Import fails on large ZIP exports
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- web-dev
調査の方向性
まず、#304 で説明されているエクスポートとインポートのエントリーポイントを確認し、エクスポートされた JSON でメディア、背景、マーカー、共有画像への参照がどのように表現されているかに注目します。大きな ZIP のケースを再現し、参照されている画像だけを含むエクスポートを 20MB のアップロード上限を超えずにインポートできることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- JavaScript
- スター
- 248
- フォーク
- 61
- 平均マージ
- 1分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NUKnightLab/StoryMapJS のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
NUKnightLab/StoryMapJS#507 ·
-
Visual glitches オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
NUKnightLab/StoryMapJS#506 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
NUKnightLab/StoryMapJS#505 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
NUKnightLab/StoryMapJS#495 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
NUKnightLab/StoryMapJS#488 ·
NUKnightLab/StoryMapJS の issue をすべて見る
似ている issue
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
NousResearch/hermes-agent#122386 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
IBM/node-sdk-core#373 ·
-
docs web/
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100