bcgov / bcgov/foi-flow

Replaced file's options are not showing up right away(Needs a refresh)

Open
#3,958 0 comments 0 reactions 0 assignees View on GitHub
bug medium priority
Dominant language
Python
Stars
8
Forks
2
Avg merge
14h 34m
Merged PRs (30d)
46

Description

**Describe the bug in current situation**
After replacing a child attachment ,replaced file options are not showing up at the frond end

**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?**
test-marshal

**Steps to Reproduce**
Steps to reproduce the behavior:
1. Go to ministry login
2. Upload some message file which has attachment
3. Replace child attachment with a pdf file
4. Then file options like "Replace attachment, Download replaced, Download original" not showing up right away
5. Needs a refresh to visible those options

**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.
**Expected result**
![image.png](https://images.zenhubusercontent.com/63e6c81be9adb8e6f876c7e0/8a76721f-952a-4525-8f09-74ddd8107bf2)
**Actual result**

![image.png](https://images.zenhubusercontent.com/63e6c81be9adb8e6f876c7e0/5b24e791-8e63-46de-a92e-432a3655cbee)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the test-marshal environment by replacing a child attachment with a PDF and checking the file options before and after refresh. Trace the attachment replacement flow and frontend option rendering; done means “Replace attachment,” “Download replaced,” and “Download original” appear immediately without a refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.