https://progress.opensuse.org/https://progress.opensuse.org/themes/openSUSE/favicon/favicon.ico?15829177842021-08-03T11:50:41ZopenSUSE Project Management ToolopenQA Project - action #96510: `job_groups/id` DELETE call can't really workhttps://progress.opensuse.org/issues/96510?journal_id=4327832021-08-03T11:50:41Zosukup
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/432783/diff?detail_id=410286">diff</a>)</li></ul> openQA Project - action #96510: `job_groups/id` DELETE call can't really workhttps://progress.opensuse.org/issues/96510?journal_id=4327972021-08-03T12:32:37Zlivdywanliv.dywan@suse.com
<ul></ul><p>I assume the job template needs to be set to "" first? That's what we cover in unit tests as well</p>
openQA Project - action #96510: `job_groups/id` DELETE call can't really workhttps://progress.opensuse.org/issues/96510?journal_id=4328932021-08-03T14:35:19Zokurzokurz@suse.com
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/432893/diff?detail_id=410396">diff</a>)</li><li><strong>Category</strong> set to <i>Regressions/Crashes</i></li><li><strong>Target version</strong> set to <i>future</i></li></ul><p>Your observation is valid. I noted down the potential workaround and another one. With the workaround documented I will not add it to the backlog right now.</p>
openQA Project - action #96510: `job_groups/id` DELETE call can't really workhttps://progress.opensuse.org/issues/96510?journal_id=4338442021-08-09T09:09:28Zosukup
<ul></ul><p>cdywan wrote:</p>
<blockquote>
<p>I assume the job template needs to be set to "" first? That's what we cover in unit tests as well</p>
</blockquote>
<p>but this isn't possible with the current interface? for an empty page, it sets the default dictionary <code>{products: {}, scenarios: {}</code></p>
openQA Project - action #96510: `job_groups/id` DELETE call can't really workhttps://progress.opensuse.org/issues/96510?journal_id=4490792021-09-24T10:37:16Zosukup
<ul></ul><p>cdywan wrote:</p>
<blockquote>
<p>I assume the job template needs to be set to "" first? That's what we cover in unit tests as well</p>
</blockquote>
<p>and it shows this unit test is invalid</p>
openQA Project - action #96510: `job_groups/id` DELETE call can't really workhttps://progress.opensuse.org/issues/96510?journal_id=4498952021-09-27T12:57:11Zmkittlermarius.kittler@suse.com
<ul></ul><p>Note that one gets an error like <code>Job group 390 is not empty</code> if the there is at last one job within that job group. So you'll need to delete all jobs within that job group first. I suppose we could add a flag to do that as part of the job group deletion.</p>
<p>That means the error message is about concrete jobs, <em>not</em> about job templates. However, it could be that job templates would also get in the way later (and you would even get an SQL error).</p>
openQA Project - action #96510: `job_groups/id` DELETE call can't really workhttps://progress.opensuse.org/issues/96510?journal_id=4510592021-09-30T07:59:58Zosukup
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Rejected</i></li></ul><p><a class="user active user-mention" href="https://progress.opensuse.org/users/22072">@mkittler</a> , you're right :D thx for explanation</p>
<p>--> so I used small script to remove invalid groups - gitlab.suse.de/osukup/scripts</p>