Skip to content

Make re-encoded recordings visible depending on flag#1514

Closed
lydiaralphgov wants to merge 9 commits into
masterfrom
S28-5068/make-reencoded-recordings-visible
Closed

Make re-encoded recordings visible depending on flag#1514
lydiaralphgov wants to merge 9 commits into
masterfrom
S28-5068/make-reencoded-recordings-visible

Conversation

@lydiaralphgov

@lydiaralphgov lydiaralphgov commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

JIRA ticket(s)

Change description

  • Make re-encoded recordings visible if hidden flag is set to false
  • Make Vodafone original recordings invisible if hidden flag is set to false
  • Super Users should always be able to see all recordings
  • All users should be able to see all PRE recordings

Logic:

  • PRE origin --> visible
  • User is super user --> visible
  • flag is true and recording was re-encoded --> invisible
  • flag is true and recording is original --> visible
  • flag is false and recording was re-encoded --> visible
  • flag is false and recording is original --> [invisible || visible] if a re-encoded version of this recording [exists || does not exist]

Important

This PR requires manual testing by QA. Please notify the QA team @hmcts/pre-rec-evidence-qa.

@lydiaralphgov
lydiaralphgov requested a review from a team as a code owner July 13, 2026 19:01

@Service
@SuppressWarnings("PMD.CouplingBetweenObjects")
@SuppressWarnings({"PMD.CouplingBetweenObjects", "PMD.GodClass"})

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

God class 😭 this class needs a bit of a tidy up, e.g. decommissioning the enable migrated flag, but not now

return true;
}

return hideReencodedRecordings ^ recording.isReencode();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ means exclusive-or (one or the other is true, but not both)

@lydiaralphgov

Copy link
Copy Markdown
Contributor Author

Superseded by #1516

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant