Skip to content

Implement the list and show page for the jobs: #4

@gomathi-mallow

Description

@gomathi-mallow
  • Create a new table named jobs with the below schema:
Column Name Data Type
id uuid
title varchar
description varchar
input_arguments json
max_run_time integer
minimum_approvals_required integer
priority integer
queue integer
created_at timestamp
updated_at timestamp
  • Create a new model for the Job and add required validations on the model
    • Description and Title cannot be left empty
    • Define the maximum number of characters restriction for description and title
    • The input_arguments is optional and can be left empty
    • The queue should be pre-populated with default
  • Implement the index and show actions only for the jobs
  • Write automated test cases

Assumptions:

  1. There will not be any provision to create/update/delete the tasks from the UI.
  2. The new tasks have to be created from the backend via DB migration
  3. Need to have provision to download the supporting file templates for the given task if required
  4. Example format for input_arguments can be like the below:
[
  {
    "name": "File",
    "type": "File",
    "allowed_characters": "<Regexp>",
    "max_length": "10",
    "required": true
  },
  {
    "name": "Imported Date",
    "type": "Date",
    "required": true
  },
  {
    "name": "Imported Date and Time",
    "type": "DateTime",
    "required": true
  },
  {
    "name": "client name",
    "type": "String",
    "required": true,
    "allowed_characters": "<Regexp>",
    "max_length": "10"
  },
  {
    "name": "Booking ID",
    "type": "integer"
  }
]

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions