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

refactor: remove audit item creation for list items #656

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

RichardBray
Copy link
Contributor

@RichardBray RichardBray commented Jul 11, 2023

Description

Remove calls to audit table that are related to list items.

Trello ticket: https://trello.com/c/SDJtNQEZ/1815-remove-deprecated-code-around-audit

@RichardBray RichardBray self-assigned this Jul 11, 2023
@RichardBray RichardBray marked this pull request as ready for review July 12, 2023 15:27
@RichardBray RichardBray force-pushed the chore/1815-remove-unused-audit branch 2 times, most recently from 5b42cab to faf4296 Compare July 19, 2023 09:16
src/shared/listItemEvent.ts Outdated Show resolved Hide resolved
@RichardBray RichardBray force-pushed the chore/1815-remove-unused-audit branch from 1dbf9de to 987b3e4 Compare August 3, 2023 15:36
@jenbutongit jenbutongit force-pushed the chore/1815-remove-unused-audit branch 2 times, most recently from 4fcfa1a to 987b3e4 Compare August 10, 2023 15:36
@RichardBray RichardBray force-pushed the chore/1815-remove-unused-audit branch from 987b3e4 to a8f85b5 Compare August 10, 2023 16:17
chore(govuk-notify.ts): change return value of sendAuthenticationEmail, sendApplicationConfirmationEmail, sendDataPublishedEmail, and sendEditDetailsEmail to check for "id" in result and result.id !== undefined
chore(notifications-node-client.ts): change statusText to id in mockResolvedValue
chore(an_email_for_the_string_key_date_is_sent_to_eligible_providers.js): add array to test instead of string
chore(audit.ts): add missing export statement for findReminderAuditEvents function
chore(govukNotify.ts): update return value of sendAnnualReviewProviderEmail and sendAnnualReviewPostEmail functions
chore(helpers.ts): update parameter type of isEmailSentBefore function
chore(main.ts): update import statements for Audit and Event types
refactor: rename function names that didn't make sense
…udit enum

chore(migrations): add migration to delete unused audits

chore(migrations): add migration to update audit enum
… with auditEvent set to 'REMINDER'

refactor(listItemEvent.ts): remove unnecessary check for "id" in response
…o Audit and Event tables

chore(schema.prisma): add emailType fields to Audit and Event models
chore(the_string_key_date_email_will_be_sent_to_post.js): simplify the where clause in the query to improve readability and maintainability
…eation function to accept additional options for different types of edits
…rom "server/models/listItem/listItemEvent" to "shared/listItemEvent" to resolve import error
@RichardBray RichardBray force-pushed the chore/1815-remove-unused-audit branch from efe1d61 to 289005a Compare August 16, 2023 13:51
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