toeverything / AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
https://affine.pro
Other
42.83k stars 2.8k forks source link

refactor(server): payment service #8906

Open forehalo opened 6 days ago

graphite-app[bot] commented 6 days ago

Your org has enabled the Graphite merge queue for merging into canary

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

forehalo commented 6 days ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

nx-cloud[bot] commented 6 days ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 0b92962867ade399b0185e782ef8c605f7ae7585. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target - [`nx test:coverage @affine/monorepo`](https://cloud.nx.app/runs/sK2SM4tygA?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.

codecov[bot] commented 6 days ago

Codecov Report

Attention: Patch coverage is 80.03234% with 247 lines in your changes missing coverage. Please review.

Project coverage is 65.58%. Comparing base (6e25243) to head (0b92962). Report is 15 commits behind head on canary.

Files with missing lines Patch % Lines
...ages/backend/server/src/plugins/payment/service.ts 69.87% 72 Missing :warning:
...ges/backend/server/src/plugins/payment/resolver.ts 55.76% 46 Missing :warning:
...backend/server/src/plugins/payment/manager/user.ts 91.94% 43 Missing :warning:
...ackages/backend/server/src/plugins/payment/cron.ts 44.44% 30 Missing :warning:
...s/backend/server/src/plugins/payment/controller.ts 51.92% 25 Missing :warning:
...ages/backend/server/src/plugins/payment/webhook.ts 53.84% 24 Missing :warning:
...ckages/backend/server/src/plugins/payment/types.ts 94.57% 7 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## canary #8906 +/- ## ========================================== + Coverage 64.77% 65.58% +0.80% ========================================== Files 665 669 +4 Lines 37373 37686 +313 Branches 3608 3644 +36 ========================================== + Hits 24210 24716 +506 + Misses 12796 12622 -174 + Partials 367 348 -19 ``` | [Flag](https://app.codecov.io/gh/toeverything/AFFiNE/pull/8906/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | Coverage Δ | | |---|---|---| | [server-test](https://app.codecov.io/gh/toeverything/AFFiNE/pull/8906/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | `78.09% <80.01%> (+0.95%)` | :arrow_up: | | [unittest](https://app.codecov.io/gh/toeverything/AFFiNE/pull/8906/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything) | `34.57% <100.00%> (-0.22%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=toeverything#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.