Commit Graph

207 Commits

Author SHA1 Message Date
YuehuCao
f95552ff4d chore: add local testing configs and MongoDB message templates 2025-08-11 18:50:43 +08:00
YuehuCao
830311fe7e feat(routes): add API setup support for route files 2025-08-11 16:14:37 +08:00
YuehuCao
c968f3a594 chore(test): remove unusful tests 2025-08-11 15:47:08 +08:00
YuehuCao
350270fe6e refactor(services): correct misleading error log output 2025-08-11 15:40:29 +08:00
YuehuCao
0a01b1c6c6 feat(service): Add email status update handling for bounce cases 2025-08-11 15:33:43 +08:00
YuehuCao
1d6f41c3b5 Refactor(application): Extract default email as magic values to avoid hardcoding 2025-08-11 15:30:40 +08:00
YuehuCao
11c1cc811d Refactor(application): Extract frequently used value into class-level constant
email_sender_hub.py: extract email_sender_manager = EmailSenderManager()
notification_hub.py: extract notification_manager = NotificationManager()
template_message_hub.py: extract template_message_manager = TemplateMessageManager()
template_message_hub.py: add more details in render_template function
2025-08-11 15:21:17 +08:00
YuehuCao
cc90c862d7 feat(multi-tenant): define the send status and bounce type 2025-08-09 11:57:37 +08:00
YuehuCao
b6f8b70f69 fix(notification): some small changes 2025-08-09 11:56:00 +08:00
YuehuCao
7cb5ba4a78 refactor(version): replace legacy version with HTML update 2025-08-09 11:47:38 +08:00
YuehuCao
b5c9ab6126 feat(email): implement multi-tenant delivery function 2025-08-09 11:34:15 +08:00
YuehuCao
4187c95743 feat(email_comsumer): introduce multi-tenant delivery system 2025-08-09 11:27:17 +08:00
YuehuCao
d164b6f567 feat(email_sending): introduce multi-tenant delivery system 2025-08-09 11:25:47 +08:00
YuehuCao
2f10275493 refactor(architecture): implement 5-layer separation
for both template message and email senders, their workflow will follow:
api->application->business->service->infra
2025-08-07 12:58:19 +08:00
YuehuCao
9449f0e99b feat(config): add MongoDB connection configration 2025-08-07 12:52:31 +08:00
YuehuCao
58d085a4c6 feat(api): re-code the api interfaces for template message and email senders 2025-08-07 12:49:12 +08:00
YuehuCao
c1148a44d5 feat(models): add indexs and models
add high-frequent indexes for TemplateMessageDoc and EmailSenderDoc
add some models that will be used in sending email
2025-08-07 12:44:46 +08:00
YuehuCao
e46c81c993 docs(tests): add guide for generating coverage reports 2025-07-28 11:09:46 +08:00
YuehuCao
b849e5f11b test: add integration test between template_message and email_sender services layer and data layer
- Achieve 90%+ coverage
2025-07-28 11:06:57 +08:00
YuehuCao
def50f709f test: add unit tests for template_message and email_sender services
- Achieve 100% coverage for both services
2025-07-28 11:03:01 +08:00
YuehuCao
9cb29cd400 fix(services): correct spelling errors 2025-07-28 10:55:41 +08:00
YuehuCao
bb493700f0 refactor(services): remove unreachable code
- Delete redundant logic after line 22's early return
2025-07-28 10:53:07 +08:00
YuehuCao
2d3adb0936 fix: re-submit due to missing some contents 2025-07-25 19:16:40 +08:00
YuehuCao
4f4587893a feat(api): add CRUD interfaces for message templates and email senders 2025-07-25 19:05:29 +08:00
YuehuCao
fec7ac6071 feat(tenant): enable customization of message templates and email senders 2025-07-25 19:04:06 +08:00
YuehuCao
2637ee864a chore(template): seed initial global message templates 2025-07-25 19:01:57 +08:00
YuehuCao
f7ad36bef8 feat(template): define MongoDB schema for message templates and email senders 2025-07-25 18:57:53 +08:00
semantic-release-bot
40e0fafc2c chore(release): bump version to 1.2.1 and upload released assets [ci skip] 2025-04-30 02:32:26 +00:00
782333c36b Merge pull request 'merge from dev to master' (#10) from dev into master
Reviewed-on: freeleaps/freeleaps-service-hub#10
2025-04-30 02:28:00 +00:00
95a525ac76 Merge pull request 'fix(cleaner): update document cleaner job' (#9) from feature/hover into dev
Reviewed-on: freeleaps/freeleaps-service-hub#9
2025-04-27 02:54:19 +00:00
dd96819709 fix(cleaner): update document cleaner job 2025-04-26 19:53:44 -07:00
semantic-release-bot
7d493a3cc1 chore(release): bump version to 1.2.0 and upload released assets [ci skip] 2025-04-25 02:29:23 +00:00
6286c0f36f Merge pull request 'chore(hover_image): adding new hover images in the response body' (#8) from feature/hover into dev
Reviewed-on: freeleaps/freeleaps-service-hub#8
2025-04-24 07:08:53 +00:00
91a893a433 chore(hover_image): adding new hover images in the response body 2025-04-24 00:06:58 -07:00
fbf2f23ad4 Merge pull request 'chore(code_base): merging from dev to master' (#7) from dev into master
Reviewed-on: freeleaps/freeleaps-service-hub#7
2025-04-24 06:48:19 +00:00
ecad36ac5c Merge pull request 'feat(log): ensure parent directory exists before opening log file' (#5) from refactor/logging into dev
Reviewed-on: freeleaps/freeleaps-service-hub#5
2025-04-21 05:25:41 +00:00
zhenyus
bb90b26883 feat(log): ensure parent directory exists before opening log file
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-04-21 13:25:05 +08:00
32c4fe9a29 Merge pull request 'refactor(log): refactoring logging for each service for loki' (#4) from refactor/logging into dev
Reviewed-on: freeleaps/freeleaps-service-hub#4
2025-04-21 02:59:50 +00:00
fcc6d22e4d Merge branch 'dev' into refactor/logging 2025-04-21 02:58:52 +00:00
zhenyus
b8f7307a86 refactor(log): refactoring logging for each service for loki
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-04-21 10:55:26 +08:00
d3248f43a0 Merge pull request 'chore(bug_fix): Update payment redirect and scheduler job for deleting document id' (#3) from feature/document_clean_up_chore into dev
Reviewed-on: freeleaps/freeleaps-service-hub#3
Reviewed-by: dax.li <dl@mathmast.com>
2025-04-20 17:33:54 +00:00
b95a818e30 Update payment redirect and scheduler job for deleting document id 2025-04-20 00:05:00 -07:00
7940aa2159 Merge pull request 'chore: remove useless Dockerfile' (#1) from chore/organize into dev
Reviewed-on: freeleaps/freeleaps-service-hub#1
2025-03-30 16:56:35 +00:00
ca07c83512 chore: remove useless Dockerfile 2025-03-30 16:55:46 +00:00
semantic-release-bot
21b49df49c chore(release): bump version to 1.1.1 and upload released assets [ci skip] 2025-03-17 13:57:21 +00:00
Zhenyu Sun
9361f4c545 Merged PR 44: fix: invalid import path for app config
fix: invalid import path for app config

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-17 13:54:57 +00:00
zhenyus
4dfbab4d4d fix: invalid import path for app config
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-17 21:52:07 +08:00
Zhenyu Sun
8e409aea20 Merged PR 43: build(pip): bump fastapi version to 0.114.0
build(pip): bump fastapi version to 0.114.0

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-17 10:17:09 +00:00
zhenyus
a45698c184 build(pip): bump fastapi version to 0.114.0
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-17 18:16:41 +08:00
Zhenyu Sun
0f6e4731e3 Merged PR 42: build(pip): freeze missing deps for metrics supports
build(pip): freeze missing deps for metrics supports

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-17 09:58:23 +00:00