Commit Graph

500 Commits

Author SHA1 Message Date
e49cd336b2 Merge pull request 'add PR template' (#35) from template into dev
Reviewed-on: freeleaps/freeleaps-service-hub#35
2025-08-12 04:27:53 +00:00
dongli
608bcd1b03 add PR template 2025-08-11 21:27:25 -07:00
semantic-release-bot
804c71f1b3 chore(release): bump version to 1.4.0 and upload released assets [ci skip] 2025-08-12 04:27:05 +00:00
dongli
f7988ce1d7 Merge branch 'dev' 2025-08-11 21:24:48 -07:00
c6073791f0 Merge pull request 'add dummy change' (#32) from pr_template into dev
Reviewed-on: freeleaps/freeleaps-service-hub#32
2025-08-12 04:21:00 +00:00
dongli
fc9bc1a063 add dummy change 2025-08-11 21:20:28 -07:00
6e43296466 Merge pull request 'feature/icecheng/role_management1' (#17) from feature/icecheng/role_management into dev
Reviewed-on: freeleaps/freeleaps-service-hub#17
Reviewed-by: jingyao1991 <jingyao1991@noreply.gitea.freeleaps.mathmast.com>
2025-08-12 04:18:04 +00:00
77a1005871 Merge pull request 'modify PR template' (#28) from modify_template into dev
Reviewed-on: freeleaps/freeleaps-service-hub#28
2025-08-12 04:09:56 +00:00
dongli
fcee95d609 modify PR template 2025-08-11 21:09:25 -07:00
6132f98283 Merge branch 'dev' into feature/icecheng/role_management 2025-08-12 03:24:03 +00:00
icecheng
e2f51d09da feat(role): update docs 2025-08-12 11:17:52 +08:00
YuehuCao
f5206175da refactor(routes): sync port with changed route 2025-08-11 23:20:32 +08:00
YuehuCao
91b84434d0 chore(config): change the port to keep similarity with authentication of magicleaps
refactor(routes): shorten API endpoint
2025-08-11 23:13:24 +08:00
YuehuCao
40a43aa538 chore(infra): remove Chinese comments 2025-08-11 18:54:26 +08:00
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
semantic-release-bot
c8a6275f67 chore(release): bump version to 1.3.1 and upload released assets [ci skip] 2025-08-11 01:26:25 +00:00
730905f827 Merge pull request 'feat: merge dev branch to master to pick up the latest change' (#26) from dev into master
Reviewed-on: freeleaps/freeleaps-service-hub#26
2025-08-11 01:24:49 +00:00
1e17b5a2ba Merge pull request '[TASK-000] Add PR checklist' (#12) from dax/checklist into master
Reviewed-on: freeleaps/freeleaps-service-hub#12
2025-08-11 01:22:51 +00:00
e16c1dc240 Merge pull request 'Add dummy change to trigger ci/cd' (#25) from dax/minor into dev
Reviewed-on: freeleaps/freeleaps-service-hub#25
2025-08-11 01:22:38 +00:00
dongli
8caa8e6b31 Add dummy change to trigger ci/cd 2025-08-10 18:21:39 -07: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
6e1cb5962f Merge pull request 'fix: make startup and shutdown event handlers async in common provider' (#24) from Nicolas_devops_reconciler into dev
Reviewed-on: freeleaps/freeleaps-service-hub#24
2025-08-08 05:02:21 +00:00
Nicolas
04acd78d78 fix: connect to existing named queue instead of creating anonymous queue
- Change AsyncMQClient to connect to existing persistent queue by name
- Fix issue where DevOps Service created temporary anonymous queues instead of consuming from the correct named queue
- This allows consuming the 42 backlogged messages in freeleaps.devops.reconciler.output queue
- Change queue properties: exclusive=False, auto_delete=False, durable=True
- Resolves the core issue where messages were split between persistent and temporary queues
2025-08-08 12:45:21 +08:00
Nicolas
4340949f57 fix: make startup and shutdown event handlers async in common provider
- Fix TypeError: object NoneType can't be used in 'await' expression
- FastAPI requires event handlers to be async functions
- This was blocking the entire application startup sequence
- Fixes the issue where message queue consumers were not starting properly
2025-08-08 12:33:14 +08:00
fc4c8e7b14 Merge pull request 'fix: use environment variable for RabbitMQ output queue name' (#23) from Nicolas_devops_reconciler into dev
Reviewed-on: freeleaps/freeleaps-service-hub#23
2025-08-08 04:06:43 +00:00
Nicolas
e4fe9394b1 fix: use environment variable for RabbitMQ output queue name
- Add RABBITMQ_OUTPUT_QUEUE_NAME environment variable support
- Fix hardcoded queue name 'reconciler.output' to use configurable queue name
- Default to 'freeleaps.devops.reconciler.output' if env var not set
- Add debug logging to show which queue name is being used
- This fixes the issue where 42 messages were stuck in the output queue due to queue name mismatch
2025-08-08 12:01:47 +08:00
52ec8f8f03 Merge pull request 'fix: update devops service to subscribe to correct reconciler heartbeat queue' (#21) from Nicolas_devops_reconciler into dev
Reviewed-on: freeleaps/freeleaps-service-hub#21
2025-08-08 03:32:51 +00:00
Nicolas
b5ca0cf0f5 fix: update devops service to subscribe to correct reconciler heartbeat queue 2025-08-07 18:29:59 +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
semantic-release-bot
bbfc1ba1a2 chore(release): bump version to 1.3.0 and upload released assets [ci skip] 2025-08-07 00:54:45 +00:00
0e5d65281c Merge pull request 'feat: Merge dev to master' (#20) from dev into master
Reviewed-on: freeleaps/freeleaps-service-hub#20
2025-08-07 00:53:22 +00:00
aa89bceac0 Merge pull request 'feat: Fix check_deployment_status' (#19) from dax/fix_check_deployment_status into dev
Reviewed-on: freeleaps/freeleaps-service-hub#19
2025-08-05 05:10:18 +00:00
dongli
d680b9e015 Fix check_deployment_status 2025-08-03 21:39:39 -07:00
zhenyus
879e45eeb5 fix: correct deployment TTL calculation in DeploymentService
Updated the TTL calculation in the DeploymentService to multiply by 3600 instead of 60, ensuring accurate time-to-live settings for deployments.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-03 12:22:24 +08:00
zhenyus
6c60a0b6a5 fix: update deployment service to use correct product ID
Changed the parameter name from deployment_project_id to deployment_product_id in the DevOpsReconcileRequest to ensure accurate referencing of the product associated with the deployment.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-03 04:04:19 +08:00
zhenyus
5f3368cbdc fix: correct typo in BASE_RECONCILE_URL parameter in DeploymentService
Updated the parameter name in the _start_deployment method to match the corrected constant in site_settings.py, ensuring consistency across the codebase.

Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-03 03:51:15 +08:00