Skip to content

PLAT-3221 lock/consume budget #57

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

Merged
merged 2 commits into from
Oct 3, 2023
Merged

PLAT-3221 lock/consume budget #57

merged 2 commits into from
Oct 3, 2023

Conversation

liuliquan
Copy link
Collaborator

No description provided.

@rakibansary rakibansary changed the base branch from main to PLAT-3491 October 2, 2023 22:30
@rakibansary rakibansary merged commit c41abe7 into PLAT-3491 Oct 3, 2023
@rakibansary rakibansary deleted the PLAT-3221 branch October 3, 2023 00:11
rakibansary added a commit that referenced this pull request Nov 13, 2023
* fix: save markup

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix(deps): update @topcoder-framework packages for bug fixes

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* feat: add payment attribute to challenge

* use this attribute to hold non winner payouts such as
* copilot & reviewer payments

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* feat: add payment attribute to challenge

* use this attribute to hold non winner payouts such as
* copilot & reviewer payments

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* feat: save project payments

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: add payments to schema

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* PLAT-3221 lock/consume budget (#57)

Co-authored-by: Rakib Ansary <rakibansary@topcoder.com>

* feat: add challenge estimator

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: use 0 as reviewer prize when placement prizes are missing

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: do not call lockConsumeAmount for completed challenges

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: keepalive and connection management

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* chore(domain-acl): add additional logging

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* chore(domain-acl): add additional logging

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* feat: generate payments

* this is a stopgap solution
* payment generation should be moved to
* a processor that is triggered through challenge completion
* events published to Harmony

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: pinned typescript version

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: use updated topcoder-framework/*

* fix: allow copilot prize of 0

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* feat: generate payments for tasks

* this is a stopgap solution
* payment generation should be moved to
* a processor that is triggered through challenge completion
* events published to Harmony

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: generate task payments only when task is completed

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: generate task payments only when task is completed

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: incorrect url

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: incorrect overview calculation

* overview should only include placement prizes
* iterative reviewer payment is review board payment

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: duplicate budget lock/unlock calls

* acl calls domain-challenge:update with status:completed
* and there are other such calls - this update ensures
* budget lock/unlcok call is made only when there is an
* actual change in prize setrs

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: take markup into account when locking/unlocking budget

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: typo

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: typo

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: unlock budget on task completion

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: unlock budget on challenge cancellation

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: unlock budget on challenge cancellation

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: set correct enddate for tasks

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* fix: include m2m token when creating payments

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

* chore: use release version

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>

---------

Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>
Co-authored-by: liuliquan <lester.castro@wipro.com>
Co-authored-by: eisbilir <72204071+eisbilir@users.noreply.github.com>
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.

2 participants