Commit Graph

131 Commits

Author SHA1 Message Date
Erik Vroon
25a9df2f36 Use asyncpg for updating tournaments (#523)
fix https://github.com/evroon/bracket/issues/514
2024-02-24 13:32:02 +01:00
Erik Vroon
873953daf0 Stamp alembic head when recreating tables (#521)
fix https://github.com/evroon/bracket/issues/520

After initializing the database, we don't want/need to run any
migrations, so we just tell alembic we're on the latest revision.
2024-02-24 12:28:28 +01:00
Erik Vroon
d016e50537 Check foreign keys belong to tournament (#516)
Handles a security vulnerability where it's possible to link to columns
of other tournaments, such as add players from another tournament to a
team
2024-02-23 21:11:13 +01:00
Erik Vroon
b395d148f0 Add newtypes for primary keys (#512)
Adds type safety
2024-02-23 20:41:55 +01:00
robigan
fa813c6cec Add user registration to cli (#501)
This PR adds a custom function to be able to add users from the CLI.
This is a bare-bones modification to cli.py that works, and I've semi
tested (against a production environment lol). I am opening this PR as
an RFC.
2024-02-21 19:05:02 +01:00
Erik Vroon
0754964c7a Set random scores for dummy matches (#500) 2024-02-21 08:54:05 +01:00
dependabot[bot]
71483cf90e Update pytest requirement from <=8.0.0 to <=8.0.1 in /backend (#493)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>8.0.1</h2>
<h1>pytest 8.0.1 (2024-02-16)</h1>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11875">#11875</a>:
Correctly handle errors from
<code>getpass.getuser</code>{.interpreted-text role=&quot;func&quot;} in
Python 3.13.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11879">#11879</a>:
Fix an edge case where <code>ExceptionInfo._stringify_exception</code>
could crash <code>pytest.raises</code>{.interpreted-text
role=&quot;func&quot;}.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11906">#11906</a>:
Fix regression with <code>pytest.warns</code>{.interpreted-text
role=&quot;func&quot;} using custom warning subclasses which have more
than one parameter in their [__init__]{.title-ref}.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11907">#11907</a>:
Fix a regression in pytest 8.0.0 whereby calling
<code>pytest.skip</code>{.interpreted-text role=&quot;func&quot;} and
similar control-flow exceptions within a
<code>pytest.warns()</code>{.interpreted-text role=&quot;func&quot;}
block would get suppressed instead of propagating.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11929">#11929</a>:
Fix a regression in pytest 8.0.0 whereby autouse fixtures defined in a
module get ignored by the doctests in the module.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11937">#11937</a>:
Fix a regression in pytest 8.0.0 whereby items would be collected in
reverse order in some circumstances.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="d7d320a15a"><code>d7d320a</code></a>
Prepare release version 8.0.1</li>
<li><a
href="93699166dc"><code>9369916</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11992">#11992</a>
from bluetech/backport-11991</li>
<li><a
href="a232abd56c"><code>a232abd</code></a>
[8.0.x] recwarn: fix pytest.warns handling of Warnings with multiple
arguments</li>
<li><a
href="92203d2b78"><code>92203d2</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11990">#11990</a>
from bluetech/backport-11920</li>
<li><a
href="f1aa9226ac"><code>f1aa922</code></a>
[8.0.x] recwarn: let base exceptions propagate through
<code>pytest.warns</code> again</li>
<li><a
href="d86d081563"><code>d86d081</code></a>
[8.0.x] Added <code>logot</code> to the plugin list (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11977">#11977</a>)</li>
<li><a
href="c554c3d200"><code>c554c3d</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11968">#11968</a>
from pytest-dev/backport-11957-to-8.0.x</li>
<li><a
href="a6851e3459"><code>a6851e3</code></a>
[8.0.x] main: fix reversed collection order in Session</li>
<li><a
href="e6f6be3bc9"><code>e6f6be3</code></a>
[8.0.x] Improve error message when using <a
href="https://github.com/pytest"><code>@​pytest</code></a>.fixture twice
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11958">#11958</a>)</li>
<li><a
href="23b91d12de"><code>23b91d1</code></a>
[8.0.x] Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11941">#11941</a>
from bluetech/doctest-parsefactories (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11948">#11948</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.0.1">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>
2024-02-19 10:21:24 +01:00
Erik Vroon
1c7ba768ca Add description to API docs (#489) 2024-02-18 16:56:10 +01:00
Erik Vroon
880d212ce9 Use uuids for logos (#488)
Otherwise uploads can replace current files with the same name.
Also fixes and adds more tests for logo uploads.
2024-02-18 11:24:35 +01:00
Erik Vroon
41c664ed56 Fix dashboard link unique bug (#487)
The frontend will send `"dashboard_link": ""` (empty string) but it
should be converted to `None` instead. Otherwise tournaments quickly
have non-unique endpoints.
2024-02-17 19:40:39 +01:00
Erik Vroon
0c0d99f8fe Write files async (non-blocking) (#485)
Also remove unused files and reload image in frontend when uploading a
new image.
2024-02-17 18:20:01 +01:00
Erik Vroon
7666e3a22b Handle foreign key constraint errors (#483) 2024-02-17 14:03:32 +01:00
Erik Vroon
31537a6f99 Add sort params to endpoints (#482)
Fixes a bug with pagination where only results of the currently shown
page are sorted, not all results are sorted and then limited to 25
items.
2024-02-17 13:20:54 +01:00
dependabot[bot]
f465812e15 Update pluggy requirement from <=1.3.0 to <=1.4.0 in /backend (#468)
Updates the requirements on
[pluggy](https://github.com/pytest-dev/pluggy) to permit the latest
version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pluggy/blob/main/CHANGELOG.rst">pluggy's
changelog</a>.</em></p>
<blockquote>
<h1>pluggy 1.4.0 (2024-01-24)</h1>
<h2>Features</h2>
<ul>
<li>
<p><code>[#463](https://github.com/pytest-dev/pluggy/issues/463)
&lt;https://github.com/pytest-dev/pluggy/issues/463&gt;</code>_: A
warning :class:<code>~pluggy.PluggyTeardownRaisedWarning</code> is now
issued when an old-style hookwrapper raises an exception during
teardown.
See the warning documentation for more details.</p>
</li>
<li>
<p><code>[#471](https://github.com/pytest-dev/pluggy/issues/471)
&lt;https://github.com/pytest-dev/pluggy/issues/471&gt;</code>_: Add
:func:<code>PluginManager.unblock
&lt;pluggy.PluginManager.unblock&gt;</code> method to unblock a plugin
by plugin name.</p>
</li>
</ul>
<h2>Bug Fixes</h2>
<ul>
<li>
<p><code>[#441](https://github.com/pytest-dev/pluggy/issues/441)
&lt;https://github.com/pytest-dev/pluggy/issues/441&gt;</code>_: Fix
:func:<code>~pluggy.HookCaller.call_extra()</code> extra methods getting
ordered before everything else in some circumstances. Regressed in
pluggy 1.1.0.</p>
</li>
<li>
<p><code>[#438](https://github.com/pytest-dev/pluggy/issues/438)
&lt;https://github.com/pytest-dev/pluggy/issues/438&gt;</code>_: Fix
plugins registering other plugins in a hook when the other plugins
implement the same hook itself. Regressed in pluggy 1.1.0.</p>
</li>
</ul>
<h1>pluggy 1.3.0 (2023-08-26)</h1>
<h2>Deprecations and Removals</h2>
<ul>
<li><code>[#426](https://github.com/pytest-dev/pluggy/issues/426)
&lt;https://github.com/pytest-dev/pluggy/issues/426&gt;</code>_: Python
3.7 is no longer supported.</li>
</ul>
<h2>Features</h2>
<ul>
<li>
<p><code>[#428](https://github.com/pytest-dev/pluggy/issues/428)
&lt;https://github.com/pytest-dev/pluggy/issues/428&gt;</code>_: Pluggy
now exposes its typings to static type checkers.</p>
<p>As part of this, the following changes are made:</p>
<ul>
<li>Renamed <code>_Result</code> to <code>Result</code>, and exported as
:class:<code>pluggy.Result</code>.</li>
<li>Renamed <code>_HookRelay</code> to <code>HookRelay</code>, and
exported as :class:<code>pluggy.HookRelay</code>.</li>
<li>Renamed <code>_HookCaller</code> to <code>HookCaller</code>, and
exported as :class:<code>pluggy.HookCaller</code>.</li>
<li>Exported <code>HookImpl</code> as
:class:<code>pluggy.HookImpl</code>.</li>
<li>Renamed <code>_HookImplOpts</code> to <code>HookimplOpts</code>, and
exported as :class:<code>pluggy.HookimplOpts</code>.</li>
<li>Renamed <code>_HookSpecOpts</code> to <code>HookspecOpts</code>, and
exported as :class:<code>pluggy.HookspecOpts</code>.</li>
<li>Some fields and classes are marked <code>Final</code> and
<code>@final</code>.</li>
<li>The :ref:<code>api-reference</code> is updated to clearly delineate
pluggy's public API.</li>
</ul>
<p>Compatibility aliases are put in place for the renamed types.
We do not plan to remove the aliases, but we strongly recommend to only
import from <code>pluggy.*</code> to ensure future compatibility.</p>
<p>Please note that pluggy is currently unable to provide strong typing
for hook calls, e.g. <code>pm.hook.my_hook(...)</code>,
nor to statically check that a hook implementation matches the hook
specification's type.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="2efd28ef5d"><code>2efd28e</code></a>
Preparing release 1.4.0</li>
<li><a
href="ebeb2f2e78"><code>ebeb2f2</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/471">#471</a>
from bluetech/unblock</li>
<li><a
href="3a28b4d7a6"><code>3a28b4d</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/464">#464</a>
from bluetech/hookwrapper-teardown-warning</li>
<li><a
href="4331b7a164"><code>4331b7a</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/473">#473</a>
from bluetech/iterator-invalidation</li>
<li><a
href="7aef3e608f"><code>7aef3e6</code></a>
hooks: fix plugins registering other plugins in a hook</li>
<li><a
href="cc36605090"><code>cc36605</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pluggy/issues/472">#472</a>
from bluetech/call-extra-ordering-fix</li>
<li><a
href="443fee6d7a"><code>443fee6</code></a>
hooks: fix <code>call_extra</code> extra methods getting ordered before
everything else</li>
<li><a
href="4577b459a9"><code>4577b45</code></a>
hooks: add comment describing <code>_hookimpls</code>'s
format/invariants.</li>
<li><a
href="13b3661080"><code>13b3661</code></a>
Add <code>PluginManager.unblock</code> method to unblock a name</li>
<li><a
href="4b5b2d4ede"><code>4b5b2d4</code></a>
CHANGELOG: fix errors in 1.0.0 entry</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pluggy/compare/0.3.0...1.4.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>
2024-02-15 19:59:30 +01:00
dependabot[bot]
a8e484a35c Update pytest requirement from <=7.4.3 to <=8.0.0 in /backend (#469)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>pytest 8.0.0 (2024-01-27)</h2>
<p>See <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc1">8.0.0rc1</a>
and <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc2">8.0.0rc2</a>
for the full changes since pytest 7.4!</p>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11842">#11842</a>:
Properly escape the <code>reason</code> of a <code>skip
&lt;pytest.mark.skip ref&gt;</code>{.interpreted-text
role=&quot;ref&quot;} mark when writing JUnit XML files.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11861">#11861</a>:
Avoid microsecond exceeds <code>1_000_000</code> when using
<code>log-date-format</code> with <code>%f</code> specifier, which might
cause the test suite to crash.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="478f8233bc"><code>478f823</code></a>
Prepare release version 8.0.0</li>
<li><a
href="608590097a"><code>6085900</code></a>
[8.0.x] fix: avoid rounding microsecond to <code>1_000_000</code> (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11863">#11863</a>)</li>
<li><a
href="3b41c65c81"><code>3b41c65</code></a>
[8.0.x] Escape skip reason in junitxml (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11845">#11845</a>)</li>
<li><a
href="747072ad26"><code>747072a</code></a>
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11768">#11768</a>)</li>
<li><a
href="011a475baf"><code>011a475</code></a>
Properly attach packages to the GH release notes (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11839">#11839</a>)
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11840">#11840</a>)</li>
<li><a
href="97960bdd14"><code>97960bd</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11835">#11835</a>
from pytest-dev/release-8.0.0rc2</li>
<li><a
href="6be0a3cbf7"><code>6be0a3c</code></a>
Prepare release version 8.0.0rc2</li>
<li><a
href="44ffe07165"><code>44ffe07</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11837">#11837</a>
from pytest-dev/backport-11836-to-8.0.x</li>
<li><a
href="14ecb04973"><code>14ecb04</code></a>
[8.0.x] testing: temporarily disable test due to hypothesis issue</li>
<li><a
href="41c8dabee3"><code>41c8dab</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11831">#11831</a>
from bluetech/backport-11825-to-8.0.x</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/1.0.0b3...8.0.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>
2024-02-15 19:23:13 +01:00
dependabot[bot]
3050441ae8 Update databases requirement from <=0.7.0 to <=0.8.0 in /backend (#471)
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="d653b310e9"><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="9795187928"><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="25fa29515d"><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="c09542802a"><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="f3f0c6f0ba"><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="71ea4adfea"><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="ab5eb718a7"><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="b6eba5f7a1"><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="77d9b8aa7d"><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="6b0c767588"><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>
2024-02-15 19:22:37 +01:00
Erik Vroon
f4c8bcdd65 Improve ui when there is no content (#473)
Adds more skeletons, fixes user page, fixes bug in modal for stage item
creation, etc.
2024-02-13 18:57:41 +01:00
Erik Vroon
6a0b9538eb Raise 404 on tournament not found (#474) 2024-02-13 10:06:59 +01:00
Erik Vroon
f834fab2de Add pagination (#472)
Adds pagination (backend and frontend) to teams and players GET
endpoints
2024-02-12 19:08:50 +01:00
Erik Vroon
549243b1c3 Use fastapi routes for metrics (#467) 2024-02-11 17:56:02 +01:00
Erik Vroon
9479c92c97 Increase code coverage (#466)
Remove unused code and add some tests
Also fix detection of running pytest
2024-02-10 20:59:36 +01:00
Erik Vroon
f7d79eae70 Autorun alembics (#455)
Runs alembic migration automatically on fastapi startup.
Can be disabled using config setting.
2024-02-10 16:36:58 +01:00
Erik Vroon
14728a62bb Make dashboard endpoint unique (#454) 2024-02-10 16:15:27 +01:00
Erik Vroon
8ff8831e90 Fix invalid order of matches in schedule (#453)
Also use CI environment when running pytest
2024-02-09 17:28:02 +01:00
Erik Vroon
b42fce38ab Fix demo account deletion (#450)
Fixes error due to `._mapping` invalid return type
2024-02-09 16:52:14 +01:00
Erik Vroon
512166e86a Replace passlib by bcrypt (#452)
fixes https://github.com/evroon/bracket/issues/451

Old password hashes are still valid
2024-02-09 16:50:54 +01:00
Erik Vroon
61611066cd Pydantic v2 migration (#252)
Upgrade Pydantic to V2.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-09 11:51:14 +01:00
Erik Vroon
31818c374e Fix db initialisation (#427)
fixes https://github.com/evroon/bracket/issues/426
2024-02-04 11:52:18 +01:00
dependabot[bot]
54818446b8 Update pytest requirement from 7.4.4 to 8.0.0 in /backend (#417)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>pytest 8.0.0 (2024-01-27)</h2>
<p>See <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc1">8.0.0rc1</a>
and <a
href="https://github.com/pytest-dev/pytest/releases/tag/8.0.0rc2">8.0.0rc2</a>
for the full changes since pytest 7.4!</p>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11842">#11842</a>:
Properly escape the <code>reason</code> of a <code>skip
&lt;pytest.mark.skip ref&gt;</code>{.interpreted-text
role=&quot;ref&quot;} mark when writing JUnit XML files.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11861">#11861</a>:
Avoid microsecond exceeds <code>1_000_000</code> when using
<code>log-date-format</code> with <code>%f</code> specifier, which might
cause the test suite to crash.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="478f8233bc"><code>478f823</code></a>
Prepare release version 8.0.0</li>
<li><a
href="608590097a"><code>6085900</code></a>
[8.0.x] fix: avoid rounding microsecond to <code>1_000_000</code> (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11863">#11863</a>)</li>
<li><a
href="3b41c65c81"><code>3b41c65</code></a>
[8.0.x] Escape skip reason in junitxml (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11845">#11845</a>)</li>
<li><a
href="747072ad26"><code>747072a</code></a>
[8.0.x] Update docstring of scripts/generate-gh-release-notes.py (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11768">#11768</a>)</li>
<li><a
href="011a475baf"><code>011a475</code></a>
Properly attach packages to the GH release notes (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11839">#11839</a>)
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11840">#11840</a>)</li>
<li><a
href="97960bdd14"><code>97960bd</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11835">#11835</a>
from pytest-dev/release-8.0.0rc2</li>
<li><a
href="6be0a3cbf7"><code>6be0a3c</code></a>
Prepare release version 8.0.0rc2</li>
<li><a
href="44ffe07165"><code>44ffe07</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11837">#11837</a>
from pytest-dev/backport-11836-to-8.0.x</li>
<li><a
href="14ecb04973"><code>14ecb04</code></a>
[8.0.x] testing: temporarily disable test due to hypothesis issue</li>
<li><a
href="41c8dabee3"><code>41c8dab</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11831">#11831</a>
from bluetech/backport-11825-to-8.0.x</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/7.4.4...8.0.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>
2024-02-03 14:44:10 +01:00
dependabot[bot]
5f411f8dc0 Update bcrypt requirement from 4.0.1 to 4.1.2 in /backend (#398)
Updates the requirements on [bcrypt](https://github.com/pyca/bcrypt) to
permit the latest version.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/pyca/bcrypt/blob/main/release.py">bcrypt's
changelog</a>.</em></p>
<blockquote>
<h1>This file is dual licensed under the terms of the Apache License,
Version</h1>
<h1>2.0, and the BSD License. See the LICENSE file in the root of this
repository</h1>
<h1>for complete details.</h1>
<p>import getpass
import io
import json
import os
import subprocess
import time
import zipfile</p>
<p>import click
import requests</p>
<p>def run(*args, **kwargs):
print(f&quot;[running] {list(args)}&quot;)
subprocess.check_call(list(args), **kwargs)</p>
<p>def wait_for_build_complete_github_actions(session, token, run_url):
while True:
response = session.get(
run_url,
headers={
&quot;Content-Type&quot;: &quot;application/json&quot;,
&quot;Authorization&quot;: f&quot;token {token}&quot;,
},
)
response.raise_for_status()
if response.json()[&quot;conclusion&quot;] is not None:
break
time.sleep(3)</p>
<p>def download_artifacts_github_actions(session, token, run_url):
response = session.get(
run_url,
headers={
&quot;Content-Type&quot;: &quot;application/json&quot;,
&quot;Authorization&quot;: f&quot;token {token}&quot;,
},
)
response.raise_for_status()</p>
<pre><code>response = session.get(
    response.json()[&quot;artifacts_url&quot;],
    headers={
</code></pre>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b9223e61e2"><code>b9223e6</code></a>
Try building py39 wheels to see if that helps with reinitialization
errors (#...</li>
<li><a
href="5049783444"><code>5049783</code></a>
Bump syn from 2.0.40 to 2.0.41 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/696">#696</a>)</li>
<li><a
href="642d070972"><code>642d070</code></a>
Bump syn from 2.0.39 to 2.0.40 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/693">#693</a>)</li>
<li><a
href="8b44a1046a"><code>8b44a10</code></a>
Bump libc from 0.2.150 to 0.2.151 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/692">#692</a>)</li>
<li><a
href="951cc64d0c"><code>951cc64</code></a>
Bump once_cell from 1.18.0 to 1.19.0 in /src/_bcrypt (<a
href="https://redirect.github.com/pyca/bcrypt/issues/690">#690</a>)</li>
<li><a
href="7377c6db3a"><code>7377c6d</code></a>
Bump actions/setup-python from 4.8.0 to 5.0.0 (<a
href="https://redirect.github.com/pyca/bcrypt/issues/689">#689</a>)</li>
<li><a
href="61b32039d4"><code>61b3203</code></a>
Bump actions/setup-python from 4.7.1 to 4.8.0 (<a
href="https://redirect.github.com/pyca/bcrypt/issues/688">#688</a>)</li>
<li><a
href="1c3159a28a"><code>1c3159a</code></a>
Fixed wheels for older versions of macOS (<a
href="https://redirect.github.com/pyca/bcrypt/issues/687">#687</a>)</li>
<li><a
href="1a41437d3a"><code>1a41437</code></a>
Update README.rst (<a
href="https://redirect.github.com/pyca/bcrypt/issues/682">#682</a>)</li>
<li><a
href="7881c5beef"><code>7881c5b</code></a>
Fix building windows abi3 wheels (<a
href="https://redirect.github.com/pyca/bcrypt/issues/681">#681</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pyca/bcrypt/compare/4.0.1...4.1.2">compare
view</a></li>
</ul>
</details>
<br />


You can trigger a rebase of this PR 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>

> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-03 14:43:37 +01:00
Erik Vroon
9767ecfa6b Load correct config value 2024-02-03 14:37:44 +01:00
Erik Vroon
469316efd4 Use Ruff format instead of Black (#420) 2024-02-03 14:29:33 +01:00
Erik Vroon
5659cd7344 Add demo functionality (#413)
Lets users create a temporary demo account to test the tool
2024-02-03 14:18:57 +01:00
Erik Vroon
b49e54bcd4 Add missing aiohttp (#411) 2024-01-17 16:40:40 +01:00
Erik Vroon
b2a2dd1ea1 Implement hcaptcha (#410) 2024-01-17 16:31:38 +01:00
dependabot[bot]
93443f20bb Update pytest requirement from 7.4.3 to 7.4.4 in /backend (#402)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>pytest 7.4.4 (2023-12-31)</h2>
<h2>Bug Fixes</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11140">#11140</a>:
Fix non-string constants at the top of file being detected as docstrings
on Python&gt;=3.8.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11572">#11572</a>:
Handle an edge case where <code>sys.stderr</code>{.interpreted-text
role=&quot;data&quot;} and <code>sys.__stderr__</code>{.interpreted-text
role=&quot;data&quot;} might already be closed when
<code>faulthandler</code>{.interpreted-text role=&quot;ref&quot;} is
tearing down.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11710">#11710</a>:
Fixed tracebacks from collection errors not getting pruned.</li>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/7966">#7966</a>:
Removed unhelpful error message from assertion rewrite mechanism when
exceptions are raised in <code>__iter__</code> methods. Now they are
treated un-iterable instead.</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11091">#11091</a>:
Updated documentation to refer to hyphenated options: replaced
<code>--junitxml</code> with <code>--junit-xml</code> and
<code>--collectonly</code> with <code>--collect-only</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="33f694f4b3"><code>33f694f</code></a>
Prepare release version 7.4.4</li>
<li><a
href="76c107c463"><code>76c107c</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11751">#11751</a>
from bluetech/backport-11143-to-7.4.x</li>
<li><a
href="531d76daa4"><code>531d76d</code></a>
[7.4.x] Improve reporting from <strong>iter</strong> exceptions (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11749">#11749</a>)</li>
<li><a
href="a0f58fa9e7"><code>a0f58fa</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11143">#11143</a>
from tushar-deepsource/patch-1</li>
<li><a
href="b1f3387d42"><code>b1f3387</code></a>
[7.4.x] <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11091">#11091</a>:
documentation should use hypthonated properties (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11750">#11750</a>)</li>
<li><a
href="2cdd619bf4"><code>2cdd619</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11747">#11747</a>
from pytest-dev/backport-11711-to-7.4.x</li>
<li><a
href="d06c05bd23"><code>d06c05b</code></a>
[7.4.x] nodes: fix tracebacks from collection errors are not getting
pruned</li>
<li><a
href="5582bfcddf"><code>5582bfc</code></a>
[7.4.x] Improves clarity in Sphinx documentation for function signature.
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11">#11</a>...</li>
<li><a
href="13024efd7a"><code>13024ef</code></a>
[7.4.x] Fix for operation on closed file in faulthandler teardown (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11631">#11631</a>)</li>
<li><a
href="a40dacf657"><code>a40dacf</code></a>
[7.4.x] XFAIL TestLocalPath.test_make_numbered_dir_multiprocess_safe (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11616">#11616</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/7.4.3...7.4.4">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>
2024-01-01 11:12:47 +01:00
Erik Vroon
271b289c01 Delete backend/asdkjahsd 2023-12-21 16:32:09 +01:00
Erik Vroon
1736e33d0a Make cors middleware disabled by default (#400)
In development, CORS isn't really useful to enable.
I added a warning in production if the `CORS_ORIGINS` env var is set to
`*` (the default).
2023-12-20 18:47:21 +01:00
Erik Vroon
8567f03a2e Fix bcrypt version (#397)
xref: https://github.com/evroon/bracket/issues/393
2023-12-19 19:47:34 +01:00
dependabot[bot]
9bf7162917 Update pytest requirement from 7.4.2 to 7.4.3 in /backend (#374)
Updates the requirements on
[pytest](https://github.com/pytest-dev/pytest) to permit the latest
version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/pytest-dev/pytest/releases">pytest's
releases</a>.</em></p>
<blockquote>
<h2>pytest 7.4.3 (2023-10-24)</h2>
<h2>Bug Fixes</h2>
<ul>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/10447">#10447</a>:
Markers are now considered in the reverse mro order to ensure base class
markers are considered first -- this resolves a regression.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11239">#11239</a>:
Fixed <code>:=</code> in asserts impacting unrelated test cases.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/pytest-dev/pytest/issues/11439">#11439</a>:
Handled an edge case where :data:<code>sys.stderr</code> might already
be closed when :ref:<code>faulthandler</code> is tearing down.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="2390610696"><code>2390610</code></a>
Tweak changelog.rst</li>
<li><a
href="a0714aa007"><code>a0714aa</code></a>
Prepare release version 7.4.3</li>
<li><a
href="44ad1c9811"><code>44ad1c9</code></a>
[7.4.x] fix <a
href="https://redirect.github.com/pytest-dev/pytest/issues/10447">#10447</a>
- consider marks in reverse mro order to give base classes...</li>
<li><a
href="5dc77253d4"><code>5dc7725</code></a>
[7.4.x] Ensure logging tests always cleanup after themselves (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11541">#11541</a>)</li>
<li><a
href="a517827318"><code>a517827</code></a>
[7.4.x] Configure ReadTheDocs to fail on warnings (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11540">#11540</a>)</li>
<li><a
href="21fe071d79"><code>21fe071</code></a>
[7.4.x] fix for ValueError raised in faulthandler teardown code (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11455">#11455</a>)</li>
<li><a
href="f8bb8572fe"><code>f8bb857</code></a>
Force terminal width when running tests (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11425">#11425</a>)
(<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11432">#11432</a>)</li>
<li><a
href="1944dc06d3"><code>1944dc0</code></a>
[7.4.x] Fix --import-mode=importlib when root contains
<code>__init__.py</code> file (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/1">#1</a>...</li>
<li><a
href="946634c84c"><code>946634c</code></a>
Merge pull request <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11419">#11419</a>
from nicoddemus/backport-11414-to-7.4.x</li>
<li><a
href="d849a3ed64"><code>d849a3e</code></a>
[7.4.x] fix: closes <a
href="https://redirect.github.com/pytest-dev/pytest/issues/11343">#11343</a>'s
[attr-defined] type errors (<a
href="https://redirect.github.com/pytest-dev/pytest/issues/11421">#11421</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/pytest-dev/pytest/compare/7.4.2...7.4.3">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>
2023-12-04 07:43:13 +01:00
Erik Vroon
b21840ee2d Add Prometheus metrics (#372) 2023-12-03 16:45:35 +01:00
Erik Vroon
ac53331590 Add statistics columns to teams (#365) 2023-12-02 12:12:53 +01:00
Erik Vroon
897aaf87fa Allow max 64 teams in stage item (#352) 2023-11-25 17:21:51 +01:00
Erik Vroon
b27c7ab065 Fix team body size (#349) 2023-11-25 17:07:22 +01:00
Erik Vroon
daf081b802 Small usability fixes (#350) 2023-11-25 17:06:45 +01:00
Erik Vroon
f13c91d30f Prefer teams who have played much less (#351) 2023-11-25 17:05:29 +01:00
Erik Vroon
051506a45b Drop unique constraint on players.name (#347) 2023-11-25 12:09:22 +01:00
Erik Vroon
b8cedd2a8e Implement autoscheduling with parameters (#348) 2023-11-25 12:08:54 +01:00
Erik Vroon
1c0eda7109 Persist scheduling settings in query params (#344) 2023-11-23 22:52:34 +01:00
Erik Vroon
a4c08c5119 Fix tournament creation (#343)
Some fields were missing in the form to create tournaments
2023-11-23 10:49:17 +01:00