renovate[bot]
609b4e7a03
chore(deps): lock file maintenance (legacy/composer.json)
2024-06-25 09:45:08 +00:00
libretime-bot
e5aceef71a
chore(legacy): update locales
2024-06-24 02:01:54 +00:00
Jonas L
63572fdab9
docs: add missing v4.2.0 release note ( #3044 )
...
Forgot to prepare the release note for v4.2.0.
2024-06-22 22:58:15 +02:00
libretime-bot
60db15e8e5
chore(main): release 4.2.0 ( #3028 )
...
🤖 I have created a release *beep* *boop*
---
## [4.2.0](https://github.com/libretime/libretime/compare/4.1.0...4.2.0 )
(2024-06-22)
### Features
* **legacy:** add current date macro to string block criteria
([#3013 ](https://github.com/libretime/libretime/issues/3013 ))
([451652b
](451652bc40
))
* **legacy:** add filename block criteria
([#3015 ](https://github.com/libretime/libretime/issues/3015 ))
([4642b6c
](4642b6c08e
))
### Bug Fixes
* pin pip version to <24.1 to allow installing pytz (celery)
([#3043 ](https://github.com/libretime/libretime/issues/3043 ))
([646bc81
](646bc81724
))
* playlist allocates inaccurate time to smartblocks
([#3026 ](https://github.com/libretime/libretime/issues/3026 ))
([2b43e51
](2b43e51ed1
))
### Performance Improvements
* optimize the api image health check
([#3038 ](https://github.com/libretime/libretime/issues/3038 ))
([d99d6e1
](d99d6e1a68
))
* optimize the rabbitmq health check
([#3037 ](https://github.com/libretime/libretime/issues/3037 ))
([9684214
](9684214425
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
2024-06-22 18:16:49 +02:00
Cristian Oneț
9684214425
perf: optimize the rabbitmq health check ( #3037 )
...
### Description
Running `rabbitmq-diagnostics` every 30s is a resource intensive
operation wasting cpu cycles.
2024-06-22 18:10:55 +02:00
renovate[bot]
97b2f0e257
chore(deps): update dependency requests to >=2.32.2,<2.33 [security] ( #3032 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [requests](https://requests.readthedocs.io )
([source](https://togithub.com/psf/requests ),
[changelog](https://togithub.com/psf/requests/blob/master/HISTORY.md )) |
`>=2.31.0,<2.32` -> `>=2.32.2,<2.33` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
### GitHub Vulnerability Alerts
####
[CVE-2024-35195](https://togithub.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56 )
When making requests through a Requests `Session`, if the first request
is made with `verify=False` to disable cert verification, all subsequent
requests to the same origin will continue to ignore cert verification
regardless of changes to the value of `verify`. This behavior will
continue for the lifecycle of the connection in the connection pool.
### Remediation
Any of these options can be used to remediate the current issue, we
highly recommend upgrading as the preferred mitigation.
* Upgrade to `requests>=2.32.0`.
* For `requests<2.32.0`, avoid setting `verify=False` for the first
request to a host while using a Requests Session.
* For `requests<2.32.0`, call `close()` on `Session` objects to clear
existing connections if `verify=False` is used.
### Related Links
*
[https://github.com/psf/requests/pull/6655 ](https://togithub.com/psf/requests/pull/6655 )
---
### Release Notes
<details>
<summary>psf/requests (requests)</summary>
###
[`v2.32.2`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#2322-2024-05-21 )
[Compare
Source](https://togithub.com/psf/requests/compare/v2.32.1...v2.32.2 )
**Deprecations**
- To provide a more stable migration for custom HTTPAdapters impacted
by the CVE changes in 2.32.0, we've renamed `_get_connection` to
a new public API, `get_connection_with_tls_context`. Existing custom
HTTPAdapters will need to migrate their code to use this new API.
`get_connection` is considered deprecated in all versions of
Requests>=2.32.0.
A minimal (2-line) example has been provided in the linked PR to ease
migration, but we strongly urge users to evaluate if their custom
adapter
is subject to the same issue described in CVE-2024-35195.
([#​6710](https://togithub.com/psf/requests/issues/6710 ))
###
[`v2.32.1`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#2321-2024-05-20 )
[Compare
Source](https://togithub.com/psf/requests/compare/v2.32.0...v2.32.1 )
**Bugfixes**
- Add missing test certs to the sdist distributed on PyPI.
###
[`v2.32.0`](https://togithub.com/psf/requests/blob/HEAD/HISTORY.md#2320-2024-05-20 )
[Compare
Source](https://togithub.com/psf/requests/compare/v2.31.0...v2.32.0 )
**Security**
- Fixed an issue where setting `verify=False` on the first request from
a
Session will cause subsequent requests to the *same origin* to also
ignore
cert verification, regardless of the value of `verify`.
(https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56 )
**Improvements**
- `verify=True` now reuses a global SSLContext which should improve
request time variance between first and subsequent requests. It should
also minimize certificate load time on Windows systems when using a
Python
version built with OpenSSL 3.x.
([#​6667](https://togithub.com/psf/requests/issues/6667 ))
- Requests now supports optional use of character detection
(`chardet` or `charset_normalizer`) when repackaged or vendored.
This enables `pip` and other projects to minimize their vendoring
surface area. The `Response.text()` and `apparent_encoding` APIs
will default to `utf-8` if neither library is present.
([#​6702](https://togithub.com/psf/requests/issues/6702 ))
**Bugfixes**
- Fixed bug in length detection where emoji length was incorrectly
calculated in the request content-length.
([#​6589](https://togithub.com/psf/requests/issues/6589 ))
- Fixed deserialization bug in JSONDecodeError.
([#​6629](https://togithub.com/psf/requests/issues/6629 ))
- Fixed bug where an extra leading `/` (path separator) could lead
urllib3 to unnecessarily reparse the request URI.
([#​6644](https://togithub.com/psf/requests/issues/6644 ))
**Deprecations**
- Requests has officially added support for CPython 3.12
([#​6503](https://togithub.com/psf/requests/issues/6503 ))
- Requests has officially added support for PyPy 3.9 and 3.10
([#​6641](https://togithub.com/psf/requests/issues/6641 ))
- Requests has officially dropped support for CPython 3.7
([#​6642](https://togithub.com/psf/requests/issues/6642 ))
- Requests has officially dropped support for PyPy 3.7 and 3.8
([#​6641](https://togithub.com/psf/requests/issues/6641 ))
**Documentation**
- Various typo fixes and doc improvements.
**Packaging**
- Requests has started adopting some modern packaging practices.
The source files for the projects (formerly `requests`) is now located
in `src/requests` in the Requests sdist.
([#​6506](https://togithub.com/psf/requests/issues/6506 ))
- Starting in Requests 2.33.0, Requests will migrate to a PEP 517 build
system
using `hatchling`. This should not impact the average user, but
extremely old
versions of packaging utilities may have issues with the new packaging
format.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJweXRob24iXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-22 17:47:09 +02:00
Jonas L
646bc81724
fix: pin pip version to <24.1 to allow installing pytz (celery) ( #3043 )
...
Related to https://github.com/libretime/libretime/issues/2983
2024-06-22 17:35:30 +02:00
Jonas L
4e0953d513
refactor: remove non existent asset file ( #3042 )
...
The file is non existent.
Added in c669d3cb47
Removed in ea2a6b3f68
2024-06-22 17:18:16 +02:00
Jonas L
c96f78df9f
fix: pin pip version to <21.4 to allow installing pytz (celery) ( #3041 )
...
Related to https://github.com/libretime/libretime/issues/2983
2024-06-22 16:33:23 +02:00
Jonas L
6958070eec
test: ensure the context cleanup is executed ( #3040 )
...
See
https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/contextmanager-generator-missing-cleanup.html
2024-06-22 13:31:13 +02:00
Cristian Oneț
d99d6e1a68
perf: optimize the api image health check ( #3038 )
...
### Description
Having curl installed in the API container improves operations and the
efficiency of the health check. Launching python to do a single http
call is an overkill.
Co-authored-by: Jonas L <jooola@users.noreply.github.com>
2024-06-22 13:18:50 +02:00
dakriy
4642b6c08e
feat(legacy): add filename block criteria ( #3015 )
...
### Description
Adds filename block criteria because sometimes you just need the
filename and the ID3 tags won't do.
Closes #3014
2024-06-22 11:51:59 +02:00
renovate[bot]
7f3f318601
chore(deps): update dependency friendsofphp/php-cs-fixer to <3.59.4 ( #3030 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[friendsofphp/php-cs-fixer](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer )
| `<3.58.2` -> `<3.59.4` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>PHP-CS-Fixer/PHP-CS-Fixer (friendsofphp/php-cs-fixer)</summary>
###
[`v3.59.3`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3593 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.59.2...v3.59.3 )
- refactor: refactor to templated trait+interface
([#​7988](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7988 ))
###
[`v3.59.2`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3592 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.59.1...v3.59.2 )
- fix: "list" is reserved type
([#​8087](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8087 ))
- chore: add missing type in method prototype
([#​8088](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8088 ))
- CI: bump Ubuntu version
([#​8086](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8086 ))
- deps: bump infection to unblock PHPUnit 11, and few more as chore
([#​8083](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8083 ))
###
[`v3.59.1`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3591 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.59.0...v3.59.1 )
- fix: Bump React's JSON decoder buffer size
([#​8068](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8068 ))
- docs: options - handle enums in dicts
([#​8082](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8082 ))
###
[`v3.59.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3590 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.58.1...v3.59.0 )
- feat(Docker): Multi-arch build (support for `arm64`)
([#​8079](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8079 ))
- feat: `@PhpCsFixer` ruleset - normalise implicit backslashes in single
quoted strings
([#​7965](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7965 ))
- feat: `SimpleToComplexStringVariableFixer` - support variable being an
array
([#​8064](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8064 ))
- fix: Look up for PHPDoc's variable name by only chars allowed in the
variables
([#​8062](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8062 ))
- fix: Update `PhpUnitTestCaseStaticMethodCallsFixer::STATIC_METHODS`
([#​8073](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8073 ))
- fix: `native_constant_invocation` - array constants with native
constant names
([#​8008](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8008 ))
- chore: update PHPStan
([#​8060](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8060 ))
- CI: Update PHPStan to 1.11.4
([#​8074](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8074 ))
- docs: don't expose list as config type for dicts
([#​8081](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8081 ))
- docs: Make wording in `final_class` docs less dismissive
([#​8065](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8065 ))
- docs: Update 1-bug_report.yml
([#​8067](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8067 ))
- DX: Remove version from Docker Compose files
([#​8061](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8061 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJwaHAiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-22 11:45:50 +02:00
renovate[bot]
f12392e276
chore(deps): update dependency django-cors-headers to >=3.14.0,<4.5 ( #3036 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[django-cors-headers](https://togithub.com/adamchainz/django-cors-headers )
([changelog](https://togithub.com/adamchainz/django-cors-headers/blob/main/CHANGELOG.rst ))
| `>=3.14.0,<4.4` -> `>=3.14.0,<4.5` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>adamchainz/django-cors-headers (django-cors-headers)</summary>
###
[`v4.4.0`](https://togithub.com/adamchainz/django-cors-headers/blob/HEAD/CHANGELOG.rst#440-2024-06-19 )
[Compare
Source](https://togithub.com/adamchainz/django-cors-headers/compare/4.3.1...4.4.0 )
- Support Django 5.1.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJweXRob24iXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-22 11:45:37 +02:00
Jonas L
e5a8baafa8
chore: fix broken link check ( #3039 )
...
Only show organizations avatars.
2024-06-22 11:44:35 +02:00
dakriy
451652bc40
feat(legacy): add current date macro to string block criteria ( #3013 )
...
### Description
It is useful to be able to automatically filter tracks to a certain date
or day when scheduling tracks for playback. This adds the ability to do
just that in any string filter with the `date{format}` macro.
Closes: #3012
2024-06-22 11:19:21 +02:00
renovate[bot]
13a8e38beb
chore(deps): update docker/build-push-action action to v6
2024-06-19 14:52:05 +00:00
renovate[bot]
02cd85a845
chore(deps): update docker/bake-action action to v5
2024-06-19 14:51:31 +00:00
renovate[bot]
826aac1c05
chore(deps): lock file maintenance (legacy/composer.json) ( #3033 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Update | Change |
|---|---|
| lockFileMaintenance | All locks refreshed |
🔧 This Pull Request updates lock files to use the latest dependency
versions.
---
### Configuration
📅 **Schedule**: Branch creation - "after 4am and before 5am on monday"
(UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions ) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQxMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJwaHAiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-18 09:18:21 +01:00
libretime-bot
01253b31fc
chore(legacy): update locales
2024-06-10 02:02:19 +00:00
renovate[bot]
f09bae6856
chore(deps): update pre-commit hook asottile/pyupgrade to v3.16.0
2024-06-10 01:03:36 +00:00
renovate[bot]
5ed15f9722
chore(deps): update dependency friendsofphp/php-cs-fixer to <3.58.2 ( #3016 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[friendsofphp/php-cs-fixer](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer )
| `<3.56.2` -> `<3.58.2` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>PHP-CS-Fixer/PHP-CS-Fixer (friendsofphp/php-cs-fixer)</summary>
###
[`v3.58.1`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3581 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.58.0...v3.58.1 )
- fix: `ConstantCaseFixer` - do not change class constant usages
([#​8055](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8055 ))
- fix: `PhpUnitTestClassRequiresCoversFixer` - do not add annotation
when attribute with leading slash present
([#​8054](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8054 ))
###
[`v3.58.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3580 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.57.2...v3.58.0 )
- chore(doc): Use FQCN for parallel config in documentation
([#​8029](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8029 ))
- chore: fix typo in `PhpUnitTestClassRequiresCoversFixerTest`
([#​8047](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8047 ))
- chore: RandomApiMigrationFixer - do not modify configuration property
([#​8033](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8033 ))
- chore: Tokens::setCode - further improvements to cache
([#​8053](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8053 ))
- chore: update PHPStan
([#​8045](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8045 ))
- docs: Add missing imports in a cookbook about creating custom rules
([#​8031](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8031 ))
- docs: fix deprecated string interpolation style
([#​8036](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8036 ))
- docs: global_namespace_import - simplify allowed config types
([#​8023](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8023 ))
- feat(GroupImportFixer): Ability to configure which type of imports
should be grouped
([#​8046](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8046 ))
- fix: clear `Tokens::$blockStartCache` and `Tokens::$blockEndCache`
when calling `Tokens::setCode`
([#​8051](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8051 ))
- fix: correctly handle PHP closing tag with `simplified_null_return`
([#​8049](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8049 ))
- fix: `ConstantCaseFixer` - do not change namespace
([#​8004](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8004 ))
- fix: `PhpUnitAttributesFixer` - do not add attribute if already
present
([#​8043](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8043 ))
- fix: `PhpUnitSizeClassFixer` - do not add annotation when there are
attributes
([#​8044](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8044 ))
- fix: `PhpUnitTestClassRequiresCoversFixer` - attribute detection when
class is `readonly`
([#​8042](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8042 ))
###
[`v3.57.2`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3572 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.57.1...v3.57.2 )
- docs: better ConfigurableFixer allowed types
([#​8024](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8024 ))
- docs: Improve Docker usage example
([#​8021](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8021 ))
- feat: Report used memory to 2 decimal digits only
([#​8017](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8017 ))
- fix: Support named args in `ParallelConfigFactory::detect()`
([#​8026](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8026 ))
- fix: `php_unit_test_class_requires_covers` Attribute detection when
class is final
([#​8016](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8016 ))
###
[`v3.57.1`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3571 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.57.0...v3.57.1 )
- chore: update PHPDoc in `Preg::matchAll`
([#​8012](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8012 ))
- fix: Runner - handle no files while in parallel runner
([#​8015](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8015 ))
###
[`v3.57.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3570 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.56.2...v3.57.0 )
- feat: Ability to run Fixer with parallel runner 🎉
([#​7777](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7777 ))
###
[`v3.56.2`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3562 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.56.1...v3.56.2 )
- chore: update PHPStan
([#​8010](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8010 ))
- DX: Fix Mess Detector violations
([#​8007](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8007 ))
- DX: Install PCov extension for local Docker
([#​8006](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8006 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNjMuNSIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJwaHAiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-07 21:52:47 +02:00
renovate[bot]
23c7411996
chore(deps): update dependency uvicorn to >=0.17.6,<0.31.0 ( #3022 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [uvicorn](https://togithub.com/encode/uvicorn )
([changelog](https://togithub.com/encode/uvicorn/blob/master/CHANGELOG.md ))
| `>=0.17.6,<0.30.0` -> `>=0.17.6,<0.31.0` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>encode/uvicorn (uvicorn)</summary>
###
[`v0.30.0`](https://togithub.com/encode/uvicorn/blob/HEAD/CHANGELOG.md#0300-2024-05-28 )
[Compare
Source](https://togithub.com/encode/uvicorn/compare/0.29.0...0.30.0 )
##### Added
- New multiprocess manager
([#​2183](https://togithub.com/encode/uvicorn/issues/2183 ))
- Allow `ConfigParser` or a `io.IO[Any]` on `log_config`
([#​1976](https://togithub.com/encode/uvicorn/issues/1976 ))
##### Fixed
- Suppress side-effects of signal propagation
([#​2317](https://togithub.com/encode/uvicorn/issues/2317 ))
- Send `content-length` header on 5xx
([#​2304](https://togithub.com/encode/uvicorn/issues/2304 ))
##### Deprecated
- Deprecate the `uvicorn.workers` module
([#​2302](https://togithub.com/encode/uvicorn/issues/2302 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJweXRob24iXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-07 21:52:36 +02:00
Rob Hailman
2b43e51ed1
fix: playlist allocates inaccurate time to smartblocks ( #3026 )
...
### Description
In the existing logic of `retrieveMediaFiles`, the time remaining in
show is calculated incorrectly in some scenarios. Each time a duration
is subtracted from `showLimit`, it is not the duration of the files just
added, but instead the length of all files scheduled. This can cause
cases where a smart block set to "time remaining in show" fails to
completely fill the program.
For example, given a 30 minute show, and a playlist like follows:
1. a 5 minute track
2. another 5 minute track
3. smart block, set to time remaining in show
When item 1 is added, `showLimit` is reduced by 5 minutes as expected.
When item 2 is added, `showLimit` is reduced by 10 minutes (as both
items 1 and 2 are counted). As a result, the smart block is only run to
fill 15 minutes, leaving 5 minutes unfilled.
This PR resolves this issue, by recalculating `showLimit` from the
original duration rather than subtracting from a running total.
This change not does implement a new feature and should not require any
changes to documentation.
### Testing Notes
**What I did:**
- On a dev environment, set up a playlist as described above.
- Before applying this PR, created a show and scheduled playlist, and
confirmed issue was reproducible
- Applied PR and repeated, and confirmed show was filled completely.
Also repeated this testing with sample data from our production
instance.
Here is a sample schedule of the "before" case with sample data, showing
the issue

The smartblock that scheduled the music is set to allow last track to
overflow, but 3m55s was left unscheduled.
Using the same playlist and same track library, here is a sample
schedule after the PR applied:

As expected, the show is fully scheduled with the last track
overflowing.
Additionally, I've applied this PR as a hot fix to our production
instance, where it has been running for a week without issue.
Also performed spot tests of playlists without smart blocks, smart
blocks scheduled directly (not in playlists) and autoloading playlists,
with no change in behaviour observed as a result of this change.
**How you can replicate my testing:**
Same test steps as I followed should be able to reproduce issue &
validate fix on any instance.
### **Links**
Not directly related to issue fixed by #3019 , but also addresses the
issue of dead air left at end of blocks.
Co-authored-by: Kyle Robbertze <paddatrapper@users.noreply.github.com>
2024-06-05 17:01:57 +01:00
renovate[bot]
10996e847b
chore(deps): lock file maintenance (legacy/composer.json)
2024-06-05 15:55:53 +00:00
Kyle Robbertze
6432efd791
docs: fix typo ( #3027 )
...
Minor typo that was being picked up by pre-commit
2024-06-05 16:54:12 +01:00
renovate[bot]
c3e30f1857
chore(deps): update pre-commit hook codespell-project/codespell to v2.3.0
2024-05-30 01:58:26 +00:00
renovate[bot]
9974b4631d
chore(deps): update pre-commit hook adamchainz/django-upgrade to v1.18.0
2024-05-30 01:57:22 +00:00
renovate[bot]
5d2ad43039
chore(deps): lock file maintenance (legacy/composer.json)
2024-05-14 11:11:50 +00:00
renovate[bot]
848612ae6f
chore(deps): update pre-commit hook adamchainz/django-upgrade to v1.17.0
2024-05-12 16:43:03 +00:00
renovate[bot]
f77c8dbaaa
chore(deps): update dependency friendsofphp/php-cs-fixer to <3.56.2 ( #3008 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[friendsofphp/php-cs-fixer](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer )
| `<3.54.1` -> `<3.56.2` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>PHP-CS-Fixer/PHP-CS-Fixer (friendsofphp/php-cs-fixer)</summary>
###
[`v3.56.1`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3561 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.56.0...v3.56.1 )
- chore: improve PHPDoc typehints
([#​7994](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7994 ))
- CI: Allow any integer in PHPStan error for Token's constructor
([#​8000](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8000 ))
- fix: Better array shape in `PhpUnitDedicateAssertFixer`
([#​7999](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7999 ))
- fix: `ConstantCaseFixer` - do not touch typed constants
([#​7998](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7998 ))
###
[`v3.56.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3560 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.55.0...v3.56.0 )
- feat: `TrailingCommaInMultilineFixer` - handle trailing comma in
language constructs
([#​7989](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7989 ))
- fix: `TrailingCommaInMultilineFixer` - language constructs should be
covered by arguments, not parameters
([#​7990](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7990 ))
- chore: remove invalid comment
([#​7987](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7987 ))
- DX: Cache optimisation
([#​7985](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7985 ))
###
[`v3.55.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3550 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.54.0...v3.55.0 )
- feat: Introduce `OrderedAttributesFixer`
([#​7395](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7395 ))
- chore: few SCA fixes and dev-tools update
([#​7969](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7969 ))
- chore: fix phpdoc types
([#​7977](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7977 ))
- chore: narrow PHPDoc types
([#​7979](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7979 ))
- chore: Normalize implicit backslahes in single quoted strings
internally
([#​7786](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7786 ))
- chore: phpdoc - rely on strict list/tuple/assoc instead of array
([#​7978](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7978 ))
- chore: PhpUnitDataProviderNameFixer - follow config creation pattern
([#​7980](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7980 ))
- chore: Preg - drop half-support for array-pattern
([#​7976](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7976 ))
- chore: re-use CodeHasher
([#​7984](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7984 ))
- chore: RuleSetsTest - assert that Fixer is configurable
([#​7961](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7961 ))
- chore: sugar syntax
([#​7986](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7986 ))
- chore: Tokens should be always a list
([#​7698](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7698 ))
- CI: Ad-hoc fix for MacOS jobs
([#​7970](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7970 ))
- CI: Fix calculating diff between branches in PRs
([#​7973](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7973 ))
- DX: allow to enforce cache mechanism by env var
([#​7983](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7983 ))
- DX: do not typehint fixed-length arrays as lists
([#​7974](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7974 ))
- DX: Prevent having deprecated fixers listed as successors of other
deprecated fixers
([#​7967](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7967 ))
- DX: Resolve/Ignore PHPStan issues on level 6 + bump to level 7 with
new baseline
([#​7971](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7971 ))
- DX: use `list` type in PHPDoc
([#​7975](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7975 ))
- fix: `PhpUnitAttributesFixer` - fix for `#[RequiresPhp]` exceeding its
constructor parameters
([#​7966](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7966 ))
- test: don't count comment after class as another classy element
([#​7982](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7982 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNTEuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicGhwIl19-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-11 11:10:18 +02:00
libretime-bot
4442664c36
chore(legacy): update locales
2024-05-06 01:56:09 +00:00
libretime-bot
1a985a4b37
chore(main): release 4.1.0 ( #2893 )
...
🤖 I have created a release *beep* *boop*
---
## [4.1.0](https://github.com/libretime/libretime/compare/4.0.0...4.1.0 )
(2024-05-05)
### Features
* **api:** implement file deletion
([#2960 ](https://github.com/libretime/libretime/issues/2960 ))
([9757b1b
](9757b1b78c
))
* build schedule events exclusively in playout
([#2946 ](https://github.com/libretime/libretime/issues/2946 ))
([40b4fc7
](40b4fc7f66
))
* **legacy:** add aac/opus support to dashboard player
([#2881 ](https://github.com/libretime/libretime/issues/2881 ))
([95283ef
](95283efc1f
))
* **legacy:** disable public radio page and redirect to login
([#2903 ](https://github.com/libretime/libretime/issues/2903 ))
([170d095
](170d09545e
))
* **legacy:** trim overbooked shows after autoloading a playlist
([#2897 ](https://github.com/libretime/libretime/issues/2897 ))
([a95ce3d
](a95ce3d229
))
* **legacy:** visual cue point editor
([#2947 ](https://github.com/libretime/libretime/issues/2947 ))
([da02e74
](da02e74f21
))
* start celery worker programmatically
([#2988 ](https://github.com/libretime/libretime/issues/2988 ))
([9c548b3
](9c548b365e
))
### Bug Fixes
* **analyzer:** backslash non utf-8 data when probing replaygain
([#2931 ](https://github.com/libretime/libretime/issues/2931 ))
([29f73e0
](29f73e0dcb
)),
closes [#2910 ](https://github.com/libretime/libretime/issues/2910 )
* apply replay gain preferences on scheduled files
([#2945 ](https://github.com/libretime/libretime/issues/2945 ))
([35d0dec
](35d0dec4a8
))
* **deps:** update dependency friendsofphp/php-cs-fixer to <3.49.1
([#2899 ](https://github.com/libretime/libretime/issues/2899 ))
([3e05748
](3e05748d2d
))
* **deps:** update dependency friendsofphp/php-cs-fixer to <3.51.1
([#2963 ](https://github.com/libretime/libretime/issues/2963 ))
([22c303c
](22c303cfff
))
* **deps:** update dependency friendsofphp/php-cs-fixer to <3.53.1
([#2972 ](https://github.com/libretime/libretime/issues/2972 ))
([9192aaa
](9192aaa2bb
))
* **deps:** update dependency gunicorn to v22 (security)
([#2993 ](https://github.com/libretime/libretime/issues/2993 ))
([a2cf769
](a2cf7697a9
))
* incorrect docker compose version
([#2975 ](https://github.com/libretime/libretime/issues/2975 ))
([634e6e2
](634e6e236d
))
* **installer:** setup the worker entrypoint
([#2996 ](https://github.com/libretime/libretime/issues/2996 ))
([71b20ae
](71b20ae3c9
))
* **legacy:** allow deleting file with api token
([#2995 ](https://github.com/libretime/libretime/issues/2995 ))
([86da46e
](86da46ee3a
))
* **legacy:** allow updating track types code
([#2955 ](https://github.com/libretime/libretime/issues/2955 ))
([270aa08
](270aa08ae6
))
* **legacy:** avoid crash when lot of streams in configuration
([#2915 ](https://github.com/libretime/libretime/issues/2915 ))
([12dd477
](12dd477312
))
* **legacy:** ensure validation is performed on the track type form
([#2985 ](https://github.com/libretime/libretime/issues/2985 ))
([5ad69bf
](5ad69bf0b7
))
* **legacy:** fix hidden fields in edit file form
([#2932 ](https://github.com/libretime/libretime/issues/2932 ))
([f4b260f
](f4b260fdf7
))
* **legacy:** replay_gain_modifier should be a system preference
([#2943 ](https://github.com/libretime/libretime/issues/2943 ))
([37d1a76
](37d1a7685e
))
* remove obsolete docker compose version
([#2982 ](https://github.com/libretime/libretime/issues/2982 ))
([fb0584b
](fb0584b021
))
* trigger legacy tasks manager every 5m
([#2987 ](https://github.com/libretime/libretime/issues/2987 ))
([7040d0e
](7040d0e4bd
))
* **worker:** ensure celery beat is started
([#3007 ](https://github.com/libretime/libretime/issues/3007 ))
([bfde17e
](bfde17edf7
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
---------
Co-authored-by: jo <ljonas@riseup.net>
2024-05-05 23:45:39 +02:00
Jonas L
bfde17edf7
fix(worker): ensure celery beat is started ( #3007 )
...
The celery seem to ignore the first flag when `worker` is not part of
the `argv`.
2024-05-05 23:32:29 +02:00
Thomas Göttgens
9757b1b78c
feat(api): implement file deletion ( #2960 )
...
This implements the file delete to the Django API. Previously, the code was only manipulating the database while leaving the file in place.
Co-authored-by: jo <ljonas@riseup.net>
2024-05-05 22:44:30 +02:00
Thomas Göttgens
86da46ee3a
fix(legacy): allow deleting file with api token ( #2995 )
...
When calling DELETE "/rest/media/<id>" the call fails with 'unknown error'
if it's not within a GUI session. The StoredFile delete method checks
for user permissions regardless of if a user is even known.
2024-05-05 22:26:27 +02:00
renovate[bot]
201e85e537
chore(deps): update dependency django-stubs to v5 ( #3006 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [django-stubs](https://togithub.com/typeddjango/django-stubs )
([changelog](https://togithub.com/typeddjango/django-stubs/releases )) |
`>=1.14.0,<5` -> `>=1.14.0,<6` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>typeddjango/django-stubs (django-stubs)</summary>
###
[`v5.0.0`](https://togithub.com/typeddjango/django-stubs/releases/tag/5.0.0 )
[Compare
Source](https://togithub.com/typeddjango/django-stubs/compare/4.2.7...5.0.0 )
#### Announcements
- `QuerySet` class no longer derives from `Collection`. If you run into
errors like `incompatible type "_QuerySet[User, User]"; expected
"Collection[User]"`, [please read this
announcement](https://togithub.com/typeddjango/django-stubs/discussions/2095 ).
#### Headline changes
- Remove incorrect `Collection` base class and `__contains__` method
from `QuerySet` by [@​fidoriel](https://togithub.com/fidoriel ) in
[https://github.com/typeddjango/django-stubs/pull/1925 ](https://togithub.com/typeddjango/django-stubs/pull/1925 )
- Pyright joins the workflow in an advisory capacity by
[@​jorenham](https://togithub.com/jorenham ) in
[https://github.com/typeddjango/django-stubs/pull/2019 ](https://togithub.com/typeddjango/django-stubs/pull/2019 )
- feat: Allow setting django_settings_module from env by
[@​armanckeser](https://togithub.com/armanckeser ) in
[https://github.com/typeddjango/django-stubs/pull/2021 ](https://togithub.com/typeddjango/django-stubs/pull/2021 )
- Add `ManyRelatedManager.through` attribute and generic type parameter
by [@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/2026 ](https://togithub.com/typeddjango/django-stubs/pull/2026 )
#### What's Changed
- Make `StrPromise` not inherit from `Sequence[str]` by
[@​intgr](https://togithub.com/intgr ) in
[https://github.com/typeddjango/django-stubs/pull/1841 ](https://togithub.com/typeddjango/django-stubs/pull/1841 )
- Update and prepare for Django 5.0 by
[@​intgr](https://togithub.com/intgr ) in
[https://github.com/typeddjango/django-stubs/pull/1859 ](https://togithub.com/typeddjango/django-stubs/pull/1859 )
- Ensure mypy plugin processes inherited many to many fields by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1864 ](https://togithub.com/typeddjango/django-stubs/pull/1864 )
- Include ModelBase subclasses in plugin base class hook condition by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1863 ](https://togithub.com/typeddjango/django-stubs/pull/1863 )
- \[5.0] Added many new a-prefixed asynchronous methods by
[@​bigfootjon](https://togithub.com/bigfootjon ) in
[https://github.com/typeddjango/django-stubs/pull/1741 ](https://togithub.com/typeddjango/django-stubs/pull/1741 )
- Remove section regarding custom queryset methods from README by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1865 ](https://togithub.com/typeddjango/django-stubs/pull/1865 )
- Fix type of `AppConfig.models_module` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1866 ](https://togithub.com/typeddjango/django-stubs/pull/1866 )
- Allow `None` in settings `MIGRATION_MODULES` dict values by
[@​asottile](https://togithub.com/asottile ) in
[https://github.com/typeddjango/django-stubs/pull/1871 ](https://togithub.com/typeddjango/django-stubs/pull/1871 )
- Add type hints for `JSONField.from_db_value` by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1879 ](https://togithub.com/typeddjango/django-stubs/pull/1879 )
- Fix/pyright unknown by
[@​dephiros](https://togithub.com/dephiros ) in
[https://github.com/typeddjango/django-stubs/pull/1873 ](https://togithub.com/typeddjango/django-stubs/pull/1873 )
- Fix type hints of `converters` in `urls.resolvers` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1892 ](https://togithub.com/typeddjango/django-stubs/pull/1892 )
- Update mypy to 1.8.0 by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/1885 ](https://togithub.com/typeddjango/django-stubs/pull/1885 )
- Add `@type_check_only` to all Protocols and known stubs-only classes
by [@​intgr](https://togithub.com/intgr ) in
[https://github.com/typeddjango/django-stubs/pull/1894 ](https://togithub.com/typeddjango/django-stubs/pull/1894 )
- Fix types for UniqueConstraint instantiation by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1880 ](https://togithub.com/typeddjango/django-stubs/pull/1880 )
- Add `ModuleType` as a possible type to `URLResolver.urlconf_name` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1891 ](https://togithub.com/typeddjango/django-stubs/pull/1891 )
- Fix type hint of `URLPattern.default_args` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1895 ](https://togithub.com/typeddjango/django-stubs/pull/1895 )
- Update ruff and silence `PYI046` by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/1907 ](https://togithub.com/typeddjango/django-stubs/pull/1907 )
- Use PEP 570 syntax by [@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1908 ](https://togithub.com/typeddjango/django-stubs/pull/1908 )
- Fix readme settings example by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1910 ](https://togithub.com/typeddjango/django-stubs/pull/1910 )
- Fix type hint of `EmailBackend.ssl_keyfile` and
`EmailBackend.ssl_certfile` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1911 ](https://togithub.com/typeddjango/django-stubs/pull/1911 )
- Add type of `django.VERSION` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1916 ](https://togithub.com/typeddjango/django-stubs/pull/1916 )
- Added `CommandParser` to `commands.__init__` by
[@​jamesbraza](https://togithub.com/jamesbraza ) in
[https://github.com/typeddjango/django-stubs/pull/1927 ](https://togithub.com/typeddjango/django-stubs/pull/1927 )
- \[5.0] add `assume_scheme` to forms.URLField by
[@​asottile](https://togithub.com/asottile ) in
[https://github.com/typeddjango/django-stubs/pull/1929 ](https://togithub.com/typeddjango/django-stubs/pull/1929 )
- Fix return type of `BaseModelAdmin.formfield_for_dbfield` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1934 ](https://togithub.com/typeddjango/django-stubs/pull/1934 )
- Revert `pre-commit==3.6.1` by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/1936 ](https://togithub.com/typeddjango/django-stubs/pull/1936 )
- Fix type hint of `Response.set_cookie.max_age` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1941 ](https://togithub.com/typeddjango/django-stubs/pull/1941 )
- 5.0: Add ChoicesType by [@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1942 ](https://togithub.com/typeddjango/django-stubs/pull/1942 )
- Add through_defaults for RelatedManager methods by
[@​mfosterw](https://togithub.com/mfosterw ) in
[https://github.com/typeddjango/django-stubs/pull/1943 ](https://togithub.com/typeddjango/django-stubs/pull/1943 )
- Update type hints of `core.signing` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1945 ](https://togithub.com/typeddjango/django-stubs/pull/1945 )
- \[5.0] Update `core.validators` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1947 ](https://togithub.com/typeddjango/django-stubs/pull/1947 )
- \[5.0] Update `core.paginator` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1946 ](https://togithub.com/typeddjango/django-stubs/pull/1946 )
- Generic `forms.ModelChoiceField` by
[@​UnknownPlatypus](https://togithub.com/UnknownPlatypus ) in
[https://github.com/typeddjango/django-stubs/pull/1889 ](https://togithub.com/typeddjango/django-stubs/pull/1889 )
- Support processing of other relations and fields when one is broken by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1877 ](https://togithub.com/typeddjango/django-stubs/pull/1877 )
- Allowing `set` in `model_to_dict`'s `exclude` by
[@​jamesbraza](https://togithub.com/jamesbraza ) in
[https://github.com/typeddjango/django-stubs/pull/1952 ](https://togithub.com/typeddjango/django-stubs/pull/1952 )
- \[5.0] Add django.db.models.GeneratedField by
[@​palfrey](https://togithub.com/palfrey ) in
[https://github.com/typeddjango/django-stubs/pull/1944 ](https://togithub.com/typeddjango/django-stubs/pull/1944 )
- Fix type hint of `BaseEngine.template_dirs` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1954 ](https://togithub.com/typeddjango/django-stubs/pull/1954 )
- Update type hints of contrib.auth.hashers by
[@​yhay81](https://togithub.com/yhay81 ) in
[https://github.com/typeddjango/django-stubs/pull/1955 ](https://togithub.com/typeddjango/django-stubs/pull/1955 )
- deps: Upgrade pre-commit for newer versions of python by
[@​delfick](https://togithub.com/delfick ) in
[https://github.com/typeddjango/django-stubs/pull/1961 ](https://togithub.com/typeddjango/django-stubs/pull/1961 )
- 5.0: Add auth.middleware.auser by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1966 ](https://togithub.com/typeddjango/django-stubs/pull/1966 )
- 5.0: Add ModelAdmin.show_facets by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1967 ](https://togithub.com/typeddjango/django-stubs/pull/1967 )
- ruff: Fix config warnings by [@​q0w](https://togithub.com/q0w )
in
[https://github.com/typeddjango/django-stubs/pull/1964 ](https://togithub.com/typeddjango/django-stubs/pull/1964 )
- 5.0: Add BaseConstraint.violation_error_code by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1969 ](https://togithub.com/typeddjango/django-stubs/pull/1969 )
- 5.0: Add Signal.asend and Signal.asend_robust by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1965 ](https://togithub.com/typeddjango/django-stubs/pull/1965 )
- 5.0: Add QuerySet.(a)update_or_create new create_defaults arg by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1970 ](https://togithub.com/typeddjango/django-stubs/pull/1970 )
- 5.0: Add AdminSite.get_log_entries by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1963 ](https://togithub.com/typeddjango/django-stubs/pull/1963 )
- 5.0: Add gis ClosestPoint by [@​q0w](https://togithub.com/q0w )
in
[https://github.com/typeddjango/django-stubs/pull/1968 ](https://togithub.com/typeddjango/django-stubs/pull/1968 )
- 5.0: Rename save_existing arg instance to obj by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1971 ](https://togithub.com/typeddjango/django-stubs/pull/1971 )
- 5.0: Remove admin.helpers.checkbox by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1972 ](https://togithub.com/typeddjango/django-stubs/pull/1972 )
- 5.0: Change annotation_select_mask from set\[str] to list\[str] by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1973 ](https://togithub.com/typeddjango/django-stubs/pull/1973 )
- fixup: Pass violation_error_code to init by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1975 ](https://togithub.com/typeddjango/django-stubs/pull/1975 )
- Avoid returning None from get_field_related_model_cls by
[@​SingingTree](https://togithub.com/SingingTree ) in
[https://github.com/typeddjango/django-stubs/pull/1956 ](https://togithub.com/typeddjango/django-stubs/pull/1956 )
- 5.0: Pass positional args name and violation_error_message to
BaseConstraint by [@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1974 ](https://togithub.com/typeddjango/django-stubs/pull/1974 )
- 5.0: Remove pytz support by [@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1980 ](https://togithub.com/typeddjango/django-stubs/pull/1980 )
- 5.0: Remove global setting USE_L10N by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1979 ](https://togithub.com/typeddjango/django-stubs/pull/1979 )
- 5.0: Remove OSMGeoAdmin, GeoModelAdmin by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1981 ](https://togithub.com/typeddjango/django-stubs/pull/1981 )
- 5.0: Remove extra_tests arg for DiscoverRunner.build_suite/run_tests
by [@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1978 ](https://togithub.com/typeddjango/django-stubs/pull/1978 )
- 5.0: Remove django.utils baseconv and datetime_safe modules by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1977 ](https://togithub.com/typeddjango/django-stubs/pull/1977 )
- 5.0: Add request arg to ModelAdmin.lookup_allowed by
[@​q0w](https://togithub.com/q0w ) in
[https://github.com/typeddjango/django-stubs/pull/1976 ](https://togithub.com/typeddjango/django-stubs/pull/1976 )
- Add URL converter protocol type by
[@​adamchainz](https://togithub.com/adamchainz ) in
[https://github.com/typeddjango/django-stubs/pull/1984 ](https://togithub.com/typeddjango/django-stubs/pull/1984 )
- Fix type annotation for RegisterLookupMixin.class_lookups by
[@​avoronov-box](https://togithub.com/avoronov-box ) in
[https://github.com/typeddjango/django-stubs/pull/1962 ](https://togithub.com/typeddjango/django-stubs/pull/1962 )
- Update django to 5.0.3 by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/1990 ](https://togithub.com/typeddjango/django-stubs/pull/1990 )
- Remove some deprecated Django 3.x APIs by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/1991 ](https://togithub.com/typeddjango/django-stubs/pull/1991 )
- Fix BaseModelAdmin.view_on_site annotation by
[@​cuu508](https://togithub.com/cuu508 ) in
[https://github.com/typeddjango/django-stubs/pull/1993 ](https://togithub.com/typeddjango/django-stubs/pull/1993 )
- Allow immutable `extra_context` on `TemplateView`s by
[@​samueljsb](https://togithub.com/samueljsb ) in
[https://github.com/typeddjango/django-stubs/pull/1994 ](https://togithub.com/typeddjango/django-stubs/pull/1994 )
- Add BoundField.**html**() by
[@​pelme](https://togithub.com/pelme ) in
[https://github.com/typeddjango/django-stubs/pull/1999 ](https://togithub.com/typeddjango/django-stubs/pull/1999 )
- Allow timedelta type for session.set_expiry() argument by
[@​mlazar-endear](https://togithub.com/mlazar-endear ) in
[https://github.com/typeddjango/django-stubs/pull/2001 ](https://togithub.com/typeddjango/django-stubs/pull/2001 )
- Bump `pytest-mypy-plugins` to 3.1.1 by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/2003 ](https://togithub.com/typeddjango/django-stubs/pull/2003 )
- Update mypy, add a bit more metadata by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/1997 ](https://togithub.com/typeddjango/django-stubs/pull/1997 )
- 5.0: Update `django.contrib.auth` by
[@​ngnpope](https://togithub.com/ngnpope ) in
[https://github.com/typeddjango/django-stubs/pull/2009 ](https://togithub.com/typeddjango/django-stubs/pull/2009 )
- 5.0: Update `django.conf` by
[@​ngnpope](https://togithub.com/ngnpope ) in
[https://github.com/typeddjango/django-stubs/pull/2008 ](https://togithub.com/typeddjango/django-stubs/pull/2008 )
- 5.0: Update `django.views` by
[@​ngnpope](https://togithub.com/ngnpope ) in
[https://github.com/typeddjango/django-stubs/pull/2007 ](https://togithub.com/typeddjango/django-stubs/pull/2007 )
- 5.0: Update `django.test` by
[@​ngnpope](https://togithub.com/ngnpope ) in
[https://github.com/typeddjango/django-stubs/pull/2005 ](https://togithub.com/typeddjango/django-stubs/pull/2005 )
- 5.0: Update `django.utils` by
[@​ngnpope](https://togithub.com/ngnpope ) in
[https://github.com/typeddjango/django-stubs/pull/2006 ](https://togithub.com/typeddjango/django-stubs/pull/2006 )
- Specify d.c.serializers.base.DeserializedObject.object type by
[@​j00bar](https://togithub.com/j00bar ) in
[https://github.com/typeddjango/django-stubs/pull/2010 ](https://togithub.com/typeddjango/django-stubs/pull/2010 )
- Clean the cache on each run of `stubtest` by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/2015 ](https://togithub.com/typeddjango/django-stubs/pull/2015 )
- Keep abstract Django models internally in the plugin by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/2017 ](https://togithub.com/typeddjango/django-stubs/pull/2017 )
- Add GitHub actions release workflow by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1950 ](https://togithub.com/typeddjango/django-stubs/pull/1950 )
- Adding missing `Q` methods: `check()`, `flatten()` by
[@​Alexerson](https://togithub.com/Alexerson ) in
[https://github.com/typeddjango/django-stubs/pull/1899 ](https://togithub.com/typeddjango/django-stubs/pull/1899 )
- Improve types in `utils.termcolors` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1901 ](https://togithub.com/typeddjango/django-stubs/pull/1901 )
- Set the calculated metaclass when creating type info in the plugin by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/2025 ](https://togithub.com/typeddjango/django-stubs/pull/2025 )
- Do not annotate PRs with pyright by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/2023 ](https://togithub.com/typeddjango/django-stubs/pull/2023 )
- Use `PRI_MYPY` in `get_additional_deps` hook by
[@​sobolevn](https://togithub.com/sobolevn ) in
[https://github.com/typeddjango/django-stubs/pull/2024 ](https://togithub.com/typeddjango/django-stubs/pull/2024 )
- Update `_default_manager` and `_base_manager` to be `Manager` by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/2022 ](https://togithub.com/typeddjango/django-stubs/pull/2022 )
- Determine the type of queryset methods on unions by
[@​delfick](https://togithub.com/delfick ) in
[https://github.com/typeddjango/django-stubs/pull/2027 ](https://togithub.com/typeddjango/django-stubs/pull/2027 )
- Add first stub for get_model_admin by
[@​nebiyuelias1](https://togithub.com/nebiyuelias1 ) in
[https://github.com/typeddjango/django-stubs/pull/2029 ](https://togithub.com/typeddjango/django-stubs/pull/2029 )
- 5.0: Update `django.contrib.admin` by
[@​ngnpope](https://togithub.com/ngnpope ) in
[https://github.com/typeddjango/django-stubs/pull/2004 ](https://togithub.com/typeddjango/django-stubs/pull/2004 )
- \[5.0] Update `core.files` by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1949 ](https://togithub.com/typeddjango/django-stubs/pull/1949 )
- \[5.0] Update `core.cache.backends`, add `RedisCache` and related
classes by [@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/1948 ](https://togithub.com/typeddjango/django-stubs/pull/1948 )
- Fix `AsyncClient.defaults` attribute typing by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/1878 ](https://togithub.com/typeddjango/django-stubs/pull/1878 )
- Relax type for `fields` argument of `Model.refresh_from_db()` by
[@​mthuurne](https://togithub.com/mthuurne ) in
[https://github.com/typeddjango/django-stubs/pull/2035 ](https://togithub.com/typeddjango/django-stubs/pull/2035 )
- \[5.0] Add missing stubs for geos by
[@​nebiyuelias1](https://togithub.com/nebiyuelias1 ) in
[https://github.com/typeddjango/django-stubs/pull/2034 ](https://togithub.com/typeddjango/django-stubs/pull/2034 )
- Make `AdminSite.get_model_admin` generic by
[@​Viicos](https://togithub.com/Viicos ) in
[https://github.com/typeddjango/django-stubs/pull/2038 ](https://togithub.com/typeddjango/django-stubs/pull/2038 )
- \[5.0] Add `db_default=` parameter to models `Field` classes by
[@​Skorpyon](https://togithub.com/Skorpyon ) in
[https://github.com/typeddjango/django-stubs/pull/1876 ](https://togithub.com/typeddjango/django-stubs/pull/1876 )
- Remove `class Meta` from `Model` and `Form` class stubs by
[@​jorenham](https://togithub.com/jorenham ) in
[https://github.com/typeddjango/django-stubs/pull/2000 ](https://togithub.com/typeddjango/django-stubs/pull/2000 )
- Add datetime.timedelta as valid type for
HttpRequest.get_signed_cookie() max_age argument. by
[@​pelme](https://togithub.com/pelme ) in
[https://github.com/typeddjango/django-stubs/pull/2045 ](https://togithub.com/typeddjango/django-stubs/pull/2045 )
- CI: Update Django 4.2 version used for test suite by
[@​intgr](https://togithub.com/intgr ) in
[https://github.com/typeddjango/django-stubs/pull/2049 ](https://togithub.com/typeddjango/django-stubs/pull/2049 )
- Refine return type for `ManyToOneRel.get_accessor_name()` by
[@​mthuurne](https://togithub.com/mthuurne ) in
[https://github.com/typeddjango/django-stubs/pull/2052 ](https://togithub.com/typeddjango/django-stubs/pull/2052 )
- Add `DeferredAttribute.__get__()` by
[@​mthuurne](https://togithub.com/mthuurne ) in
[https://github.com/typeddjango/django-stubs/pull/2050 ](https://togithub.com/typeddjango/django-stubs/pull/2050 )
- Add missing methods and superclass to `FieldFile` by
[@​mthuurne](https://togithub.com/mthuurne ) in
[https://github.com/typeddjango/django-stubs/pull/2051 ](https://togithub.com/typeddjango/django-stubs/pull/2051 )
- Add `db_comment=` parameter to Postgres and GIS model fields by
[@​saJaeHyukc](https://togithub.com/saJaeHyukc ) in
[https://github.com/typeddjango/django-stubs/pull/2054 ](https://togithub.com/typeddjango/django-stubs/pull/2054 )
- Correct type for `db.models.sql.query.Query.join()` argument by
[@​mthuurne](https://togithub.com/mthuurne ) in
[https://github.com/typeddjango/django-stubs/pull/2055 ](https://togithub.com/typeddjango/django-stubs/pull/2055 )
- 5.0: Update `django.db.backends.oracle.base` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2057 ](https://togithub.com/typeddjango/django-stubs/pull/2057 )
- 5.0: Update `django.test.client` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2059 ](https://togithub.com/typeddjango/django-stubs/pull/2059 )
- 5.0: Update `django.test.html` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2060 ](https://togithub.com/typeddjango/django-stubs/pull/2060 )
- 5.0: Update `django.test.runner` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2061 ](https://togithub.com/typeddjango/django-stubs/pull/2061 )
- 5.0: Update `django.template`, `django.templatetags` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2063 ](https://togithub.com/typeddjango/django-stubs/pull/2063 )
- 5.0: Update `django.test.testcases` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2062 ](https://togithub.com/typeddjango/django-stubs/pull/2062 )
- 5.0: Update `django.http` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2064 ](https://togithub.com/typeddjango/django-stubs/pull/2064 )
- 5.0: Update `django.core.management` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2067 ](https://togithub.com/typeddjango/django-stubs/pull/2067 )
- 5.0: Update `django.core.handlers` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2066 ](https://togithub.com/typeddjango/django-stubs/pull/2066 )
- 5.0: Update `django.contrib.sessions.serializers`,
`django.core.serializers` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2068 ](https://togithub.com/typeddjango/django-stubs/pull/2068 )
- Update django app related types by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2071 ](https://togithub.com/typeddjango/django-stubs/pull/2071 )
- Add a `returncode` attribute to `CommandError` by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/2072 ](https://togithub.com/typeddjango/django-stubs/pull/2072 )
- Disable mypy `ignore_missing_imports` option by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2058 ](https://togithub.com/typeddjango/django-stubs/pull/2058 )
- fix typing for URL validator.**call** by
[@​asottile](https://togithub.com/asottile ) in
[https://github.com/typeddjango/django-stubs/pull/2074 ](https://togithub.com/typeddjango/django-stubs/pull/2074 )
- Use field generic types for descriptors by
[@​md384](https://togithub.com/md384 ) in
[https://github.com/typeddjango/django-stubs/pull/2048 ](https://togithub.com/typeddjango/django-stubs/pull/2048 )
- 5.0: Update `django.core.servers.basehttp` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2070 ](https://togithub.com/typeddjango/django-stubs/pull/2070 )
- Update `django.template.base.Template.render()` argument type by
[@​Majsvaffla](https://togithub.com/Majsvaffla ) in
[https://github.com/typeddjango/django-stubs/pull/1160 ](https://togithub.com/typeddjango/django-stubs/pull/1160 )
- 5.0: Add `django.utils.choices` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2075 ](https://togithub.com/typeddjango/django-stubs/pull/2075 )
- 5.0: Update `django.contrib.sitemaps`, `django.contrib.staticfiles` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2076 ](https://togithub.com/typeddjango/django-stubs/pull/2076 )
- Update pyright report options (`reportMissingTypeArgument`,
`reportPrivateUsage`) by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2077 ](https://togithub.com/typeddjango/django-stubs/pull/2077 )
- 5.0: Update `django.contrib.postgres` by
[@​sudosubin](https://togithub.com/sudosubin ) in
[https://github.com/typeddjango/django-stubs/pull/2078 ](https://togithub.com/typeddjango/django-stubs/pull/2078 )
- Add `path` signature for async views by
[@​jlost](https://togithub.com/jlost ) in
[https://github.com/typeddjango/django-stubs/pull/2085 ](https://togithub.com/typeddjango/django-stubs/pull/2085 )
- Remove incorrect `Reversible` base class from `QuerySet` by
[@​intgr](https://togithub.com/intgr ) in
[https://github.com/typeddjango/django-stubs/pull/2094 ](https://togithub.com/typeddjango/django-stubs/pull/2094 )
- Version 5.0.0 release (django-stubs, django-stubs-ext) by
[@​flaeppe](https://togithub.com/flaeppe ) in
[https://github.com/typeddjango/django-stubs/pull/2087 ](https://togithub.com/typeddjango/django-stubs/pull/2087 )
#### New Contributors
- [@​Viicos](https://togithub.com/Viicos ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1866 ](https://togithub.com/typeddjango/django-stubs/pull/1866 )
- [@​dephiros](https://togithub.com/dephiros ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1873 ](https://togithub.com/typeddjango/django-stubs/pull/1873 )
- [@​jamesbraza](https://togithub.com/jamesbraza ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1927 ](https://togithub.com/typeddjango/django-stubs/pull/1927 )
- [@​mfosterw](https://togithub.com/mfosterw ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1943 ](https://togithub.com/typeddjango/django-stubs/pull/1943 )
- [@​palfrey](https://togithub.com/palfrey ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1944 ](https://togithub.com/typeddjango/django-stubs/pull/1944 )
- [@​yhay81](https://togithub.com/yhay81 ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1955 ](https://togithub.com/typeddjango/django-stubs/pull/1955 )
- [@​delfick](https://togithub.com/delfick ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1961 ](https://togithub.com/typeddjango/django-stubs/pull/1961 )
- [@​SingingTree](https://togithub.com/SingingTree ) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/1956 ](https://togithub.com/typeddjango/django-stubs/pull/1956 )
- [@​avoronov-box](https://togithub.com/avoronov-box ) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/1962 ](https://togithub.com/typeddjango/django-stubs/pull/1962 )
- [@​cuu508](https://togithub.com/cuu508 ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1993 ](https://togithub.com/typeddjango/django-stubs/pull/1993 )
- [@​samueljsb](https://togithub.com/samueljsb ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1994 ](https://togithub.com/typeddjango/django-stubs/pull/1994 )
- [@​pelme](https://togithub.com/pelme ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1999 ](https://togithub.com/typeddjango/django-stubs/pull/1999 )
- [@​mlazar-endear](https://togithub.com/mlazar-endear ) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2001 ](https://togithub.com/typeddjango/django-stubs/pull/2001 )
- [@​j00bar](https://togithub.com/j00bar ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/2010 ](https://togithub.com/typeddjango/django-stubs/pull/2010 )
- [@​jorenham](https://togithub.com/jorenham ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/2019 ](https://togithub.com/typeddjango/django-stubs/pull/2019 )
- [@​fidoriel](https://togithub.com/fidoriel ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1925 ](https://togithub.com/typeddjango/django-stubs/pull/1925 )
- [@​armanckeser](https://togithub.com/armanckeser ) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2021 ](https://togithub.com/typeddjango/django-stubs/pull/2021 )
- [@​nebiyuelias1](https://togithub.com/nebiyuelias1 ) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2029 ](https://togithub.com/typeddjango/django-stubs/pull/2029 )
- [@​Skorpyon](https://togithub.com/Skorpyon ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1876 ](https://togithub.com/typeddjango/django-stubs/pull/1876 )
- [@​saJaeHyukc](https://togithub.com/saJaeHyukc ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/2054 ](https://togithub.com/typeddjango/django-stubs/pull/2054 )
- [@​sudosubin](https://togithub.com/sudosubin ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/2057 ](https://togithub.com/typeddjango/django-stubs/pull/2057 )
- [@​md384](https://togithub.com/md384 ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/2048 ](https://togithub.com/typeddjango/django-stubs/pull/2048 )
- [@​Majsvaffla](https://togithub.com/Majsvaffla ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1160 ](https://togithub.com/typeddjango/django-stubs/pull/1160 )
- [@​jlost](https://togithub.com/jlost ) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/2085 ](https://togithub.com/typeddjango/django-stubs/pull/2085 )
**Full Changelog**:
https://github.com/typeddjango/django-stubs/compare/4.2.7...5.0.0
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJweXRob24iXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-05 21:21:20 +02:00
Thomas Göttgens
064c435b09
refactor(legacy): remove unused waveform related code ( #3003 )
...
Co-authored-by: Thomas Göttgens <tgoettgens@mail.com>
Co-authored-by: Kyle Robbertze <paddatrapper@users.noreply.github.com>
2024-05-05 21:15:11 +02:00
renovate[bot]
a556b73d2a
chore(deps): lock file maintenance (legacy/composer.json)
2024-04-30 09:09:41 +00:00
libretime-bot
ad16a9b3f8
chore(legacy): update locales
2024-04-29 01:54:43 +00:00
Jonas L
40b4fc7f66
feat: build schedule events exclusively in playout ( #2946 )
...
### Description
Build and use the schedule events only in playout, the events generated
by legacy are not used anymore.
This ensure that we don't have to maintain 2 different implementation in
2 different languages. We still need the php function to run to make
sure the side effects of this function are executed (filling the
schedule in the DB).
2024-04-27 20:09:16 +02:00
renovate[bot]
c02502ad9d
chore(deps): update pre-commit hook psf/black-pre-commit-mirror to v24.4.2
2024-04-27 10:51:08 +00:00
renovate[bot]
c5a9c75946
chore(deps): update lycheeverse/lychee-action action to v1.10.0
2024-04-27 07:25:29 +00:00
renovate[bot]
50e5767963
chore(deps): update amannn/action-semantic-pull-request action to v5.5.2
2024-04-26 00:50:54 +00:00
renovate[bot]
8615c85572
chore(deps): update dependency friendsofphp/php-cs-fixer to <3.54.1 ( #2994 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[friendsofphp/php-cs-fixer](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer )
| `<3.53.1` -> `<3.54.1` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>PHP-CS-Fixer/PHP-CS-Fixer (friendsofphp/php-cs-fixer)</summary>
###
[`v3.54.0`](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/HEAD/CHANGELOG.md#Changelog-for-v3540 )
[Compare
Source](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/compare/v3.53.0...v3.54.0 )
- feat: introduce `PhpUnitAttributesFixer`
([#​7831](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7831 ))
- chore: Properly determine self-approval trigger commit
([#​7936](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7936 ))
- chore: Revert ref for self-approval Git checkout
([#​7944](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7944 ))
- CI: check if proper array key is declared
([#​7912](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7912 ))
- DX: cleanup `FullyQualifiedStrictTypesFixerTest`
([#​7954](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7954 ))
- DX: cleanup `PhpdocNoAccessFixerTest`
([#​7933](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7933 ))
- DX: cleanup `PhpUnitMethodCasingFixerTest`
([#​7948](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7948 ))
- DX: cleanup `PhpUnitStrictFixerTest`
([#​7938](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7938 ))
- DX: Improve internal dist config for Fixer
([#​7952](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7952 ))
- DX: Improve issue templates
([#​7942](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7942 ))
- DX: there is no namespace if there is no PHP code
([#​7953](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7953 ))
- DX: update .gitattributes
([#​7931](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7931 ))
- fix: Remove Infection during Docker release
([#​7937](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7937 ))
- fix: `FullyQualifiedStrictTypesFixer` - do not add imports before PHP
opening tag
([#​7955](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7955 ))
- fix: `PhpUnitMethodCasingFixer` - do not double underscore
([#​7949](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7949 ))
- fix: `PhpUnitTestClassRequiresCoversFixer` - do not add annotation
when there are attributes
([#​7880](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7880 ))
- test: Ignore PHP version related mutations
([#​7935](https://togithub.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7935 ))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJwaHAiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 18:54:41 +02:00
Weblate (bot)
7e92bc50cc
chore(legacy): translations update from Hosted Weblate ( #2998 )
...
Translations update from [Hosted Weblate](https://hosted.weblate.org )
for
[LibreTime/Legacy](https://hosted.weblate.org/projects/libretime/legacy/ ).
Current translation status:

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
2024-04-23 11:20:55 +01:00
libretime-bot
046aa724cc
chore(legacy): update locales
2024-04-22 01:54:41 +00:00
Thomas Göttgens
da02e74f21
feat(legacy): visual cue point editor ( #2947 )
...
A visual cue point editor in the track editor view. This view displays the track as a waveform and allows you to set where the in- and out-cue points are set. These cue points determine the start and end points of the track.
---------
Co-authored-by: Thomas Göttgens <tgoettgens@mail.com>
Co-authored-by: Kyle Robbertze <paddatrapper@users.noreply.github.com>
2024-04-21 10:13:43 +01:00
Thomas Göttgens
71b20ae3c9
fix(installer): setup the worker entrypoint ( #2996 )
...
Worker service fails after upgrade.
Related to #2988
2024-04-18 14:27:20 +02:00
renovate[bot]
a2cf7697a9
fix(deps): update dependency gunicorn to v22 (security) ( #2993 )
...
[](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [gunicorn](https://gunicorn.org )
([source](https://togithub.com/benoitc/gunicorn ),
[changelog](https://docs.gunicorn.org/en/stable/news.html )) |
`>=20.1.0,<21.3` -> `>=22.0.0,<22.1` |
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
[](https://docs.renovatebot.com/merge-confidence/ )
|
### GitHub Vulnerability Alerts
#### [CVE-2024-1135](https://nvd.nist.gov/vuln/detail/CVE-2024-1135 )
Gunicorn fails to properly validate Transfer-Encoding headers, leading
to HTTP Request Smuggling (HRS) vulnerabilities. By crafting requests
with conflicting Transfer-Encoding headers, attackers can bypass
security restrictions and access restricted endpoints. This issue is due
to Gunicorn's handling of Transfer-Encoding headers, where it
incorrectly processes requests with multiple, conflicting
Transfer-Encoding headers, treating them as chunked regardless of the
final encoding specified. This vulnerability has been shown to allow
access to endpoints restricted by gunicorn. This issue has been
addressed in version 22.0.0.
To be affected users must have a network path which does not filter out
invalid requests. These users are advised to block access to restricted
endpoints via a firewall or other mechanism if they are unable to
update.
---
### Release Notes
<details>
<summary>benoitc/gunicorn (gunicorn)</summary>
###
[`v22.0.0`](https://togithub.com/benoitc/gunicorn/releases/tag/22.0.0 ):
Gunicorn 22.0 has been released
[Compare
Source](https://togithub.com/benoitc/gunicorn/compare/21.2.0...22.0.0 )
**Gunicorn 22.0.0 has been released.** This version fix the numerous
security vulnerabilities. You're invited to upgrade asap your own
installation.
Changes:
22.0.0 - 2024-04-17
===================
- use `utime` to notify workers liveness
- migrate setup to pyproject.toml
- fix numerous security vulnerabilities in HTTP parser (closing some
request smuggling vectors)
- parsing additional requests is no longer attempted past unsupported
request framing
- on HTTP versions < 1.1 support for chunked transfer is refused (only
used in exploits)
- requests conflicting configured or passed SCRIPT_NAME now produce a
verbose error
- Trailer fields are no longer inspected for headers indicating secure
scheme
- support Python 3.12
** Breaking changes **
- minimum version is Python 3.7
- the limitations on valid characters in the HTTP method have been
bounded to Internet Standards
- requests specifying unsupported transfer coding (order) are refused by
default (rare)
- HTTP methods are no longer casefolded by default (IANA method registry
contains none affected)
- HTTP methods containing the number sign (#) are no longer accepted by
default (rare)
- HTTP versions < 1.0 or >= 2.0 are no longer accepted by default (rare,
only HTTP/1.1 is supported)
- HTTP versions consisting of multiple digits or containing a
prefix/suffix are no longer accepted
- HTTP header field names Gunicorn cannot safely map to variables are
silently dropped, as in other software
- HTTP headers with empty field name are refused by default (no
legitimate use cases, used in exploits)
- requests with both Transfer-Encoding and Content-Length are refused by
default (such a message might indicate an attempt to perform request
smuggling)
- empty transfer codings are no longer permitted (reportedly seen with
really old & broken proxies)
** SECURITY **
- fix CVE-2024-1135
1. Documentation is available there:
https://docs.gunicorn.org/en/stable/news.html
2. Packages: https://pypi.org/project/gunicorn/
###
[`v21.2.0`](https://togithub.com/benoitc/gunicorn/releases/tag/21.2.0 ):
Gunicorn 21.2.0 has been released
[Compare
Source](https://togithub.com/benoitc/gunicorn/compare/21.1.0...21.2.0 )
**Gunicorn 21.2.0 has been released.** This version fix the issue
introduced in the threaded worker.
Changes:
21.2.0 - 2023-07-19
===================
fix thread worker: revert change considering connection as idle .
*** NOTE ***
This is fixing the bad file description error.
1. Documentation is available there:
https://docs.gunicorn.org/en/stable/news.html
2. Packages: https://pypi.org/project/gunicorn/
###
[`v21.1.0`](https://togithub.com/benoitc/gunicorn/releases/tag/21.1.0 ):
Gunicorn 21.1.0 has been released
[Compare
Source](https://togithub.com/benoitc/gunicorn/compare/21.0.1...21.1.0 )
gunicorn 21.1.0 has been released. This version fix the issue introduced
in the threaded worker.
# 21.1.0 - 2023-07-18
- fix thread worker: fix socket removal from the queuet checkout 21.x
###
[`v21.0.1`](https://togithub.com/benoitc/gunicorn/releases/tag/21.0.1 ):
Gunicorn 21 has been released
[Compare
Source](https://togithub.com/benoitc/gunicorn/compare/21.0.0...21.0.1 )
Gunicorn 21 is out with miscellaneous changes. Enjoy!
We made this release major to start our new release cycle. More info
will be provided on our discussion forum.
##### 21.0.1 - 2023-07-17
fix documentation build
##### 21.0.0 - 2023-07-17
support python 3.11
fix gevent and eventlet workers
fix threads support (gththread): improve performance and unblock
requests
SSL: noaw use SSLContext object
HTTP parser: miscellaneous fixes
remove unecessary setuid calls
fix testing
improve logging
miscellaneous fixes to core engine
**Full Changelog**:
https://github.com/benoitc/gunicorn/compare/21.0.0...21.0.1
###
[`v21.0.0`](https://togithub.com/benoitc/gunicorn/compare/20.1.0...21.0.0 )
[Compare
Source](https://togithub.com/benoitc/gunicorn/compare/20.1.0...21.0.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/libretime/libretime ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJweXRob24iXX0=-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-04-17 08:43:11 +02:00