Skip to content
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

Support celery tasks on APIv2 to process heavy operations smoothly #1094

Merged
merged 15 commits into from
Mar 14, 2024

Conversation

syucream
Copy link
Contributor

@syucream syucream commented Feb 25, 2024

The APIv2 (new UI) handles heavy operations directly, like edit-entry. Its better to separate such operations async tasks on celery, like the current UI.

It supports:

  • create entity
  • edit entity
  • delete entity
  • create entry
  • edit entry
  • delete entry

@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2024

Codecov Report

Attention: Patch coverage is 93.65079% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 92.08%. Comparing base (91048d2) to head (7f0b406).
Report is 4 commits behind head on master.

Files Patch % Lines
entity/tasks.py 87.50% 5 Missing ⚠️
entity/api_v2/serializers.py 78.94% 4 Missing ⚠️
entry/tasks.py 88.23% 4 Missing ⚠️
frontend/src/repository/AironeApiClient.ts 0.00% 0 Missing and 4 partials ⚠️
entry/api_v2/serializers.py 86.95% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #1094    +/-   ##
========================================
  Coverage   92.07%   92.08%            
========================================
  Files         319      319            
  Lines       27537    27730   +193     
  Branches     1241     1241            
========================================
+ Hits        25356    25534   +178     
- Misses       2084     2095    +11     
- Partials       97      101     +4     
Flag Coverage Δ
core 96.68% <94.85%> (-0.04%) ⬇️
ui 69.47% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@syucream syucream force-pushed the feature/api-v2-tasks branch from 6fa077a to 8a9734e Compare March 2, 2024 16:39
@syucream syucream marked this pull request as ready for review March 8, 2024 14:51
@@ -1,6 +1,6 @@
{
"name": "@dmm-com/airone-apiclient-typescript-fetch",
"version": "0.0.9",
"version": "0.0.10",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@userlocalhost @hinashi please update the apiclient package if this PR seems okay.

Copy link

⚡ ⚡ ⚡ Now the latest apiv2 client npm package is available at:
https://github.com/dmm-com/airone/pkgs/npm/airone-apiclient-typescript-fetch/versions

Copy link
Contributor

@hinashi hinashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@userlocalhost userlocalhost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this very important and your hard work 👍

@userlocalhost userlocalhost merged commit 706c88b into dmm-com:master Mar 14, 2024
5 checks passed
@userlocalhost userlocalhost deleted the feature/api-v2-tasks branch March 14, 2024 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants