Page MenuHomePhabricator

[jobs-api] refactor models
Closed, ResolvedPublic

Description

  • split Newjob into OneOffJob, ScheduledJob and ContinuousJob
  • move all remaining custom validations to internal jobs model
  • any other changes that'll simplify the models in jobs-api

The goal of this change is to simplify the api models in jobs-api and get rid of as much custom validations as we can, since these models are now being used in places like components-api (kind of) and eventually we will want to generate a 'library' out of them for others to reuse.

Event Timeline

dcaro triaged this task as High priority.Mar 18 2025, 10:00 AM
dcaro updated the task description. (Show Details)
dcaro changed the task status from Open to In Progress.Mar 19 2025, 12:52 PM
dcaro moved this task from Next Up to In Progress on the Toolforge (Toolforge iteration 19) board.

group_203_bot_4866fc124f4b41659f667468a6115cf3 opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/738

jobs-api: bump to 0.0.363-20250407065250-1453d60e

group_203_bot_f4d95069bb2675e4ce1fff090c1c1620 opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/778

jobs-api: bump to 0.0.373-20250512184826-3b202d92

group_203_bot_f4d95069bb2675e4ce1fff090c1c1620 opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/794

jobs-api: bump to 0.0.378-20250522194547-6776b4db

group_203_bot_f4d95069bb2675e4ce1fff090c1c1620 opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/980

jobs-api: bump to 0.0.418-20250925102045-75109675