bcgov / foi-flow

Freedom of Information modernization
Apache License 2.0
5 stars 3 forks source link

Attachments Tab - Can't Reclassify Attachment Back to Original Tag #4724

Open KyEggleston opened 10 months ago

KyEggleston commented 10 months ago

Describe the bug in current situation When an attachment is uploaded to the 'Attachment' tab with a tag (e.g., 'General'), if a user uses the Reclassify feature to change the tag (e.g., from 'General' to 'CFR'), and then tries to change it back to the original tag (e.g., 'General'), the user is unable to.

Link bug to the User Story

3398

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

Low

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

Low

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

Steps to Reproduce Steps to reproduce the behavior:

  1. Upload an attachment to the 'Attachment' tab with a tag (e.g., 'General')
  2. Use Reclassify to change the tag (e.g., change to 'CFR')
  3. Use Reclassify to change the tag back to the original tag (e.g., back to 'General')
  4. See error

Actual/ observed behaviour/ results

Unable to reclassify an attachment tag back to the original tag the attachment was uploaded with.

Expected behaviour GIVEN a user has added an attachment to the 'Attachments' tab, with a tag WHEN the user reclassifies the attachment to a new tag AND then reclassifies it back to the original tag THEN the attachment is reclassified back to the original tag

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

Can't reclassify the attachment below back to 'General' tag, throwing an error

image

image

KyEggleston commented 10 months ago

@m-prodan @liseandtea - I'll add details