Skip to content

Commit

Permalink
Update databases requirement from <=0.7.0 to <=0.8.0 in /backend (#471)
Browse files Browse the repository at this point in the history
Updates the requirements on
[databases](https://github.com/encode/databases) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/encode/databases/releases">databases's
releases</a>.</em></p>
<blockquote>
<h2>Version 0.8.0</h2>
<h3>Breaking</h3>
<p>This release improves isolation of connections and transactions
across concurrent tasks:</p>
<ul>
<li>Database connections are now task-local and are not inherited by
child tasks</li>
<li>The <code>@db.transaction</code> decorator uses the calling task's
connection</li>
<li>Each new task uses a new connection unless a connection is
explicitly provided</li>
</ul>
<p>These changes improve the consistency of behavior and fix bugs where
connections and transactions were not properly isolated such as: <a
href="https://redirect.github.com/encode/databases/issues/123">encode/databases#123</a>,
<a
href="https://redirect.github.com/encode/databases/issues/125">encode/databases#125</a>,
<a
href="https://redirect.github.com/encode/databases/issues/134">encode/databases#134</a>,
<a
href="https://redirect.github.com/encode/databases/issues/155">encode/databases#155</a>,
<a
href="https://redirect.github.com/encode/databases/issues/424">encode/databases#424</a>,
and <a
href="https://redirect.github.com/encode/databases/issues/452">encode/databases#452</a>.</p>
<p>In most cases, these changes should not be breaking. However, if
using an open transaction across tasks, the active connection
(<code>db.connection()</code>) now needs to be explicitly passed to each
task. See the <a
href="https://www.encode.io/databases/connections_and_transactions/#transactions">new
documentation</a> for an example.</p>
<h3>Added</h3>
<ul>
<li>Allow SQLite query parameters and support cached databases (<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a><a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>)</li>
<li>Support for unix socket for aiomysql and asyncmy (<a
href="https://redirect.github.com/encode/databases/issues/551">#551</a><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>:
<a
href="https://redirect.github.com/encode/databases/pull/551">encode/databases#551</a>
<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a></p>
<h3>Changed</h3>
<ul>
<li>Improve isolation of connections and transactions during concurrent
usage (<a
href="https://redirect.github.com/encode/databases/issues/546">#546</a><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>)</li>
<li>Bump requests from 2.28.1 to 2.31.0 (<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a><a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>)
zanieb marked this conversation as resolved.</li>
<li>Bump starlette from 0.20.4 to 0.27.0 (<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a><a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>)</li>
<li>Bump up asyncmy version to fix <code>No module named
'asyncmy.connection'</code> (<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a><a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>)</li>
<li>Bump wheel from 0.37.1 to 0.38.1 (<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a><a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a>
<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>:
<a
href="https://redirect.github.com/encode/databases/pull/562">encode/databases#562</a>
<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>:
<a
href="https://redirect.github.com/encode/databases/pull/560">encode/databases#560</a>
<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>:
<a
href="https://redirect.github.com/encode/databases/pull/553">encode/databases#553</a>
<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>:
<a
href="https://redirect.github.com/encode/databases/pull/524">encode/databases#524</a></p>
<h3>Fixed</h3>
<ul>
<li>Fix the type-hints using more standard mode (<a
href="https://redirect.github.com/encode/databases/issues/526">#526</a><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>:
<a
href="https://redirect.github.com/encode/databases/pull/526">encode/databases#526</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/encode/databases/blob/master/CHANGELOG.md">databases's
changelog</a>.</em></p>
<blockquote>
<h2>0.8.0 (August 28th, 2023)</h2>
<h3>Added</h3>
<ul>
<li>Allow SQLite query parameters and support cached databases (<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a><a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>)</li>
<li>Support for unix socket for aiomysql and asyncmy (<a
href="https://redirect.github.com/encode/databases/issues/551">#551</a><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>:
<a
href="https://redirect.github.com/encode/databases/pull/551">encode/databases#551</a>
<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a></p>
<h3>Changed</h3>
<ul>
<li>Change isolation connections and transactions during concurrent
usage (<a
href="https://redirect.github.com/encode/databases/issues/546">#546</a><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>)</li>
<li>Bump requests from 2.28.1 to 2.31.0 (<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a><a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>)</li>
<li>Bump starlette from 0.20.4 to 0.27.0 (<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a><a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>)</li>
<li>Bump up asyncmy version to fix <code>No module named
'asyncmy.connection'</code> (<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a><a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>)</li>
<li>Bump wheel from 0.37.1 to 0.38.1 (<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a><a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>:
<a
href="https://redirect.github.com/encode/databases/pull/546">encode/databases#546</a>
<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>:
<a
href="https://redirect.github.com/encode/databases/pull/562">encode/databases#562</a>
<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>:
<a
href="https://redirect.github.com/encode/databases/pull/560">encode/databases#560</a>
<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>:
<a
href="https://redirect.github.com/encode/databases/pull/553">encode/databases#553</a>
<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>:
<a
href="https://redirect.github.com/encode/databases/pull/524">encode/databases#524</a></p>
<h3>Fixed</h3>
<ul>
<li>Fix the type-hints using more standard mode (<a
href="https://redirect.github.com/encode/databases/issues/526">#526</a><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>:
<a
href="https://redirect.github.com/encode/databases/pull/526">encode/databases#526</a></p>
<h2>0.7.0 (Dec 18th, 2022)</h2>
<h3>Fixed</h3>
<ul>
<li>Fixed breaking changes in SQLAlchemy cursor; supports
<code>&gt;=1.4.42,&lt;1.5</code> (<a
href="https://redirect.github.com/encode/databases/issues/513">#513</a><a
href="https://redirect.github.com/encode/databases/issues/513">#513</a>)</li>
<li>Wrapped types in <code>typing.Optional</code> where applicable (<a
href="https://redirect.github.com/encode/databases/issues/510">#510</a><a
href="https://redirect.github.com/encode/databases/issues/510">#510</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/513">#513</a>:
<a
href="https://redirect.github.com/encode/databases/pull/513">encode/databases#513</a>
<a
href="https://redirect.github.com/encode/databases/issues/510">#510</a>:
<a
href="https://redirect.github.com/encode/databases/pull/510">encode/databases#510</a></p>
<h2>0.6.2 (Nov 7th, 2022)</h2>
<h3>Changed</h3>
<ul>
<li>Pinned SQLAlchemy <code>&lt;=1.4.41</code> to avoid breaking changes
(<a
href="https://redirect.github.com/encode/databases/issues/520">#520</a><a
href="https://redirect.github.com/encode/databases/issues/520">#520</a>)</li>
</ul>
<p><a
href="https://redirect.github.com/encode/databases/issues/520">#520</a>:
<a
href="https://redirect.github.com/encode/databases/pull/520">encode/databases#520</a></p>
<h2>0.6.1 (Aug 9th, 2022)</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/encode/databases/commit/d653b310e9ebb6b037f4e5922b334e68db27f48f"><code>d653b31</code></a>
chore: release 0.8.0 prep (<a
href="https://redirect.github.com/encode/databases/issues/565">#565</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/9795187928083bb2cdf119284160c649e80ca27b"><code>9795187</code></a>
Allow SQLite query parameters and support cached databases (<a
href="https://redirect.github.com/encode/databases/issues/561">#561</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/25fa29515d4b6387db482734c564152a1034fbe6"><code>25fa295</code></a>
fix: incorrect concurrent usage of connection and transaction (<a
href="https://redirect.github.com/encode/databases/issues/546">#546</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/c09542802afdb1e4fbdde9803a136e9254461e5d"><code>c095428</code></a>
Bump requests from 2.28.1 to 2.31.0 (<a
href="https://redirect.github.com/encode/databases/issues/562">#562</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/f3f0c6f0ba1b2af7d1716d5786d584410c745ed3"><code>f3f0c6f</code></a>
Bump starlette from 0.20.4 to 0.27.0 (<a
href="https://redirect.github.com/encode/databases/issues/560">#560</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/71ea4adfeafc397e0fa54067c012edcbc5a62f7a"><code>71ea4ad</code></a>
Support for unix socket for aiomysql and asyncmy (<a
href="https://redirect.github.com/encode/databases/issues/551">#551</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/ab5eb718a78a27afe18775754e9c0fa2ad9cd211"><code>ab5eb71</code></a>
Bump up asyncmy version to fix <code>No module named
'asyncmy.connection'</code> (<a
href="https://redirect.github.com/encode/databases/issues/553">#553</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/b6eba5f7a19eaf8966e3821f44fe00f4770cb822"><code>b6eba5f</code></a>
Bump wheel from 0.37.1 to 0.38.1 (<a
href="https://redirect.github.com/encode/databases/issues/524">#524</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/77d9b8aa7dc3871133b02adf0c498c583b89a6fd"><code>77d9b8a</code></a>
Fix the type-hints using more standard mode (<a
href="https://redirect.github.com/encode/databases/issues/526">#526</a>)</li>
<li><a
href="https://github.com/encode/databases/commit/6b0c767588f501d5edaabb1bdf665fcf1ded88ea"><code>6b0c767</code></a>
Version 0.7.0 (<a
href="https://redirect.github.com/encode/databases/issues/522">#522</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/encode/databases/compare/0.1.0...0.8.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Feb 15, 2024
1 parent 85f8583 commit 3050441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ aiopg = ">=1.4.0"
alembic = ">=1.13.1"
bcrypt = "4.1.2"
click = ">=8.1.3"
databases = {extras = ["asyncpg"], version = "<=0.7.0"}
databases = {extras = ["asyncpg"], version = "<=0.8.0"}
fastapi = ">=0.88.0"
fastapi-cache2 = ">=0.2.0"
fastapi-sso = ">=0.6.4"
Expand Down

0 comments on commit 3050441

Please sign in to comment.