Closed Bug 1988649 Opened 11 months ago Closed 11 months ago

job model: tighten constraints on some fields

Categories

(Conduit :: Lando, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: shtrom, Assigned: shtrom)

References

Details

Attachments

(1 file)

  • set default job status to SUBMITTED
  • forbid empty requester_email.
Assignee: nobody → omehani
Status: NEW → ASSIGNED
Summary: set default job status to SUBMITTED → job model: tighten constraints on some fields

Currently no empty requester_email, and we want to keep it like that.

$ lando shell
...
>>> LandingJob.objects.filter(requester_email="")
<QuerySet []>
>>> AutomationJob.objects.filter(requester_email="")
<QuerySet []>

And no empty statuses

app@lando-automationworkergit-0:/code$ lando shell
28 objects imported automatically (use -v 2 for details).

Python 3.11.13 (main, Sep  8 2025, 22:51:55) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> LandingJob.objects.filter(status=None)
<QuerySet []>
>>> AutomationJob.objects.filter(status=None)
<QuerySet []>

Authored by https://github.com/shtrom
https://github.com/mozilla-conduit/lando/commit/3ebb3ed1b4701205dc08d47d67e95466b3ffe97c
[main] jobs: tighten constraints on status and requester_email (bug 1988649) (#529)

Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: