bcgov / bcgov/foi-flow

ZIP/Compressed File in Batch Upload - Stalls Batch Upload

Open
#4,023 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
8
Forks
2
Avg merge
14h 34m
Merged PRs (30d)
46

Description

**Describe the bug in current situation**

Currently, zip/compressed files are a known issue when uploaded to the Records tab, and they do not upload successfully (e.g., the records upload gets stuck, see #4011 issue as example). There are scenarios where a compressed file is inserted in the middle of a batch. (E.g., 40 files, where a compressed file was inserted in the middle of the batch. Currently, this holds up the whole batch upload, and causing an error uploading the batch). When a zip/compressed file is reached in a batch upload, then the 'Uploading Files' toast does not progress, as it presumably doesn't know how to action the file (e.g., skip it after x amount of time and move to the next file).

We may need logic for Mod to disregard ZIP/compressed files in a package, as to no prevent other uncompressed / unzipped files from being uploaded.

See #4011 for an example of this issue from PROD.

**Link bug to the User Story**

**Impact of this bug**
Describe the impact, i.e. what the impact is, and number of users impacted.

**Chance of Occurring (high/medium/low/very low)**

**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**

**Steps to Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Actual/ observed behaviour/ results**

**Expected behaviour**
A clear and concise description of what you expected to happen. Use the gherking language.

**Screenshots/ Visual Reference/ Source**
If applicable, add screenshots to help explain your problem. You an use screengrab.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Records tab batch upload with a compressed file inserted among uncompressed files, using the behavior described in #4011 as the reference. Trace the upload entry point and observe the toast and queue handling; done means compressed files no longer stall the batch and the remaining files upload successfully.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.