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

Feature/cb2 15861 - Investigate how to make changes to defect's that come into effect on a specific date #224

Draft
wants to merge 21 commits into
base: develop
Choose a base branch
from

Conversation

NathanielRichards1
Copy link

@NathanielRichards1 NathanielRichards1 commented Jan 21, 2025

Investigate how to make changes to defect's that come into effect on a specific date

One line description
cb2-15861
Spike work: https://dvsa.atlassian.net/wiki/spaces/HVT/pages/812353458/SPIKE+CB2-15861

15647 implemented around this story only the im9 part

which has the changes for im9 https://dvsa.atlassian.net/browse/CB2-15647
the experimental change date is 2025-03-01.
so before the change date till the start of this year you will get same contents as the file in the draft pull request called:
defect8beforeChange.json
and if you put in a environment variable on the lambda of CURRENT_DATE_OVERRIDE >= 2025-03-01 you should get the same content as the file defect8AfterChange.json.
just to help explain the contents of defect8AfterChange.json.

the changes are on the 5 items:
item 1 stays the same - no change
item 4-5 for defect stays mostly the same but only targets trl now.
item 2-3 become item 2 for hgv and several changes for deficiencies due to the adding of item 2 at the start of item 3.
item 4-5 becomes item 3 for hgv and several changes for deficiencies due to the adding of item 4 at the start of item 5.

lucid link

Checklist

  • Code has been tested manually
  • PR title includes the JIRA ticket number
  • Branch is rebased against the latest develop
  • Squashed commit contains the JIRA ticket number

@NathanielRichards1 NathanielRichards1 changed the title Feature/cb2 15861 Feature/cb2 15861 - Investigate how to make changes to defect's that come into effect on a specific date Jan 21, 2025
@@ -11,22 +13,46 @@ export class DefectsService {
public getDefectList() {
return this.defectsDAO
.getAll()
.then((data: any) => {
.then(async (data: any) => {
Copy link
Contributor

@cb-cs cb-cs Jan 21, 2025

Choose a reason for hiding this comment

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

Not one to answer here, just making a note for the meeting later.

Is there any chance we can convert this method to using async/await rather than the .then syntax please? Appreciate it's just syntactic sugar but will make it more readable IMO.

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