Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBA-71 - remove OASys import pages #45

Merged
merged 5 commits into from
Jan 7, 2025

Conversation

patrickjfl
Copy link
Contributor

Context

Jira ticket: https://dsdmoj.atlassian.net/jira/software/c/projects/CBA/boards/1724?selectedIssue=CBA-71

Changes in this PR

Removes OASys import pages from risk to self and RoSH tasks, as well as stripping out now redundant OASys related code.

Screenshots of UI changes

Before

After

Release checklist

As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:

Pre merge checklist

  • Are any changes required to the e2e tests?
  • If you've added a new route, have you added a new
    auditEvent? (see server/routes/apply.ts for examples)
  • Are there environment variables or other infrastructure configuration which needs to be included in this release?
  • Are there any data migrations required. Automatic or manual?
  • Does this rely on changes being deployed to the CAS API?

Post merge

Once we've merged it will be auto-deployed to the dev environment.

@patrickjfl patrickjfl requested a review from libuk January 6, 2025 16:25
Patrick Fleming added 2 commits January 7, 2025 10:14
We have taken the decision to remove the import of OASys data in favour of manual input. This means we need to remove the import page as well as other references to OASys from the task.
We have taken the decision to remove the import of OASys data in favour of manual input. This means we need to remove the import page as well as other references to OASys from the task.
@patrickjfl patrickjfl force-pushed the CBA-71-remove-oa-sys-import-pages branch from 71c498e to fa9f565 Compare January 7, 2025 10:15
Copy link
Contributor

@libuk libuk left a comment

Choose a reason for hiding this comment

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

Really thorough and well laid out, nice work!

I think we have a couple of types that can be removed from @types/ui/index.d.ts

export type OasysImportArrays = ArrayOfOASysRiskOfSeriousHarmSummaryQuestions

export type RiskLevel = 'Low' | 'Medium' | 'High' | 'Very High'

@patrickjfl
Copy link
Contributor Author

patrickjfl commented Jan 7, 2025

ah yeah, good spot!

Really thorough and well laid out, nice work!

I think we have a couple of types that can be removed from @types/ui/index.d.ts

export type OasysImportArrays = ArrayOfOASysRiskOfSeriousHarmSummaryQuestions

export type RiskLevel = 'Low' | 'Medium' | 'High' | 'Very High'

Patrick Fleming added 3 commits January 7, 2025 10:38
This was causing check your answers to error when a date is not entered.
Now that we’ve removed the OASys import from the risk tasks, we need to update the E2E tests.
@patrickjfl patrickjfl force-pushed the CBA-71-remove-oa-sys-import-pages branch from fa9f565 to fb84102 Compare January 7, 2025 10:38
@patrickjfl patrickjfl requested a review from libuk January 7, 2025 10:39
@patrickjfl patrickjfl merged commit 1eea7b1 into main Jan 7, 2025
9 checks passed
@patrickjfl patrickjfl deleted the CBA-71-remove-oa-sys-import-pages branch January 7, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants