KoalaBotUK / KoalaBot

🐨 All in one Discord bot for student societies & communities
https://KoalaBot.uk
MIT License
11 stars 8 forks source link

chore(deps): bump sqlalchemy from 1.4.37 to 2.0.4 #378

Open dependabot[bot] opened 1 year ago

dependabot[bot] commented 1 year ago

Bumps sqlalchemy from 1.4.37 to 2.0.4.

Release notes

Sourced from sqlalchemy's releases.

2.0.4

Released: February 17, 2023

orm

  • [orm] [usecase] The _orm.Session.refresh() method will now immediately load a relationship-bound attribute that is explicitly named within the _orm.Session.refresh.attribute_names collection even if it is currently linked to the "select" loader, which normally is a "lazy" loader that does not fire off during a refresh. The "lazy loader" strategy will now detect that the operation is specifically a user-initiated _orm.Session.refresh() operation which named this attribute explicitly, and will then call upon the "immediateload" strategy to actually emit SQL to load the attribute. This should be helpful in particular for some asyncio situations where the loading of an unloaded lazy-loaded attribute must be forced, without using the actual lazy-loading attribute pattern not supported in asyncio.

    References: #9298

  • [orm] [bug] [regression] Fixed regression introduced in version 2.0.2 due to #9217 where using DML RETURNING statements, as well as _sql.Select.from_statement() constructs as was "fixed" in #9217, in conjunction with ORM mapped classes that used expressions such as with _orm.column_property(), would lead to an internal error within Core where it would attempt to match the expression by name. The fix repairs the Core issue, and also adjusts the fix in #9217 to not take effect for the DML RETURNING use case, where it adds unnecessary overhead.

    References: #9273

  • [orm] [bug] Marked the internal EvaluatorCompiler module as private to the ORM, and renamed it to _EvaluatorCompiler. For users that may have been relying upon this, the name EvaluatorCompiler is still present, however this use is not supported and will be removed in a future release.

  • [orm] [use_case] To accommodate a change in column ordering used by ORM Declarative in SQLAlchemy 2.0, a new parameter _orm.mapped_column.sort_order has been added that can be used to control the order of the columns defined in the table by the ORM, for common use cases such as mixins with primary key columns that should appear first in tables. The change notes at change_9297 illustrate the default change in ordering behavior (which is part of all SQLAlchemy 2.0 releases) as well as use of the _orm.mapped_column.sort_order to control column ordering when using mixins and multiple classes (new in 2.0.4).

    References: #9297

... (truncated)

Commits


Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
codecov[bot] commented 1 year ago

Codecov Report

Merging #378 (4402d7b) into master (7f9c288) will decrease coverage by 0.06%. The diff coverage is 89.47%.

@@            Coverage Diff             @@
##           master     #378      +/-   ##
==========================================
- Coverage   86.74%   86.69%   -0.06%     
==========================================
  Files         111      111              
  Lines        8150     8154       +4     
==========================================
- Hits         7070     7069       -1     
- Misses       1080     1085       +5     
Flag Coverage Δ
unittests 86.69% <89.47%> (-0.06%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
koala/db.py 94.73% <80.00%> (-5.27%) :arrow_down:
tests/cogs/base/test_core.py 98.65% <100.00%> (ø)
tests/cogs/intro_cog/test_db.py 100.00% <100.00%> (ø)
tests/cogs/twitch_alert/test_db.py 100.00% <100.00%> (ø)
tests/test_koalabot.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

dependabot[bot] commented 1 year ago

A newer version of sqlalchemy exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.