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

API: Create a batch operation #1273

Closed
3 tasks
srindom opened this issue Mar 29, 2022 · 1 comment
Closed
3 tasks

API: Create a batch operation #1273

srindom opened this issue Mar 29, 2022 · 1 comment
Assignees

Comments

@srindom
Copy link
Collaborator

srindom commented Mar 29, 2022

Creates a batch operation. The type of batch operation determines what should be included in the context. If the batch job is created with dry_run: true final confirmation through /batch/:id/complete will be required before the final data is uploaded to the DB.

POST /admin/batch

Body
- type
- context
- dry_run - true/false
- (potentially a location for a import file)

Response
- batch_job - { id, status ... }

DoD

  • Endpoint should create new BatchJob - the new BatchJob's created_by field should correspond to the authenticated user
  • Endpoint controller should call the *Strategy.validateContext method (this should be done through the BatchJobService)
  • Endpoint should respond with the created BatchJob
@srindom srindom assigned srindom and unassigned srindom Mar 29, 2022
@olivermrbl olivermrbl linked a pull request May 8, 2022 that will close this issue
@olivermrbl olivermrbl changed the title API: Create a batch operation Create a batch operation May 8, 2022
@olivermrbl olivermrbl changed the title Create a batch operation API: Create a batch operation May 8, 2022
@olivermrbl
Copy link
Contributor

Solved in #1387

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 a pull request may close this issue.

3 participants