bcgov / bcgov/foi-flow

FOIPPA section update crashes on Redline/OIPC layers if user edit sections on OIPC layer

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

Description

**Describe the bug in current situation**
The following issues happening when we edit/update FOIPPA section on OIPC layer

- Create a redaction on Redline layer and then go to OIPC layer and edit the section(Make a new section). then switch back to Redline layer and then again come back to OIPC layer. Then we can see two redaction boxes on OIPC layer. Updated one and the previous one
-
[Private Zenhub Image](https://api.zenhub.com/attachedFiles/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBc2ovIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--253717fd7d69c9c337f3dd3da40476a500b24c1d/image.png)

- Also when we select one redaction, it automatically selects two. See the screenshot below
-
[Private Zenhub Image](https://api.zenhub.com/attachedFiles/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBczMvIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--d277f653d3dd8e7278bf49de06b58e9e0c0f9ea6/image.png)

- When we go back to Redline layer and try to edit the FOIPPA section, then default one is showing as the one we recently updated at the OIPC layer( It shouldnot be the one which is updated at OIPC layer)

**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)**
Medium

**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 redaction app
2. Create a redaction on Redline layer.
3. Switch to OPIC layer and try to edit the redaction that already created on the same page in Redline layer
4. Switch to redline layer and back to OPIC layer then can see two redactions(Old one and new one)
5. Select one of the redaction, it automatically selects two(screenshot in description)
6. Try to edit the same redaction on Reline layer, then on FOIPPA section modal, it shows new one as default one which is updated on OIPC layer(Any changes on OIPC layer should not be reflected on Redline layer)

**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 in the redaction app's FOIPPA section editing and layer-switching flow, reproducing the issue in the Test-marshal environment with Redline and OIPC layers. Trace how sections are loaded and selected after switching layers. Done means each layer shows only its own redaction, selecting one does not select two, and OIPC edits do not change the Redline default.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.