zhenyus
95b6560ffd
refactor: improve clarity of subscriber startup process in message_queue.py
...
Updated comment to specify that the subscriber starts in the background, enhancing code readability and understanding of the asynchronous behavior.
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-03 02:48:55 +08:00
zhenyus
9283e52e48
feat: enhance message consumer startup and shutdown logging in message_queue.py
...
Added print statements to log the status of message consumers during startup and shutdown processes, improving traceability and debugging capabilities.
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-03 02:38:33 +08:00
zhenyus
113bc2bc75
fix: ensure consistent formatting in requirements.txt by removing redundant line
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-01 09:12:19 +08:00
zhenyus
ebc37bbd0d
refactor: streamline DevOpsReconcileRequest by removing redundant code
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-01 09:06:42 +08:00
zhenyus
14eb5abda6
refactor: remove unnecessary @dataclass decorator from DevOpsReconcileRequest
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-01 09:03:39 +08:00
zhenyus
d74967db55
feat: add RabbitMQ configuration to app settings
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-08-01 00:15:06 +08:00
6ea40142ac
Merge pull request 'Add template fastapi app, this can be used for future extension' ( #11 ) from feature/dax/devops-svc into dev
...
Reviewed-on: freeleaps/freeleaps-service-hub#11
2025-07-31 16:11:36 +00:00
zhenyus
d0aa2ba14b
Add message queue registration in application bootstrap and update dependencies
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-07-30 10:50:22 +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
icecheng
69d1007ddf
feat(test): add unittest for role management, add coverage report for role management
2025-07-25 16:20:50 +08:00
icecheng
30e6ca72a7
feat(refactor): remove duplicate get_current_user
2025-07-25 10:26:09 +08:00
icecheng
0f7d63f4a2
feat(role_management): add test report for role management
2025-07-22 17:14:30 +08:00
sunhaolou
d01468f89a
fix: refractor the length functions and add comments, and address the issues
2025-07-22 13:16:14 +08:00
icecheng
55e0bebbef
feat(role_management): update apitest for role management
2025-07-22 12:27:26 +08:00
icecheng
5be8403c75
feat(role_management): update apitest for role management
2025-07-22 12:14:58 +08:00
icecheng
6b6b52a599
feat(role_management): Add apitest for test_assign_roles
2025-07-22 11:52:41 +08:00
icecheng
9dcd27bc8a
feat(role_management): Add logic for creating temporary users to apitest.
2025-07-22 11:30:16 +08:00
icecheng
beba0f5fe5
feat(role_management): add api test case for permission api
2025-07-22 10:28:05 +08:00
icecheng
641281066c
feat(role_management): Add pytest for auth services, and add api test case for role management
2025-07-21 17:51:08 +08:00
fca4216043
Merge branch 'dev' into haolou_local
2025-07-21 07:37:02 +00:00
sunhaolou
a8f0a714ae
refractor: clean up the codes for online services
2025-07-21 15:23:19 +08:00
icecheng
b8be65615b
feat(role_management): Add a universal Depends for permission verification.
2025-07-21 15:10:27 +08:00
icecheng
4109018692
feat(role_management): Update the JWT token generation logic to include new fields user_roles and user_permissions in the payload.
2025-07-21 13:09:59 +08:00
sunhaolou
ccc995f599
refractor: a current working version before cleaning up.
2025-07-21 12:50:51 +08:00
icecheng
419e58da0c
feat(role_management): add delete role api
2025-07-21 10:53:37 +08:00
icecheng
4f39f888c4
feat(role_management): add delete permission api
2025-07-21 10:33:21 +08:00
icecheng
ca0bfb155f
feat(role_management): add assign roles to user api
2025-07-21 10:20:46 +08:00
icecheng
795c1262c6
feat(role_management): add assign permissions to role api
2025-07-21 09:31:37 +08:00
icecheng
2382f0bece
feat(role_management): add crud for role and permission
2025-07-18 18:05:57 +08:00
3ce7a7ec76
Merge branch 'dev' into feature/dax/devops-svc
2025-07-15 03:34:15 +00:00
dongli
921633dc04
Implement get_latest_deployment
2025-07-13 11:38:57 -07:00
zhenyus
dd642994d4
Merge branch 'feature/dax/devops-svc' of https://gitea.freeleaps.mathmast.com/freeleaps/freeleaps-service-hub into feature/dax/devops-svc
2025-06-23 16:46:49 +08:00
zhenyus
979fcd298c
Add DevOps reconciliation models and integrate into deployment service
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-06-23 16:46:06 +08:00
dongli
2934c647c6
make sha256 optional
2025-06-20 15:09:27 -07:00
dongli
aff12753da
Add deployment_app_url
2025-06-19 21:08:08 -07:00
dongli
d660002076
minor
2025-06-16 23:19:09 -07:00
dongli
92b2aba960
Add check_application_logs
2025-06-16 23:18:26 -07:00
dongli
c09ad7f5c9
minor
2025-06-12 17:44:13 -07:00
dongli
6254d13098
Clean up
2025-06-07 13:17:37 -07:00
dongli
7955b5884a
Fix some bugs
2025-06-07 13:11:22 -07:00
dongli
b83f5fd606
Depends only works with fastApi methods, so don't use Depends for other methods
2025-06-07 12:34:34 -07:00
dongli
ab7e6728b5
More impl for devops
2025-06-07 11:32:53 -07:00
dongli
308f82740d
More impl for devops
2025-06-07 11:32:48 -07:00
dongli
217f33fc17
fix check deployment status bug
2025-05-19 14:55:56 -07:00
dongli
43ec8ec01e
Clean up
2025-05-18 23:09:39 -07:00
dongli
bcf13b48f2
Add implementation of devops service
2025-05-18 22:23:44 -07:00
dongli
dd8926b2ec
Add template fastapi app, test, README.md, this can be used for future extension
2025-05-11 21:01:11 -07:00
dongli
bf96f8b301
Add template fastapi app, test, README.md, this can be used for future extension
2025-05-11 19:16:00 -07:00
dongli
c4c34e6cd7
Add template fastapi app, test, README.md, this can be used for future extension
2025-05-11 19:15:41 -07:00
dongli
50087c95be
Add template fastapi app, this can be used for future extension
2025-05-11 18:44:05 -07:00
dd96819709
fix(cleaner): update document cleaner job
2025-04-26 19:53:44 -07:00
91a893a433
chore(hover_image): adding new hover images in the response body
2025-04-24 00:06:58 -07: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
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
b95a818e30
Update payment redirect and scheduler job for deleting document id
2025-04-20 00:05:00 -07: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
zhenyus
13c883966e
build(pip): freeze missing deps for metrics supports
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-17 17:57:13 +08:00
Zhenyu Sun
9c4cfbff0b
Merged PR 41: Implements probes and metrics APIs
2025-03-17 08:17:31 +00:00
zhenyus
d5e42d31a4
feat(observability): add configuration options and implement metrics/probes APIs
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-17 10:46:02 +08:00
dongli
5e66fa806b
Log urls at create_account_link
2025-03-16 13:13:43 -07:00
b12f8cc965
Fix the concatenation issue with message
2025-03-13 23:46:49 -07:00
zhenyus
962292cfe0
chore: enabled orm initialization when startup
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-12 16:10:47 +08:00
zhenyus
9754576d28
feat(probes): add metrics and probes APIs for application health checks
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-03-12 15:59:06 +08:00
Zhenyu Sun
ea9dcb22cb
build(pip): bump content deps fastapi to 0.114.0
2025-03-06 17:52:29 +00:00
Zhenyu Sun
13bd2396c4
Merged PR 28: Merge to master to trigger production ci
2025-03-05 18:27:17 +00:00
dongli
0f02181e33
Expose prometheus metrics for all apps
2025-03-02 17:08:08 -08:00
zhenyus
78c72179ec
fix(rabbitmq): correct syntax for port and virtual host parameters in AsyncMQClient
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-02-24 02:20:01 +08:00
zhenyus
853d817933
feat(notification): add rabbitmq credentials relates notification services configs
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-02-24 02:05:25 +08:00
zhenyus
da584b8ffa
build(docker): update CMD to use shell for environment variable expansion in Dockerfiles
...
Signed-off-by: zhenyus <zhenyus@mathmast.com>
2025-02-22 22:30:37 +08:00
Zhenyu Sun
9b42dbfa7f
build(dockerfile): update entrypoint for authentication
2025-02-22 13:37:47 +00:00
Zhenyu Sun
b0acad860e
build(docker): update Dockerfile for notification
2025-02-22 13:00:05 +00:00
Zhenyu Sun
8f799c60ff
build(docker): update Dockerfile for payment
2025-02-22 12:34:30 +00:00
Zhenyu Sun
3769af6e93
build(docker): update Dockerfile for notification
2025-02-22 12:34:08 +00:00
Zhenyu Sun
0a7c7429c3
Updated Dockerfile
2025-02-22 11:55:44 +00:00
Zhenyu Sun
f22a2eedf2
build(docker): remove useless scripts in Dockerfile
2025-02-22 11:55:16 +00:00
Zhenyu Sun
be910d4c95
build(docker): remove useless scripts in Dockerfile
2025-02-22 11:54:59 +00:00
Zhenyu Sun
de37fcddba
build(docker): remove additional scripts
2025-02-22 11:40:23 +00:00
Jet Li
6028b0a6f0
Create one-off photo_id backfill job
2025-02-07 08:13:59 +00:00
Jet Li
da369dc61b
Remove useless variable
2025-02-03 09:13:20 +00:00
Jet Li
81f734c19a
Add delete-file endpoint, add remove old documents logic in refresh sharepoint logic
2025-02-03 09:11:48 +00:00
Jet Li
8ab64be6a1
Fix the typo used in the authentication log
2025-02-01 10:24:19 +00:00
Jet Li
43671d684d
Fix the last missing piece of extra_filed typo
2025-02-01 07:11:32 +00:00
Jet Li
13171f16b7
Fix authentication log config
2025-02-01 07:02:11 +00:00
Jet Li
59e3c27b3f
Fix notification log config
2025-02-01 06:27:51 +00:00
Jet Li
be0725a955
Update payment log config
2025-02-01 06:22:46 +00:00
Jet Li
a33869b7fe
Update central storage log config
2025-02-01 05:59:00 +00:00
Jet Li
8cae70a21f
Comment out the cleanup_document_job
2025-02-01 05:42:02 +00:00
Jet Li
55e19f3f11
Commt on the change, file clean-up process needed.
2025-01-31 09:14:49 +00:00
Jet Li
20919277d2
Fix the duplicated logging issue
2025-01-31 08:47:58 +00:00
Jet Li
669a5303cd
Add one-time document clean-up job
2025-01-31 07:03:27 +00:00
Jet Li
c49ae956f1
Fix bug in refresh_selected
2025-01-31 06:34:32 +00:00
Jet Li
af71b67f04
Fix the bug for OTHER region
2025-01-31 06:21:17 +00:00
Jet Li
5ea86301d9
Hack solution to update selected
2025-01-31 03:52:09 +00:00
Jet Li
fd8514b207
Fix the cache loading for static content
2025-01-30 16:57:57 +00:00
Jet Li
71dc20ae4d
Fix the scheduler bug and APIs under content
2025-01-30 07:26:53 +00:00
Jet Li
8b3d22344e
Remove webhook secrets as it only handles the forwarded events
2025-01-28 09:06:37 +00:00
Jet Li
4f159221d3
minor fix - removing useless input
2025-01-28 08:13:02 +00:00
Jet Li
0b4a4a6173
Fix account signup webhook
2025-01-28 08:08:56 +00:00
Jet Li
f96ec74176
Fix payment webhook
2025-01-28 07:48:53 +00:00
Jet Li
f05e663a10
Add webhook secret and fix some setting for payment
2025-01-27 08:11:14 +00:00
10d87d4889
Remove noisy logging for mongo
2025-01-22 00:28:26 -08:00
9f5e0d1706
Update payment micro-service to handle status update
2025-01-22 00:21:54 -08:00
d47823124f
Update payment micro-service
2025-01-22 00:09:47 -08:00
Jet Li
45df1e97fd
Merge branch 'master' of https://dev.azure.com/freeleaps/freeleaps-service-hub/_git/freeleaps-service-hub
2025-01-21 01:44:59 +00:00
Jet Li
db90cf7e46
Fix payment micro-service webhook not set bug
2025-01-21 01:44:23 +00:00
dongli
dcae87d3e0
Expose prometheus metrics for payment
2025-01-19 16:24:15 -08:00
Jet Li
a94dcca6c4
Fix payment micro-service in freeleaps2-frontend connection
2025-01-17 06:03:12 +00:00
55746445bb
Remove useless on_behalf_of
2025-01-16 05:01:57 +00:00
a7a1263c73
Add on_behalf_of in payment micro-service
2025-01-16 04:28:35 +00:00
c6d08c562d
Merge branch 'master' of https://dev.azure.com/freeleaps/freeleaps-service-hub/_git/freeleaps-service-hub
2025-01-16 02:54:10 +00:00
d0c0e0ca28
Fix payment micro-service issues
2025-01-16 02:54:04 +00:00
dongli
885a9ffc0b
Refine Dockerfile for payment isolation
2025-01-12 13:35:53 -08:00
dongli
1d8bbb2427
Refine Dockerfile for payment isolation
2024-12-27 17:48:41 -08:00
dongli
763935569d
Refine Dockerfile for payment isolation
2024-12-26 11:05:51 -08:00
1888ebb433
Force regenerating new documents, refactor when migrating to blob storage
2024-12-26 10:00:06 +00:00
08680351e4
Remove additional log, add content_html
2024-12-26 09:00:20 +00:00
04b1d688d5
clean up cache usage
2024-12-26 08:48:34 +00:00
550c49f3ec
Removing cache, need further tuning
2024-12-26 08:40:12 +00:00
1972a5758b
Update authentication pymongo logger level
2024-12-26 04:09:13 +00:00
f8b60391b2
Add local redis to cache content
2024-12-26 01:04:26 +00:00
bc49e1b60b
Add retry logic in httpx request
2024-12-24 18:37:48 +00:00
363d399c26
Fix typo in resetting password
2024-12-24 17:38:20 +00:00
dongli
7dd8ef45c0
Clean up payment isolation
2024-12-22 18:52:43 -08:00
dongli
cfea8b5889
Fix more decimal conversion issues
2024-12-15 21:20:45 -08:00
dongli
e1c1738818
Merge branch 'master' of https://dev.azure.com/freeleaps/freeleaps-service-hub/_git/freeleaps-service-hub
2024-12-15 17:05:05 -08:00
dongli
72551c44b6
Fix payment model injection
2024-12-15 17:02:28 -08:00
1c8e36b1da
Update to micro-service settings
2024-12-14 22:29:22 -08:00
dongli
9b38025f20
Clean up and add env files to payment
2024-12-11 22:20:12 -08:00
f2a8f719a0
Merge branch 'master' of https://dev.azure.com/freeleaps/freeleaps-service-hub/_git/freeleaps-service-hub
2024-12-04 05:34:18 +00:00
a0aefb3785
Update the notification email_from
2024-12-04 05:34:05 +00:00
dongli
ae3792e25c
Clean up
2024-12-01 19:28:55 -08:00
99983b85ab
Update email api key format
2024-11-26 22:41:22 -08:00
Mike Liao
99bca983a9
check the valid thru field for content folder to decide if it needs a refresh
2024-11-25 22:02:51 +00:00
dongli
d43c0353d2
Init Payment App
2024-11-18 22:01:54 -08:00
3ec0a5233c
Adding needed site information, Workable changes for authentication and hook up with freeleaps, all tested manually
2024-11-16 11:04:30 -08:00
1716adc27b
Fix authentication and notification ports
2024-11-08 06:29:57 +00:00
33dd08d7f4
Update routes for all micro-service for reverse proxy purpose
2024-11-08 05:59:23 +00:00
Mike Liao
2bacfd50ca
Merge branch 'master' of https://dev.azure.com/freeleaps/freeleaps-service-hub/_git/freeleaps-service-hub
2024-11-04 23:32:21 -08:00
Mike Liao
349bebef49
return full json for retrieve media content to avoid encoding/decoding error
2024-11-04 23:32:03 -08:00
902cca4366
Fix the rabbitmq communication with notification container
2024-11-05 05:55:48 +00:00
Mike Liao
c33700fa66
fixed bugs and tested major functions
2024-10-31 06:42:21 -07:00
Mike Liao
ae7f1494be
fix the typo in api name
2024-10-31 03:53:14 -07:00
Mike Liao
c4ce911730
fix webapi routing issue for content
2024-10-31 01:48:18 -07:00
Mike Liao
43302c3135
fix log bash path for local
2024-10-31 00:38:41 -07:00
Mike Liao
ee5e80acd9
update
2024-10-30 20:49:50 -07:00
Mike Liao
234c5a491f
update some settings
2024-10-30 19:40:38 -07:00
Mike Liao
171ccdc2c4
update docker files for autentication
2024-10-30 19:21:55 -07:00
Mike Liao
58a2e122aa
middle way of refactoring the code
2024-10-30 08:44:37 -07:00
Mike Liao
d176fb9d9a
refactor the code structure
2024-10-30 07:22:26 -07:00