Skip to content

Commit e1d3e60

Browse files
committed
Release v21
1 parent 752cda7 commit e1d3e60

File tree

6 files changed

+456
-156
lines changed

6 files changed

+456
-156
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# 21-pre
1+
# 22-pre
2+
3+
# 21
24

35
- Added:
46
- query queue-detail-drm, from @cat-bro and @slugger70, a better version of queue-details potentially.

docs/README.galaxy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,9 @@ galaxy migrate-tool-install-to-sqlite - Converts normal potsgres toolshed repos
259259
## galaxy prune-gxit-routes
260260

261261
([*source*](https://github.com/galaxyproject/gxadmin/search?q=galaxy_prune-gxit-routes&type=Code))
262+
galaxy prune-gxit-routes - Prunes dead routes
263+
264+
**SYNOPSIS**
265+
266+
gxadmin galaxy prune-gxit-routes <interactivetools_map>
267+

docs/README.mutate.md

Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ handlers you want to schedule workflows across.
7777
## mutate dataset-mark-purged
7878

7979
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_dataset-mark-purged&type=Code))
80+
mutate dataset-mark-purged - Purge dataset and mark downstream HDAs as purged as well
81+
82+
**SYNOPSIS**
83+
84+
gxadmin mutate dataset-mark-purged <dataset_uuid> [--commit]
85+
8086

8187
## mutate delete-group-role
8288

@@ -140,3 +146,249 @@ mutate fail-job - Sets a job state to error
140146

141147
Sets a job's state to "error"
142148

