Commit Graph
99 Commits
Author SHA1 Message Date
John Davis 09fe7b9a54 Fix select stmts in scripts 2023-07-19 11:05:55 -04:00
John Davis 9ddaaf8d06 Wrap session.flush in tool_shed/* scripts 2023-06-09 13:05:26 -04:00
Nicola Soranzo c3139f246d Fix UP031 errors reported by ruff 2023-03-29 08:55:54 +01:00
John Davis e08e1aaa9f Drop tool shed bootstrapping scripts and references to them 2023-02-08 00:33:48 -05:00
Nicola Soranzo 14b1730eb2 Combine "as" imports with other "from" imports 2022-06-20 20:06:30 +01:00
John Chilton 4e01cfe3eb Merge pull request #13562 from ic4f/dev_sa20_3
Misc. SQLAlchemy 2.0 upgrades
2022-03-20 18:37:17 -04:00
Nicola Soranzo 00f7522e7e Merge branch 'release_22.01' into dev 2022-03-19 01:57:33 +00:00
mvdbeek 4c7bfd1032 Fix tool shed bootstrapping script 2022-03-17 19:34:43 +01:00
Sergey Golitsynskiy 09be05082f Wrap sql stmt in text() (tool_shed, exluding migrate/versions) 2022-03-17 12:41:47 -04:00
Sergey Golitsynskiy 3c992a608f Add create/migrate scripts for Alembic dbs (squashed)
Also add exec permissions to create/migrate python scripts.
(not sure this is required, adding for consistency with previous
version)

+ A few fixes for TS scripts, tests

Squashed:
- pick b62443245e Add create/migrate scripts for Alembic dbs
- squash 06f0a923ca Fix integration test (test only relevant for TS)
2022-03-09 18:41:02 -05:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
mvdbeek bab12662a9 Drop old sqlalchemy patterns 2021-12-16 12:30:49 +01:00
Nicola Soranzo 9d74bba7fb Drop support for retired Python 3.5
Upgrade syntax using `pyupgrade --py36-plus` .

Manually drop several `six` imports.

Also:
- Remove broken pr_cache in scripts/bootstrap_history.py
- Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
2020-10-07 11:52:13 +01:00
Nicola Soranzo 089e11ce65 Small refactor to `validate_password()`. Add back deleted line
Follow-up on https://github.com/galaxyproject/galaxy/pull/9587
2020-06-04 18:52:59 +01:00
Marius van den Beek 0fe6be60ea Merge pull request #9587 from nuwang/set_password_if_null
[20.05] Assign random password in user manager if none specified
2020-06-02 12:04:50 +02:00
Nuwan Goonasekera c9f29aa888 Refactor toolshed password validation 2020-05-25 23:39:52 +05:30
mvdbeek a36b4486bf Merge branch 'release_20.01' into dev 2020-03-26 10:51:46 +01:00
mvdbeek 7105de2fb0 Fix import order 2020-03-21 13:27:53 +01:00
mvdbeek 159a94b95d Move index logic to lib.tool_shed.util.shed_index
Since we need the index for browsing repos in the new client
we should incrementally build the index with every repo update.
Having this in tool_shed will make re-use easier.
2020-03-21 13:27:53 +01:00
mvdbeek afce65249f Implement incremental indexing 2020-03-21 13:27:53 +01:00
mvdbeek 2bb2f0989f Make build_ts_whoosh_index.py py3 compatible 2020-03-21 13:27:53 +01:00
Nicola Soranzo f5cd88465e Make str.join()s more efficient
by using generator expressions and tuples instead of lists.
2020-01-23 11:06:32 +00:00
Nicola Soranzo 2fcbe0afa3 changectx() method was dropped in mercurial 4.6
in favour of `__getitem__()`.
2019-12-05 18:31:26 +00:00
Martin Cech 5a18a486bd when building ts index log parse errors as debug level 2019-11-22 17:27:07 -05:00
Nicola Soranzo 72186b40a1 Merge branch 'release_19.09' into dev 2019-11-19 23:30:02 +01:00
Martin CechandMarius van den Beek fc8b832888 Apply suggestions from code review @mvdbeek
Co-Authored-By: Marius van den Beek <m.vandenbeek@gmail.com>
2019-11-19 09:32:15 -05:00
Martin Cech 0c075f73b4 set logging level according to the argument
also report the run summary as 'info' level
2019-11-18 12:05:02 -05:00
Martin Cech 5c495d6514 refactor logging 2019-11-18 11:25:47 -05:00
Martin Cech 19c56c725b add exec timer 2019-11-18 09:56:15 -05:00
Martin Cech c9d9009299 refactor and modernize toolshed search indexes build script
mainly so it can read yml config
2019-11-14 18:07:06 -05:00
John Chilton 559b664b07 Refactor tool_shed webapp out of Galaxy. 2019-11-11 12:32:19 -05:00
Martin Cech a48c7420d7 Merge pull request #8956 from jmchilton/remove_ts_api
Remove tool shed API examples.
2019-11-11 10:41:22 -05:00
Nicola Soranzo 6b1bacc2b8 Merge pull request #8957 from jmchilton/remove_legacy_shed
Remove script for migrating tools to the tool shed...
2019-11-11 10:54:27 +00:00
John Chilton d4196b61a4 Remove tool shed API examples.
These aren't tested, bioblend likely has better documentation (https://bioblend.readthedocs.io/en/latest/api_docs/toolshed/all.html), and we should be encouraging TS interactions to be done through Planemo and not raw API calls.

Excluding scripts used by bootstrap.
2019-11-11 02:55:26 -05:00
John Chilton a27beb0fd8 Remove script for migrating tools to the tool shed...
from an older tool shed? I completely forgot there even was an older tool shed.
2019-11-11 02:50:12 -05:00
John Chilton fbe21f94bf Remove tool dependency scripts. 2019-11-11 02:35:31 -05:00
Nicola Soranzo 85f7f91206 Fix script shebangs
Improve tools.
2019-10-26 20:20:01 +01:00
John Chilton 4287bb787f Merge pull request #8621 from martenson/ux-ts-installer
[19.09] allow the TS search API to bypass wildcard search
2019-09-12 13:35:01 -04:00
Martin Cech 99ec4ecf75 adjust indexing and searching of special keywords to be case-insensitive 2019-09-11 16:39:14 -04:00
Martin Cech 02a3342bd6 regenerate ts search indexes in tmp directory 2019-09-10 16:06:21 -04:00
Sergey Golitsynskiy 1694b79185 Update import paths for loader_directory 2019-07-06 00:52:45 +02:00
Nicola Soranzo 90a6c6d46b Fix issues reported by ShellCheck 2019-06-13 12:53:26 +01:00
Martin Cech d6a26e1ba5 enhance repository search API capabilities
* include categories as keywords for repository index
* allow filtering on category/owner using github-like wildards "category:name"
* only log metadtaa like matched terms, do not return in http response
* refactoring
2019-05-29 16:17:09 -04:00
Martin Cech fd82ec013b repo search - prefix hash with changeset number, stringify as list 2019-05-28 11:38:16 -04:00
Martin Cech 0706a7ea24 add repo lineage to search results, lower limit to 1 char 2019-05-24 16:05:15 -04:00
Martin Cech 93609f4e68 include repo changeset history in the search index
unicodify the lineage string
2019-05-24 16:05:09 -04:00
John Chilton 528497f7c4 Refactor galaxy.web.security into galaxy.security.idencoding.
I want to be able to use this class in galaxy.model and it doesn't have any dependnecies on "web" stuff so I'd like to move it out of galaxy.model and into galaxy.security. galaxy.model shouldn't have dependencies on galaxy.web (and doesn't after the recent 976f5ad367), so this pre-emptively ensures it doesn't require these dependencies for https://github.com/galaxyproject/galaxy/pull/7367.

This has the benefit of also eliminating any galaxy.web dependencies from the generic test base file (test/base/testcase.py) which has long been a goal of mine as well.

There are places we legimately use ID encoding and decoding for security (i.e. job files API) but for the most part it doesn't provide security for API endpoints and this causes confusion repeatedly, so I've started the process of renaming the contained class SecurityHelper to something I feel makes it clearer this is just about encoding and decoding IDs.
2019-03-19 14:28:31 -04:00
Nicola Soranzo f4203ca051 Fix errors reported by flake8 3.6.0
Ignore W504.
2018-10-24 23:22:19 +01:00
Nicola Soranzo 949dcfdbc3 Do not log exceptions twice
`logging.exception()` already adds the the exception information after
the supplied message.

Also: the `message` attribute of `Exception` class has been dropped in
Python 3, always use `str(e)`.

xref. https://github.com/galaxyproject/galaxy/issues/1715
2018-10-24 12:57:05 +01:00
Nate Coraor 44c291bc66 Merge remote-tracking branch 'origin/dev' into ini_to_yaml_config 2018-01-18 12:30:05 -05:00