Find and Redact - Selecting Full Lines Rather Than Specific Keywords or Phrase
- Dominant language
- Python
- Stars
- 8
- Forks
- 2
- Avg merge
- 14h 34m
- Merged PRs (30d)
- 46
Description
**Describe the bug in current situation**
A clear and concise description of what the bug is.
When a user uses the Find and Redact feature under the Redaction Panel, and searches for a keyword or phrase that spans 2 or more lines, the redaction box is applied to the full lines of text, rather than just the specific keyword(s) or phrase.
**Link bug to the User Story**
**Impact of this bug**
Describe the impact, i.e. what the impact is, and number of users impacted.
Low? As they can instead just search for the phrase and redact using the rectangular redaction tool.
**Chance of Occurring (high/medium/low/very low)**
Medium
**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**
Test-Marshal
EDU-2023-67435
**Steps to Reproduce**
Steps to reproduce the behavior:
1. Search for a phrase in the Find and Redact that spans two lines, select it, and 'Add Mark' to apply FOIPPA section.

2. The keyword(s) or phrase is redacted, but the FOIPPA section(s) do not show up in the redaction box )error - they should show up in redaction box).
[Private Zenhub Image](https://api.zenhub.com/attachedFiles/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBNEkyQVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--30ae73b488d1b37cf585a2d0ee1bc165187529d6/image.png)
3. Refresh the redaction app, navigate back to the redaction, and see error. Both full lines have been selected for redaction, rather than just the original keyword(s) or phrase. This can lead to more information being redacted than necessary.

**Actual/ observed behaviour/ results**
Find and Redact selecting lines of text not included in the initial redaction.
**Expected behaviour**
A clear and concise description of what you expected to happen. Use the gherking language.
GIVEN a user has used Find and Redact to redact keyword(s) or a phrase that spans two lines of text
WHEN the redaction has been applied
THEN the FOIPPA section is displayed in the redaction box
AND only the keyword(s) or phrase that was selected to be redacted will remain redlined
**Screenshots/ Visual Reference/ Source**
If applicable, add screenshots to help explain your problem. You an use screengrab.
Contributor guide
Assessment
This issue has not been assessed yet.