-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor email service to pluggable facade architecture with mock for local development #296
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
Open
Copilot
wants to merge
109
commits into
main
Choose a base branch
from
copilot/refactor-service-sendgrid-facade
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
109 commits
Select commit
Hold shift + click to select a range
dd0555c
Initial plan
Copilot d499910
WIP: Add transactional email service packages and ReservationRequestC…
Copilot 06c57c4
Complete transactional email service implementation with event structure
Copilot d45abc2
Resolve sonar issues
eea3351
Update replaceAll method
2f550a9
Update sonar
8c56988
Update test cases
8659e61
create test cases
188010c
update test cases
dd79dba
Update code for test cases
3d5c69b
Update test cases
49f9a84
Update test cases ServiceTransactionalEmailMock
5faf79d
Update EventBusInstance for email
b06c8cd
Update Infrastructure for email
e38593a
Update branch 'main' into copilot/refactor-service-sendgrid-facade
e4c183f
Update ReservationRequestCreated flow
cf1d701
Create sendReservationRequestNotification services
adcb0c3
Resolve Merge conflicts merge into main
6bfca80
Update template util
3953fe0
Fix issue of package.json
3918218
Update main branch
5b165b4
Update data
49d06aa
Fix build issue
149cf80
Update Reservation Period issue
25c3166
Fixed all suggested changes
a1638c9
Update ReservationRequest
d327581
Fix build issues
1ec1265
Update env variable for sendgrid
0790bc3
Fix sourcery changes
ba4d0e4
Update test cases
74d24b3
move transactional-email-service to the cellix area
26ad8be
Remove boiler plate copilot comments
7969f17
Add test files and feature flies of transactional-email-service
3ba9a3d
Merge branch 'main' of into copilot/refactor-service-sendgrid-facade
4b80735
Resolved Sonar issues
b50c10a
Update test Cases for service-transactional-email
a49ce7d
Merge branch 'main' into copilot/refactor-service-sendgrid-facade
rohit-r-kumar 11d5742
Fix test coverage issues of sonar
e8ef3e4
Merge branch 'copilot/refactor-service-sendgrid-facade' of https://gi…
1b1c537
Add more of coverage of test cases
7f7b16c
Update test coverage
85a3103
Added to fix the jws vulnerability
332ea55
fix sonar issues
58233a2
Revert "fix sonar issues"
6685219
Revert " Added to fix the jws vulnerability"
b6e90d0
Merge branch 'main' into copilot/refactor-service-sendgrid-facade
rohit-r-kumar 3b5a8cb
Revert "Update test coverage"
00acdb1
Revert "Add more of coverage of test cases"
fac018f
Merge branch 'copilot/refactor-service-sendgrid-facade' of https://gi…
cc35298
Fix sonar issues
37f8c96
comment code remove
87cf572
Update version of jsonwebtoken
ba4d3ed
Vulnerability Fixed of auth0/node-jws
6bcd114
Add more of coverage of test cases
cea9fec
Update test coverage for reservation
f900951
Update test cases
c592b70
Potential fix for pull request finding 'Unused variable, import, func…
rohit-r-kumar 91ab234
fix sonar issue
3d1396b
fix: Build issue
2131789
Fix Sonar issues
a058287
Fix sonar issue
7beff94
Merge branch 'main' of https://github.com/simnova/sharethrift into co…
0b5784d
Update import issue
b8be34e
Update jws
a092364
Update pnpm-yaml file
7fc2299
Update test cases
bea476f
Add stroies file for Listing-Information
c4a8e10
Update test cases for coverge
1aa80ca
Update test cases
adf7633
Update packages : vitest
ea2375a
Update vitest
f6a3b8f
Update reservation feature file
d6d268c
Update package.json for event handler, transactional-email-service-mo…
e8a570b
Update mock
cb979a0
Merge branch 'main' of https://github.com/simnova/sharethrift into co…
2cfdfe7
Update vitest config
4e4a341
Fix linting warning in template-utils.ts
Copilot f2ce33f
Merge branch 'main' of https://github.com/simnova/sharethrift into co…
d1df3f4
Resolve suggested comment
8e4a233
Resolved package json issue
63b8259
Update yaml
20073da
Revert config changes and fix reservation-request event pattern
Copilot a8d194c
Fixed test cases
56b52eb
Update test cases of ReservationRequestNotificationService
d0b19e8
Update test cases of sendReservationRequestNotification
1ec7c58
Update send Reservation Request Notification test cases
dce0e1d
Update test cases of Reservation Request Notification Service
cb18930
Update test cases
a0d26ac
Update config json files
054a8bf
Update storybook
20f5f5a
Merge branch 'main' of https://github.com/simnova/sharethrift into co…
5e332ba
Update Item-listing test Cases
baa1979
Resolved comments
a408d7c
Update resolved comments
a232cfd
Merge branch 'main' in branch
66a387a
Update test cases
a27f720
Resolved knip issues
3d3ef19
Resolve synk issue
8f8cb7c
Resolve comments
29a8ac9
Update test cases
2e0d491
Merge branch 'main' into copilot/refactor-service-sendgrid-facade
rohit-r-kumar 3054ec0
Merge branch 'main' of https://github.com/simnova/sharethrift into co…
17670b3
Merge branch 'copilot/refactor-service-sendgrid-facade' of https://gi…
f34a119
Update test cases
641fe76
chore: extend QS vulnerability expiration to prevent build failure
8e9f062
Update request comment
35942a3
Update test cases
39e3059
synk issue resolved
aa6bd29
Update loadSharer object
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,52 @@ | ||
| { | ||
| "name": "@sthrift/api", | ||
| "version": "1.0.0", | ||
| "author": "", | ||
| "license": "MIT", | ||
| "description": "", | ||
| "type": "module", | ||
| "main": "dist/src/index.js", | ||
| "types": "dist/src/index.d.ts", | ||
|
|
||
| "scripts": { | ||
| "prebuild": "biome lint", | ||
| "build": "tsc --build", | ||
| "watch": "tsc -w", | ||
| "test:watch": "vitest", | ||
| "lint": "biome lint", | ||
| "clean": "rimraf dist", | ||
| "prestart": "pnpm run clean && pnpm run build", | ||
| "start": "func start --typescript", | ||
| "azurite": "azurite-blob --silent --location ../../__blobstorage__ & azurite-queue --silent --location ../../__queuestorage__ & azurite-table --silent --location ../../__tablestorage__" | ||
| }, | ||
| "dependencies": { | ||
| "@azure/functions": "^4.0.0", | ||
| "@cellix/api-services-spec": "workspace:*", | ||
| "@cellix/messaging-service": "workspace:*", | ||
| "@cellix/mongoose-seedwork": "workspace:*", | ||
| "@opentelemetry/api": "^1.9.0", | ||
| "@sthrift/application-services": "workspace:*", | ||
| "@sthrift/context-spec": "workspace:*", | ||
| "@sthrift/event-handler": "workspace:*", | ||
| "@sthrift/graphql": "workspace:*", | ||
| "@sthrift/messaging-service-mock": "workspace:*", | ||
| "@sthrift/messaging-service-twilio": "workspace:*", | ||
| "@sthrift/persistence": "workspace:*", | ||
| "@sthrift/rest": "workspace:*", | ||
| "@sthrift/service-blob-storage": "workspace:*", | ||
| "@cellix/payment-service": "workspace:*", | ||
| "@sthrift/payment-service-mock": "workspace:*", | ||
| "@sthrift/payment-service-cybersource": "workspace:*", | ||
| "@sthrift/service-mongoose": "workspace:*", | ||
| "@sthrift/service-otel": "workspace:*", | ||
| "@sthrift/service-token-validation": "workspace:*" | ||
| }, | ||
| "devDependencies": { | ||
| "@cellix/typescript-config": "workspace:*", | ||
| "@cellix/vitest-config": "workspace:*", | ||
| "rimraf": "^6.0.1", | ||
| "typescript": "^5.8.3" | ||
| } | ||
| "name": "@sthrift/api", | ||
| "version": "1.0.0", | ||
| "author": "", | ||
| "license": "MIT", | ||
| "description": "", | ||
| "type": "module", | ||
| "main": "dist/src/index.js", | ||
| "types": "dist/src/index.d.ts", | ||
| "scripts": { | ||
| "prebuild": "biome lint", | ||
| "build": "tsc --build", | ||
| "watch": "tsc -w", | ||
| "test:watch": "vitest", | ||
| "lint": "biome lint", | ||
| "clean": "rimraf dist", | ||
| "prestart": "pnpm run clean && pnpm run build", | ||
| "start": "func start --typescript", | ||
| "azurite": "azurite-blob --silent --location ../../__blobstorage__ & azurite-queue --silent --location ../../__queuestorage__ & azurite-table --silent --location ../../__tablestorage__" | ||
| }, | ||
| "dependencies": { | ||
| "@azure/functions": "^4.0.0", | ||
| "@cellix/api-services-spec": "workspace:*", | ||
| "@cellix/messaging-service": "workspace:*", | ||
| "@cellix/mongoose-seedwork": "workspace:*", | ||
| "@opentelemetry/api": "^1.9.0", | ||
| "@sthrift/application-services": "workspace:*", | ||
| "@sthrift/context-spec": "workspace:*", | ||
| "@sthrift/event-handler": "workspace:*", | ||
| "@sthrift/graphql": "workspace:*", | ||
| "@sthrift/messaging-service-mock": "workspace:*", | ||
| "@sthrift/persistence": "workspace:*", | ||
| "@sthrift/rest": "workspace:*", | ||
| "@sthrift/service-blob-storage": "workspace:*", | ||
| "@cellix/payment-service": "workspace:*", | ||
| "@sthrift/payment-service-mock": "workspace:*", | ||
| "@sthrift/payment-service-cybersource": "workspace:*", | ||
| "@sthrift/service-mongoose": "workspace:*", | ||
| "@sthrift/service-otel": "workspace:*", | ||
| "@sthrift/service-token-validation": "workspace:*", | ||
| "@sthrift/messaging-service-twilio": "workspace:*", | ||
| "@cellix/transactional-email-service": "workspace:*", | ||
| "@sthrift/transactional-email-service-sendgrid": "workspace:*", | ||
| "@sthrift/transactional-email-service-mock": "workspace:*" | ||
| }, | ||
| "devDependencies": { | ||
| "@cellix/typescript-config": "workspace:*", | ||
| "@cellix/vitest-config": "workspace:*", | ||
| "rimraf": "^6.0.1", | ||
| "typescript": "^5.8.3" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| import '@testing-library/jest-dom'; | ||
| import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview"; | ||
| import { setProjectAnnotations } from '@storybook/react-vite'; | ||
| import * as projectAnnotations from './preview'; | ||
| import * as projectAnnotations from './preview.tsx'; | ||
|
|
||
| setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.