149+
150+
## mutate fail-misbehaving-gxits
151+
152+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_fail-misbehaving-gxits&type=Code))
153+
mutate fail-misbehaving-gxits - Fails misbehaving GxITs.
154+
155+
**SYNOPSIS**
156+
157+
gxadmin mutate fail-misbehaving-gxits [--commit]
158+
159+
**NOTES**
160+
161+
Set quota for OIDC users.
162+
163+
164+
## mutate fail-terminal-datasets
165+
166+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_fail-terminal-datasets&type=Code))
167+
mutate fail-terminal-datasets - Causes the output datasets of jobs which were manually failed, to be marked as failed
168+
169+
**SYNOPSIS**
170+
171+
gxadmin mutate fail-terminal-datasets [--commit]
172+
173+
**NOTES**
174+
175+
Whenever an admin marks a job as failed manually (e.g. by updating the
176+
state in the database), the output datasets are not accordingly updated
177+
by default. And this causes users to mistakenly think their jobs are
178+
still running when they have long since failed.
179+
180+
This command provides a way to select those jobs in error states
181+
(deleted, deleted_new, error, error_manually_dropped,
182+
new_manually_dropped), find their associated output datasets, and fail
183+
them with a blurb mentionining that they should contact the admin in
184+
case of any question
185+
186+
Running without any arguments will execute the command within a
187+
transaction and then roll it back, allowing you to see counts of rows
188+
and giving you an idea if it is doing the right thing.
189+
190+
**WARNINGS**
191+
192+
!> This does NOT currently work on collections
193+
194+
**EXAMPLES**
195+
196+
The process is to first query how many datasets will be failed, if this looks correct you're ready to go.
197+
198+
$ gxadmin mutate fail-terminal-datasets
199+
BEGIN
200+
SELECT 1
201+
jobs_per_month_to_be_failed | count
202+
-----------------------------+-------
203+
2019-02-01 00:00:00 | 1
204+
(1 row)
205+
206+
UPDATE 1
207+
UPDATE 1
208+
ROLLBACK
209+
210+
Then to run with the --commit flag to commit the changes
211+
212+
$ gxadmin mutate fail-terminal-datasets --commit
213+
BEGIN
214+
SELECT 1
215+
jobs_per_month_to_be_failed | count
216+
-----------------------------+-------
217+
2019-02-01 00:00:00 | 1
218+
(1 row)
219+
220+
UPDATE 1
221+
UPDATE 1
222+
COMMIT
223+
224+
225+
## mutate fail-wfi
226+
227+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_fail-wfi&type=Code))
228+
mutate fail-wfi - Sets a workflow invocation state to failed
229+
230+
**SYNOPSIS**
231+
232+
gxadmin mutate fail-wfi <wf-invocation-d> [--commit]
233+
234+
**NOTES**
235+
236+
Sets a workflow invocation's state to "failed"
237+
238+
239+
## mutate force-publish-history
240+
241+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_force-publish-history&type=Code))
242+
mutate force-publish-history - Removes the access restriction on every dataset in a specified history
243+
244+
**SYNOPSIS**
245+
246+
gxadmin mutate force-publish-history <history_id> [--commit]
247+
248+
**NOTES**
249+
250+
Workaround for Galaxy bug https://github.com/galaxyproject/galaxy/issues/13001
251+
252+
253+
## mutate generate-unset-api-keys
254+
255+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_generate-unset-api-keys&type=Code))
256+
mutate generate-unset-api-keys - Generate API keys for users which do not have one set.
257+
258+
**SYNOPSIS**
259+
260+
gxadmin mutate generate-unset-api-keys [--commit]
261+
262+
**NOTES**
263+
264+
For some use cases (IEs), it is preferrable that everyone has an API
265+
key set for them, if they don't choose to set one themselves. So we set
266+
a base64'd key to be a bit extra secure just in case. These work just
267+
fine like hex keys.
268+
269+
270+
## mutate oidc-by-emails
271+
272+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_oidc-by-emails&type=Code))
273+
mutate oidc-by-emails - Reassign OIDC account between users.
274+
275+
**SYNOPSIS**
276+
277+
gxadmin mutate oidc-by-emails <email_from> <email_to> [--commit]
278+
279+
**NOTES**
280+
281+
Workaround for users creating a new account by clicking the OIDC button, with case mismatching between existing accounts.
282+
Please note that this function is case-sensitive. Fixes https://github.com/galaxyproject/galaxy/issues/9981.
283+
284+
285+
## mutate oidc-role-find-affected
286+
287+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_oidc-role-find-affected&type=Code))
288+
mutate oidc-role-find-affected - Find users affected by galaxyproject/galaxy#8244
289+
290+
**SYNOPSIS**
291+
292+
gxadmin mutate oidc-role-find-affected
293+
294+
**NOTES**
295+
296+
Workaround for https://github.com/galaxyproject/galaxy/issues/8244
297+
298+
This finds all of the OIDC authenticated users which do not have any
299+
roles associated to them. (Should be sufficient?)
300+
301+
302+
## mutate oidc-role-fix
303+
304+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_oidc-role-fix&type=Code))
305+
mutate oidc-role-fix - Fix permissions for users logged in via OIDC. Workaround for galaxyproject/galaxy#8244
306+
307+
**SYNOPSIS**
308+
309+
gxadmin mutate oidc-role-fix <username|email|user_id>
310+
311+
**NOTES**
312+
313+
Workaround for https://github.com/galaxyproject/galaxy/issues/8244
314+
315+
316+
## mutate purge-old-job-metrics
317+
318+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_purge-old-job-metrics&type=Code))
319+
mutate purge-old-job-metrics - Purge job metrics older than 1 year.
320+
321+
**SYNOPSIS**
322+
323+
gxadmin mutate purge-old-job-metrics [--commit]
324+
325+
326+
## mutate reassign-active-workflows-to-handler
327+
328+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_reassign-active-workflows-to-handler&type=Code))
329+
mutate reassign-active-workflows-to-handler - Reassign workflows with state 'scheduled' or 'new' to a different handler.
330+
331+
**SYNOPSIS**
332+
333+
gxadmin mutate reassign-active-workflows-to-handler <handler_from> <handler_to> [--commit]
334+
335+
**NOTES**
336+
337+
Another workaround for https://github.com/galaxyproject/galaxy/issues/8209
338+
339+
Need to use the full handler names e.g. handler_main_0
340+
341+
342+
## mutate reassign-job-to-handler
343+
344+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_reassign-job-to-handler&type=Code))
345+
mutate reassign-job-to-handler - Reassign a job to a different handler
346+
347+
**SYNOPSIS**
348+
349+
gxadmin mutate reassign-job-to-handler <job_id> <handler_id> [--commit]
350+
351+
352+
## mutate reassign-workflows-to-handler
353+
354+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_reassign-workflows-to-handler&type=Code))
355+
mutate reassign-workflows-to-handler - Reassign workflows in 'new' state to a different handler.
356+
357+
**SYNOPSIS**
358+
359+
gxadmin mutate reassign-workflows-to-handler <handler_from> <handler_to> [--commit]
360+
361+
**NOTES**
362+
363+
Another workaround for https://github.com/galaxyproject/galaxy/issues/8209
364+
365+
Need to use the full handler names e.g. handler_main_0
366+
367+
368+
## mutate restart-jobs
369+
370+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_restart-jobs&type=Code))
371+
mutate restart-jobs - Restart some jobs
372+
373+
**SYNOPSIS**
374+
375+
gxadmin mutate restart-jobs [--commit] <-|job_id [job_id [...]]>
376+
377+
**NOTES**
378+
379+
Restart jobs
380+
381+
382+
## mutate set-quota-for-oidc-user
383+
384+
([*source*](https://github.com/galaxyproject/gxadmin/search?q=mutate_set-quota-for-oidc-user&type=Code))
385+
mutate set-quota-for-oidc-user - Set quota for OIDC users.
386+
387+
**SYNOPSIS**
388+
389+
gxadmin mutate set-quota-for-oidc-user <provider_name> <quota_name> [--commit]
390+
391+
**NOTES**
392+
393+
Set quota for OIDC users.
394+

0 commit comments

Comments
 (0)