Commit Graph

94 Commits

Author SHA1 Message Date
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
Erik Vroon
4b3dfb9b20 Implement custom time per match (#337) 2023-11-21 21:11:25 +01:00
Erik Vroon
4e616d8d97 Multi users and teams creation (#342)
fixes https://github.com/evroon/bracket/issues/292
2023-11-21 20:07:35 +01:00
Erik Vroon
00cac360eb Improve swiss scheduling (#336) 2023-11-19 11:54:08 +01:00
Erik Vroon
1228c7dbeb Cleanup unnecessary scheduling code (#333) 2023-11-18 12:24:13 +01:00
Erik Vroon
19ab03f9d9 Add segmented control to filter matches (#332) 2023-11-11 17:23:42 +01:00
Erik Vroon
0698c9f831 Test activate next stage (#331) 2023-11-11 13:57:57 +01:00
Erik Vroon
91d40b8e91 Add tests for scheduling logic (#329) 2023-11-11 12:57:06 +01:00
Erik Vroon
664b13b0db Fix swiss scheduling (#328) 2023-11-11 10:59:52 +01:00
Erik Vroon
d77dd1432b Fix update of match start times (#322) 2023-11-08 16:28:36 +01:00
Erik Vroon
28fd9dc61d Show start time in matches (#319) 2023-11-07 21:03:32 +01:00
Erik Vroon
3dceda218a Time scheduling (#315) 2023-11-07 19:51:46 +01:00
Erik Vroon
145d5787e1 Implement scheduling for elimination stage items (#314) 2023-11-05 15:22:24 +01:00
Erik Vroon
ab86f7ea77 Add schedule builder (#267) 2023-11-02 20:34:49 +01:00
Erik Vroon
894f99c34a Extend dashboard pages (#289) 2023-10-11 19:15:16 +02:00
Erik Vroon
64ed11c62e Add vulture to precommit and fix backend workflow (#297) 2023-10-07 17:31:23 +02:00
Erik Vroon
e67b8ec0fa Add vulture check (#296) 2023-10-07 17:23:33 +02:00
Erik Vroon
f4d7aae2ea Add ruff check (#294) 2023-10-07 17:02:05 +02:00
Erik Vroon
6c741fd821 Dashboard endpoint (#285) 2023-10-01 11:19:56 +02:00
Erik Vroon
33a1910142 Various bugfixes (#266) 2023-09-14 16:33:00 +02:00
Erik Vroon
d1484a0bb3 Add behavior to go to next stage (#265) 2023-09-14 11:51:05 +02:00
Erik Vroon
bb5a659670 Insert dummy players in teams (#263) 2023-09-13 11:03:12 +02:00
Erik Vroon
2125466e3a Add docker compose config (#208) 2023-09-12 21:37:48 +02:00
Erik Vroon
aaca527647 Add courts functionality (#256) 2023-09-12 13:33:20 +02:00
Erik Vroon
c6aaf67329 Backend bugfixes and frontend fixes (#251) 2023-09-10 14:43:51 +02:00
Erik Vroon
f59c6f6965 Implement stage type specific round scheduling (#226) 2023-09-10 11:51:45 +02:00
Erik Vroon
17dc9e306d Use pydantic v1 (#239) 2023-08-05 16:07:27 +02:00
Erik Vroon
d0cacc1130 Update mypy requirement (#235) 2023-07-02 10:13:09 +02:00
dependabot[bot]
9cc135ce69 Update mypy requirement from 1.4.0 to 1.4.1 in /backend (#234)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-01 10:41:34 +02:00
dependabot[bot]
3bf9863a70 Update mypy requirement from 1.3.0 to 1.4.0 in /backend (#233)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-21 08:57:33 +02:00
Erik Vroon
e0b44365f5 Fix config for prod and demo (#225) 2023-05-20 19:55:00 +02:00
Erik Vroon
7d706ddca8 Disable user creation while in beta (#222) 2023-05-19 20:35:21 +02:00
Erik Vroon
9a76f0176a Fix dummy insertions in create-dev-db cmd (#221) 2023-05-19 19:51:16 +02:00
Erik Vroon
47f3815ce6 Fix rounds dependency and disallow deletion of active stages (#218) 2023-05-19 16:48:48 +02:00
Erik Vroon
e4c8d716f0 Add stages modal (#217) 2023-05-19 15:44:14 +02:00
Erik Vroon
50d868358a Select active stage by default (#215) 2023-05-19 12:52:49 +02:00
dependabot[bot]
367485e44e Update mypy requirement from 1.2.1 to 1.3.0 in /backend (#211)
Updates the requirements on [mypy](https://github.com/python/mypy) to
permit the latest version.
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/python/mypy/commits/v1.3.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 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-05-11 09:03:28 +02:00
Erik Vroon
a24766c210 Display stage name and select active stage by default (#210) 2023-05-09 21:31:27 +02:00