Commit Graph
2304 Commits
Author SHA1 Message Date
John Chilton bac9fb803e metadata_generator: more typing fixes/annotations 2023-09-26 13:46:53 -04:00
John Chilton 32b2d38c4e metadata_generator: move tool shed impl into tool shed package
the correct home and allows better typing with actual Repository type annotations
2023-09-26 13:46:53 -04:00
John Chilton f000b830f5 metadata_generator: Spit into Base and Galaxy and ToolShed implementations...
... so we can get the typing right and not depend on app.name.
2023-09-26 13:46:52 -04:00
John Chilton 42b0d30707 metadata_generator: initial typing for metadata_generator, no functional changes 2023-09-26 13:46:52 -04:00
John Chilton d4dec27a60 Cleanup method signature for uninstall_repository in twilltestcase. 2023-09-26 13:46:52 -04:00
John Davis 7a06b006c6 Refactor get_user_by_username, get_user_by_email; use across code base 2023-09-25 09:23:08 -04:00
Nicola Soranzo d258e5791e Fix new E721 errors from ruff 0.0.290 2023-09-20 01:43:40 +01:00
mvdbeek 913182fac9 Merge branch 'release_23.1' into dev 2023-08-31 13:04:47 +02:00
Dannon 607a4075e0 Merge pull request #16604 from mvdbeek/optimize_fetching_history
[23.1] Optimize getting current user session
2023-08-29 23:11:13 +10:00
mvdbeek 73b1a48057 Drop RecursiveMiddleware
It isn't used AFAICT and makes 3 copies of the request environ each,
without ever being used.

Shows up in a memray trace, though this also shouldn't cause a memory
leak ...
2023-08-27 12:04:54 +02:00
mvdbeek 4822727300 Optimize getting current user session
We get all user session when logging in, this isn't necessary and does
show up in a memray trace. I don't think it's a leak, but this is going
to be more efficient.
2023-08-27 11:56:33 +02:00
John Davis bc60013c30 Only pass the objects that are used by the function 2023-08-08 13:29:10 -04:00
John Davis e43761b355 Move dbkeys to managers 2023-08-08 00:53:03 -04:00
John Davis 7a0e66e96c Move get_user_by_username function to managers.users 2023-08-08 00:52:59 -04:00
Tillman 20bd0bceb3 Move get_or_create_remote_user method to UserManager 2023-07-31 11:00:11 +02:00
John Davis b4e843cecb Fix select([foo]) in lib/tool_shed 2023-07-19 11:05:55 -04:00
claudiofr 17f22c28f3 Add new config parameters for citation database beaker cache in tool_shed yaml file 2023-06-21 22:45:12 +02:00
John Davis 8d2998ffd1 Wrap session.flush in TS util.admin_util 2023-06-09 13:05:26 -04:00
John Davis c1236c1cba Wrap session.flush in TS util.repository_util 2023-06-09 13:05:26 -04:00
John Davis a000f3b929 Wrap session.flush in TS util.metadata_util 2023-06-09 13:05:26 -04:00
John Davis 51938220a9 Wrap session.flush in TS webapp.controllers.admin 2023-06-09 13:05:26 -04:00
John Davis e93752436e Wrap session.flush in TS webapp.controllers.hg 2023-06-09 13:05:26 -04:00
John Davis cc2e274bf0 Wrap session.flush in TS webapp.controllers.user 2023-06-09 13:05:26 -04:00
John Davis c512c2f8b4 Wrap session.flush in TS webapp.controllers.repository 2023-06-09 13:05:26 -04:00
John Davis fb92d41dd4 Wrap session.flush in TS metadata 2023-06-09 13:05:26 -04:00
John Davis 604d79e95a Wrap session.flush in TS managers.groups 2023-06-09 13:05:26 -04:00
John Davis 13b84744ac Wrap session.flush in TS webapp.api 2023-06-09 13:05:26 -04:00
John Davis 680348eafa Wrap session.flush in TS webapp.util.ratings_util 2023-06-09 13:05:26 -04:00
John Davis 5baa4765fc Wrap session.flush in TS webapp.security 2023-06-09 13:05:26 -04:00
mvdbeek fd0ff0bf58 Wrap TS and reports apps with RequestIDMiddleware 2023-06-09 15:04:38 +02:00
John Davis 9eb1b1b98d Replace "unknown" str with a constant across code base 2023-06-08 17:14:24 -04:00
John Chilton 83c85d79da Fix reset_metadata_on_repositories to not break everything. 2023-05-12 13:21:15 -04:00
John Chilton 748abc3710 reset repository metadata testing 2023-05-12 13:21:15 -04:00
Martin Cech 4e8b2fed9b Merge pull request #15540 from jmchilton/shed_cleanup_2
Another round of easy tool shed cleanup.
2023-05-04 18:24:50 -04:00
Nicola Soranzo c210257e0d Fix new UP031 errors raised by ruff 0.0.262 2023-05-03 17:57:06 +01:00
guerler c1ae0c420f Remove unused styles, adjust reports app 2023-04-20 17:30:18 +03:00
guerler ca9aafdd35 Add padding to toolshed side panel, continue decoupling from global styles 2023-04-20 15:26:46 +03:00
guerler 8f581a3dfb Additional fixes for the toolshed view, remove unused right panel 2023-04-20 15:21:35 +03:00
guerler 66ec23187c Fix legacy toolshed view 2023-04-20 15:07:37 +03:00
Nicola Soranzo 64af46c4ae Fix new B018 errors raised by ruff 0.0.260 2023-04-13 16:53:01 +01:00
John Chilton 0a41523a27 Typing fixes 2023-04-08 16:34:07 -04:00
John Chilton 4bcd4fed01 Improved typing for tool shed structured app. 2023-04-08 16:34:06 -04:00
John Chilton 97294cc412 Cleanup method signature for display_installed_jobs_list_page. 2023-04-08 16:34:06 -04:00
John Chilton 747b291398 Some initial typing for shed's metadata_util. 2023-04-08 16:34:06 -04:00
John Chilton 6aeb297942 Remove unused code in search_util. 2023-04-08 16:34:06 -04:00
John Chilton 79fd5915c3 More typing for repository_util. 2023-04-08 16:34:05 -04:00
John Chilton 42a29e04c5 Schema for by categories... 2023-04-08 16:34:05 -04:00
Nicola Soranzo c655360e4e Merge branch 'release_23.0' into dev 2023-04-05 12:39:43 +01:00
Nicola Soranzo bee3d2e7ac Merge branch 'release_22.05' into release_23.0 2023-04-03 16:31:48 +01:00
davelopez 682da9f24e Remove IDs from error messages
Simplifies encoding/decoding of IDs and prevents exposure issues
2023-03-31 12:35:00 +02:00