First step for the [meta] Jobless / continuous translators.
Add a new type field to the job entity type, list_string with allowed values, the allowed values being normal or continuous (as constants on JobInterface). Default to normal. This will also need an update function to add the field, we already have committed examples for this. The existing view needs a new condition and only show normal jobs. Nothing should visibly change yet for users.
Test coverage: Extend existing job crud tests, make sure that jobs by default are normal but can be created as continuous. Test that continuous jobs are not shown in the job overview.
Comment | File | Size | Author |
---|---|---|---|
#8 | interdiff-2664486-8.txt | 1.43 KB | sanja_m |
#8 | 2664486-8.patch | 7.04 KB | sanja_m |
|
Comments
Comment #2
sanja_m CreditAttribution: sanja_m at MD Systems GmbH commented@MarinkoIg and I started to work on this.
Comment #3
sanja_m CreditAttribution: sanja_m at MD Systems GmbH commentedAdded a new type field to the job entity type with test coverage.
Comment #4
sanja_m CreditAttribution: sanja_m at MD Systems GmbH commentedUpdated views.view.tmgmt_job_overview.yml (exported properly).
Comment #5
Berdirshould be added to JobInterface too and documented there instead.
the UI test is already very slow, I think we should just make this part of an existing test method.
Then you will have to do an assertNoText() instead.
Comment #6
sanja_m CreditAttribution: sanja_m at MD Systems GmbH commentedFixed bugs from #5.
Comment #7
BerdirMissed this before, sorry:
Use static::... here instead of Job::
Lets also use the constants here
Comment #8
sanja_m CreditAttribution: sanja_m at MD Systems GmbH commentedFixed bugs from #7 too.
Comment #9
BerdirChanged this to 8003 (should be an incremental number, we'll switch to 810x after a stable release I think)
Committed, thanks.