Skip to content

Mes 8325 missing certs2#297

Draft
andrewsetterfield wants to merge 16 commits into
developfrom
mes-8325-missing-certs2
Draft

Mes 8325 missing certs2#297
andrewsetterfield wants to merge 16 commits into
developfrom
mes-8325-missing-certs2

Conversation

@andrewsetterfield

Copy link
Copy Markdown
Collaborator

Description and relevant Jira numbers

Pull Request checklist

  • [WIP] tag removed from PR title
  • PR has an understandable description

Git feature branch checklist

  • branch name comply with our branching strategy
  • git branch contains relevant JIRA ticket number
  • branch rebased against the latest develop

Sign off process checklist

  • Code has been tested manually
  • Tested by QA
  • PO's approval
  • Reviewers selected in Github
  • PR link added to JIRA

@andrewsetterfield andrewsetterfield marked this pull request as draft June 8, 2023 14:36
WIP

restore UTC

updated local testing

added logic for spoiled certificates

added staff numbers to payload and removed check digit

refactor code out of handler
@andrewsetterfield andrewsetterfield force-pushed the mes-8325-missing-certs2 branch from 7fb9613 to 32d37d1 Compare June 29, 2023 12:06
…it from missing certificates query as this serves no purpose and is preventing union from spoiled certificate where its not going to be available
Comment thread serverless.yml Outdated
Comment thread src/functions/deleteTestResult/application/delete-test-result-service.ts Outdated
@matthew2564

Copy link
Copy Markdown
Collaborator

Maybe could with renaming handlers

// Duplicating the word certificate feels needless, so we could do
getPassCertificateMissingCertificates -> getMissingPassCertificates

// The other put lambda in the service is updateUploadStatus, so maybe makes sense to follow that format
putPassCertificateDuplicates -> updateDuplicatePassCertificates

// Just to be consistent with the new format
postPassCertificateSpoiled -> postMissingPassCertificate

Comment thread src/functions/putPassCertificateDuplicates/framework/handler.ts Outdated
Comment thread src/functions/getPassCertificateMissingCertificates/framework/handler.ts Outdated
@andrewsetterfield andrewsetterfield force-pushed the mes-8325-missing-certs2 branch from b093cae to 1ee9703 Compare July 18, 2023 13:21
relax UTC timestamp test

relax UTC timestamp test
@andrewsetterfield andrewsetterfield force-pushed the mes-8325-missing-certs2 branch from 1ee9703 to e613a2f Compare July 18, 2023 13:34
@andrewsetterfield andrewsetterfield marked this pull request as ready for review July 21, 2023 09:12
Comment thread src/functions/getMissingPassCertificates/application/certificate-service.ts Outdated
Comment thread src/functions/getMissingPassCertificates/framework/__tests__/handler.spec.ts Outdated

// Specify that dates should be serialised in UTC.
return mysql.format(template, args, false, 'UTC');
return mysql.format(template, args);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hmm, this upgrade will have an impact on the timestamp of the test by the looks of it as per with the unit test here src/functions/postResult/framework/database/__tests__/query-builder.spec.ts.

Do we need to update the SQL to do this if the package no longer accepts a timezone?

@andrewsetterfield andrewsetterfield marked this pull request as draft February 2, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants