Commit Graph
422 Commits
Author SHA1 Message Date
mvdbeek ee63214516 Fix wrong extension on pick data output
This fixes https://github.com/galaxyproject/galaxy/issues/18795
2024-09-11 12:21:33 +02:00
mvdbeek a5960ee262 Fix map over calculation for runtime inputs
Fixes https://github.com/galaxyproject/galaxy/issues/18506
2024-07-14 20:53:52 +02:00
Nicola Soranzo 49f820da8b Merge branch 'release_24.0' into release_24.1 2024-07-08 20:11:56 +01:00
Ahmed Hamid AwanandJohn Davis 077832bc29 Update test/unit/app/managers/test_UserManager.py
Co-authored-by: John Davis <jdavcs@gmail.com>
2024-07-01 13:56:50 -05:00
Ahmed Awan a6e70816f3 adjust test_reset_email_user_deleted for None instead of str 2024-07-01 13:42:44 -05:00
mvdbeek 33f27d5456 Merge branch 'release_24.0' into release_24.1 2024-07-01 18:23:55 +02:00
Jonathan Laperle beb705428a fix indentation 2024-06-28 12:50:32 -04:00
Jonathan Laperle e69d7b2f8b Prevent deleted users from reseting password 2024-06-28 08:01:25 -04:00
Dannon Baker 6ec7521e1a Merge remote-tracking branch 'upstream/release_24.0' into release_24.1 2024-06-28 09:48:27 +02:00
Marius van den Beek 8a52443a0a Merge pull request #18428 from mvdbeek/replace_busybox
[24.0] Replace busybox:ubuntu-14.04 image with busybox:1.36.1-glibc
2024-06-28 09:22:30 +02:00
mvdbeek 7c6fc1800f Replace busybox:ubuntu-14.04 image with busybox:1.36.1-glibc 2024-06-21 16:58:21 +02:00
Nicola Soranzo 08d42ea24f Merge branch 'release_24.0' into release_24.1 2024-06-19 13:14:15 +01:00
mvdbeek 111d5632ff Run make format 2024-06-19 10:24:55 +02:00
Martin Cech 2891489cad Merge pull request #18389 from mvdbeek/ensure_data_extension_if_no_extension_specified
[24.0] Assign default ``data`` extension on discovered collection output
2024-06-18 17:21:20 +02:00
mvdbeek ed2369f9a0 Merge branch 'release_24.0' into release_24.1 2024-06-18 17:19:55 +02:00
M Bernt 5297fa3137 Apply suggestions from code review 2024-06-18 09:59:33 +02:00
Matthias Bernt a2d1a5d2e6 really allow in-range validator for txt
just enabling the linter
https://github.com/galaxyproject/galaxy/pull/18403 was not sufficient
2024-06-17 14:57:56 +02:00
mvdbeek 6551f31671 Implement default format on collection level 2024-06-13 13:02:51 +02:00
mvdbeek b8e2bfc9c7 Merge branch 'release_24.0' into release_24.1 2024-06-11 13:42:48 +02:00
John Chilton 821b31c3b2 More structured indexing for user data objects.
I think I clung to the idea of having two ways to do this too long. I did a bunch of testing with the old way (exposing integer references based on numeric database primary keys). Having a config option that if changed would break everything exisiting is also a symptom of maybe me clinging too hard for too long.

The result of dropping this option is a much cleaner API schema, simpler API objects, and better typing throughout. We can also be more certain of how things entering the Vault are stored - I think being more strucutured about this is good.

Ultimately, the future facing stuff (e.g. OAuth 2.0) is going to require UUIDs so that I can store things like refresh tokens in the store before the object has been fully created.
2024-06-07 19:20:11 -04:00
mvdbeek 87124a396a Don't copy from_work_dir outputs to purged path in shell fragment 2024-06-07 15:20:44 +02:00
Marius van den Beek b3835bbefe Merge pull request #18246 from jmchilton/backport_user_data_1
[24.1] Small bug fixes for user data plugins
2024-06-04 09:43:17 +02:00
Nicola Soranzo b2076ee5f9 Move carbon data loading to `GalaxyManagerApplication`
Fix the galaxy-config package wrongly depending on galaxy-app.
Also move the carbon_emissions unit tests to the `app/` subdirectory.

Refines @mvdbeek's proposed patch from https://github.com/galaxyproject/galaxy/pull/17159#issuecomment-1850276194 .

