Closed
Bug 1988649
Opened 11 months ago
Closed 11 months ago
job model: tighten constraints on some fields
Categories
(Conduit :: Lando, defect)
Conduit
Lando
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.
Comment 1•11 months ago
|
||
| Assignee | ||
Updated•11 months ago
|
Assignee: nobody → omehani
Status: NEW → ASSIGNED
| Assignee | ||
Updated•11 months ago
|
Blocks: try-new-lando
| Assignee | ||
Updated•11 months ago
|
Summary: set default job status to SUBMITTED → job model: tighten constraints on some fields
| Assignee | ||
Comment 2•11 months ago
|
||
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 []>
| Assignee | ||
Comment 3•11 months ago
|
||
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 []>
Comment 4•11 months ago
|
||
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.
Description
•