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

[Job Launcher] Added job id relation to the payment #835

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

eugenvoronov
Copy link
Contributor

Description

For ensure job cancelation correct, withdrawal payment related with the particular job id need to be failed, for this purpose job id field was added to payment entity.

Summary of changes

  • Added job id property to the payment entity
  • Updated migration
  • Updated dto
  • Updated unit tests

The assumption (for simplicity) that one job has one payment works. The solution implements a one-to-one relationship.

Related issues

[Job Launcher] Add job id property to payment entity#834

@eugenvoronov eugenvoronov self-assigned this Aug 28, 2023
@vercel
Copy link

vercel bot commented Aug 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
escrow-dashboard ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
faucet-server ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
fortune-exchange-oracle ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
fortune-exchange-oracle-server ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
fortune-job-launcher-client ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
fortune-job-launcher-server ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
fortune-recording-oracle ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
fortune-reputation-oracle ✅ Ready (Inspect) Visit Preview Aug 28, 2023 9:26am
1 Ignored Deployment
Name Status Preview Updated (UTC)
job-launcher-server ⬜️ Ignored (Inspect) Aug 28, 2023 9:26am

@eugenvoronov eugenvoronov linked an issue Aug 28, 2023 that may be closed by this pull request
@eugenvoronov eugenvoronov merged commit 210d15b into feat/launcher/cancel-job Aug 28, 2023
3 checks passed
@eugenvoronov eugenvoronov deleted the feature/payment-job-id branch August 28, 2023 09:35
eugenvoronov added a commit that referenced this pull request Aug 29, 2023
* Added cancel job functionality

* Updated job controller

* Updated type to patch and validation params approach

* Updated job cancelation logic

* Added job cancel functionality

* Added enums webhook

* Resolved comments

* [Job Launcher] Added job id relation to the payment (#835)

* Updated payment entity and migration

* Updated job service

* Updated unit tests

* Updated unit tests
eugenvoronov added a commit that referenced this pull request Aug 29, 2023
* Added cancel job functionality

* Updated job controller

* Updated type to patch and validation params approach

* Updated job cancelation logic

* Added job cancel functionality

* Added enums webhook

* Resolved comments

* [Job Launcher] Added job id relation to the payment (#835)

* Updated payment entity and migration

* Updated job service

* Updated unit tests

* Updated unit tests

* [Job Launcher] Added job cancelation cron endpoint for vercel (#838)

* Added cancel crone endpoint

* Updated vercel.json

* Updated controller

* Updated storage clietn params order

* Resolved conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Job Launcher] Add job id property to payment entity
2 participants