Close https://github.com/galaxyproject/galaxy/pull/17159 .
2024-06-02 19:56:20 +01:00
Nicola Soranzo 6ef6fc911f Merge branch 'release_24.0' into release_24.1 2024-05-30 13:03:12 +01:00
mvdbeek ce1582f46a Move assertions out request error handling 2024-05-29 13:50:29 +02:00
Marius van den BeekandNicola Soranzo 5d2ccdfbe7 Use variable
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
2024-05-29 13:49:10 +02:00
mvdbeek d8379a79a1 Also skip unit test 2024-05-29 13:39:26 +02:00
mvdbeek 229b1c5bcb Skip doi unit test if request fails 2024-05-29 13:30:22 +02:00
John Chilton 77e6df4303 Fill out missing file source management tests. 2024-05-28 11:31:35 -04:00
John Chilton a3c648a637 Abstractions to cleanup test_user_file_sources test case a bit. 2024-05-28 11:31:35 -04:00
John Chilton 2a92bc1ae2 Test user config objects before creating them.
Provide detailed error message before proceeding with creation.
2024-05-20 12:19:49 -04:00
John Chilton f95da89b3d Implement file source templates 2024-05-20 12:18:47 -04:00
John Chilton 2f43c32fd9 Merge pull request #18003 from mvdbeek/add_galaxy_to_user_agent
Add galaxy to user agent
2024-05-20 12:14:13 -04:00
Dannon 9fad101a9f Merge pull request #17975 from davelopez/make_urgent_notifications_mandatory
Make urgent notifications mandatory
2024-05-02 09:23:26 -04:00
Nicola Soranzo 534010a8cb Enable flake8-implicit-str-concat ruff rules
See https://docs.astral.sh/ruff/rules/#flake8-implicit-str-concat-isc
2024-04-29 13:37:54 +01:00
Nicola Soranzo 0629908541 Fix new UP031 errors from ruff 0.4.2 2024-04-29 00:09:38 +01:00
Nicola Soranzo 1d64120a00 Merge branch 'release_24.0' into dev 2024-04-25 14:32:52 +01:00
mvdbeek e1a45a226e Drop unused copy_from_ldda method 2024-04-22 11:52:19 +02:00
mvdbeek 5097cb7107 Merge branch 'release_24.0' into dev 2024-04-21 10:00:50 +02:00
John Davis 7ec131156e Add unit test to verify spllitting tag string into name/value 2024-04-18 22:40:08 -04:00
John Davis 49e46c5b55 Rename method, add comment to explain side effects 2024-04-18 22:39:54 -04:00
mvdbeek 67436a6156 Merge branch 'release_24.0' into dev 2024-04-17 16:22:04 +02:00
davelopez 6c60525614 Add test coverage for urgent notifications 2024-04-17 10:29:35 +02:00
mvdbeek e8a3b8c0cd Create wrapper for requests with default user agent 2024-04-16 17:54:29 +02:00
davelopez 34461f2c1a Update notification creation and sharing logic
This commit updates the notification creation and sharing logic to include the `galaxy_url` field in the `NotificationCreateRequest` and `SharedItemNotificationFactory` classes. This field is used to generate links in the notification content and is passed as an argument when sending notifications to recipients.
2024-04-16 17:31:55 +02:00
davelopez bb6f68852f Schedule periodic notifications tasks only when enabled 2024-04-16 17:06:20 +02:00
Nicola Soranzo 053ca5198e Enable `warn_unused_ignores` mypy option 2024-04-16 01:12:58 +01:00
Nicola Soranzo dcb6f061f6 Don't install Galaxy packages in editable mode when testing them
When enabling the `warn_unused_ignores = True` option of mypy, this
was making the `test_galaxy_packages` tests fail with:

```
mypy .
Traceback (most recent call last):
  File "/tmp/gxpkgtestenvu3fgDr/bin/mypy", line 8, in <module>
    sys.exit(console_entry())
  File "/tmp/gxpkgtestenvu3fgDr/lib/python3.10/site-packages/mypy/__main__.py", line 15, in console_entry
    main()
  File "mypy/main.py", line 100, in main
  File "mypy/main.py", line 182, in run_build
  File "mypy/build.py", line 192, in build
  File "mypy/build.py", line 266, in _build
  File "mypy/build.py", line 2942, in dispatch
  File "mypy/build.py", line 3333, in process_graph
  File "mypy/build.py", line 3414, in process_fresh_modules
  File "mypy/build.py", line 2110, in fix_cross_refs
  File "mypy/fixup.py", line 52, in fixup_module
  File "mypy/fixup.py", line 127, in visit_symbol_table
  File "mypy/lookup.py", line 49, in lookup_fully_qualified
AssertionError: Cannot find component 'util' for 'galaxy.util'
make: *** [Makefile:96: mypy] Error 1
```

Moreover, installing packages in editable mode was hiding some issues
with how files from other packages were accessed.
2024-04-16 01:12:57 +01:00
mvdbeek 92dfa466f5 Fix None passed to LengthValidator
It is valid to pass None as a default value to the validator. It should
just return ValueError, which it will do with this change via the inner
validator.

Fixes https://github.com/galaxyproject/galaxy/issues/17961

Ideally we'd add type annotations, but with the current structure and
instantiation order it seems impossible to do this in a meaningful way.

If we refactored the validators to be functions, and validators
functions were registered per parameter type we could have narrow types on the
validator signature.
2024-04-13 16:08:55 +02:00
John Chilton 822f8121f8 Unit test for email error reporting. 2024-04-11 16:14:13 -04:00