Skip to content

[Job Launcher] Update job creation to use manifest JSON#3855

Open
flopez7 wants to merge 9 commits into3806from
flopez/3806-2
Open

[Job Launcher] Update job creation to use manifest JSON#3855
flopez7 wants to merge 9 commits into3806from
flopez/3806-2

Conversation

@flopez7
Copy link
Copy Markdown
Contributor

@flopez7 flopez7 commented Apr 1, 2026

Issue tracking

#3806 #3864

Context behind the change

  • Replaced the fortune job creation endpoint with a generic job creation endpoint that accepts a manifest JSON body.
  • Introduced JobManifestDto to encapsulate job details including manifest.
  • Updated JobService to handle different job types based on the manifest provided.
  • Modified tests to reflect changes in job creation logic and added validation for new manifest types.
  • Enhanced ManifestService to validate and upload manifests for various job types including CVAT and HCaptcha.

How has this been tested?

Ran and created fortune job locally

Release plan

None

Potential risks; What to monitor; Rollback plan

None

@flopez7 flopez7 requested a review from Copilot April 1, 2026 15:05
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

5 Skipped Deployments
Project Deployment Actions Updated (UTC)
faucet-frontend Ignored Ignored Preview Apr 6, 2026 4:35pm
faucet-server Ignored Ignored Preview Apr 6, 2026 4:35pm
human-app Skipped Skipped Apr 6, 2026 4:35pm
human-dashboard-frontend Skipped Skipped Apr 6, 2026 4:35pm
staking-dashboard Skipped Skipped Apr 6, 2026 4:35pm

Request Review

@flopez7 flopez7 requested review from Dzeranov and portuu3 and removed request for Copilot April 1, 2026 15:05
@flopez7 flopez7 self-assigned this Apr 1, 2026
paymentCurrency: string,
paymentAmount: number | string,
escrowFundToken: string,
fundAmount: number,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You are passing 2 amounts now. Only 1 amount should be received then converted to fund token

@ApiProperty({ name: 'manifest_hash' })
@IsString()
@IsOptional()
@IsNotEmpty()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why have you changed this to be required?

await this.manifestService.validateManifest(
requestType,
fundTokenAmount,
dto.manifest as ManifestDto,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

as not needed

@vercel vercel bot temporarily deployed to Preview – human-app April 6, 2026 11:44 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard April 6, 2026 11:44 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend April 6, 2026 11:44 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app April 6, 2026 14:42 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend April 6, 2026 14:42 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard April 6, 2026 14:42 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend April 6, 2026 16:35 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard April 6, 2026 16:35 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app April 6, 2026 16:35 Inactive
@flopez7 flopez7 requested a review from portuu3 April 7, 2026 08:34
@flopez7 flopez7 added the do-not-merge PR shouldn't be merged until this label is removed label Apr 7, 2026
Base automatically changed from flopez/3806-1 to 3806 April 7, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge PR shouldn't be merged until this label is removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants