Commit Graph
15 Commits
Author SHA1 Message Date
Nicola Soranzo e975ca3754 Update to black 2024 stable style 2024-01-30 18:09:51 +00:00
John Davis 475f7227c4 Add future=True flag to SA engine 2023-12-12 09:54:08 -05:00
John Davis fc0a266bdb Merge pull request #16932 from jdavcs/dev_sa20_fix21
SQLAlchemy 2.0 upgrades (part 5)
2023-11-29 09:55:24 -05:00
John Davis fa5adb0f52 SA2.0: Do not bind MetaData: must use engine explicitly 2023-11-27 18:30:16 -05:00
Michael R. Crusoe df807e6d17 Use the walrus := operator!
Fixed by running:

```
ack --type=python -f | grep -v '^lib/galaxy/schema/bco/\|^lib/galaxy/schema/drs/\|^tools/\|^.venv/\|^.tox/' | grep -v '^lib/galaxy/files/sources/\|^lib/galaxy/job_metrics/\|^lib/galaxy/objectstore/\|^lib/galaxy/tool_util/\|^lib/galaxy/util/' | xargs auto-walrus
make format
```

Note that the directories for the packages listed in
`packages/packages_for_pulsar_by_dep_dag.txt`
were explictly excluded.
2023-11-26 18:34:10 +00:00
Sergey Golitsynskiy ee5a3450bb Update db index testing: test both models, gxy and tsi
Also, remove unused env var
2022-03-09 18:41:03 -05:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
Nicola Soranzo 90a729e431 New pyupgrade fixes
Found by running `ack --type=python -f | grep -v '^tools/' | xargs pyupgrade --py36-plus`
2021-10-24 12:10:34 +01:00
Sergey Golitsynskiy 3cd1c7f1c7 Handle DedupedColumnCollection in db_indexes
This should fix the `scripts/check_model.py` script and the database
indexes github workflow.

Accessing index columns has changed: index.columns gives access to a
DedupedColumnCollection instead of a ColumnCollection.
Columns can be accessed by key; keys are accessed via keys() attr.

Ref:
https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#select-objects-and-derived-from-clauses-allow-for-duplicate-columns-and-column-labels
https://docs.sqlalchemy.org/en/14/core/sqlelement.html?highlight=dedupecolumncollection#sqlalchemy.sql.expression.ColumnCollection
2021-05-18 19:00:55 -04:00
Sergey GolitsynskiyandMarius van den Beek 574fa4cb1f Let get_config() handle env override
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
2020-10-04 23:25:23 -04:00
Sergey Golitsynskiy f27b4e50f6 Add github workflow; env var to override db uri 2020-10-03 02:26:40 -04:00
Sergey Golitsynskiy 20c7cdb2cb Rename missing_index > index_tuple 2020-10-03 02:26:40 -04:00
Sergey GolitsynskiyandNicola Soranzo b9093e33da Update scripts/check_model.py
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
2020-10-03 02:26:40 -04:00
Sergey GolitsynskiyandNicola Soranzo 7719f53bca Update scripts/check_model.py
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
2020-10-03 02:26:40 -04:00
Sergey Golitsynskiy 2dbfdce295 Add script + wrapper 2020-10-03 02:26:40 -04:00