Wykres commitów

876 Commity (6f0cb1676d03ee6e5ee3a94c2934653c25a3a860)

Autor SHA1 Wiadomość Data
jo 47944b18de chore(api): maintain api version using poetry
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2332>
2023-01-31 06:57:32 +00:00
jo 9bf0367372 feat(api): find version using importlib.metadata
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2332>
2023-01-31 06:57:32 +00:00
jo 18dc07a214 chore: add changelog snippet
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2286>
2023-01-30 10:37:36 +01:00
jo c6f235ec8c feat: drop support for python3.7
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2342>
2023-01-30 09:24:27 +00:00
Philipp Wolfer 993fb426ee Support boolean config fields in plugins
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2334>
2023-01-30 09:08:41 +00:00
jo 65df7bf7a4 refactor: format api container file
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2299>
2023-01-30 08:55:06 +00:00
jo 6806adb4f5 test(api): lint code using pylint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2203>
2023-01-29 12:47:02 +00:00
Georg Krause 7504a5fa53 chore: Add deprecation changelog snippet
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2326>
2023-01-23 08:54:24 +01:00
jo c07aa0dbec fix(api): postgres connection details in docker setup
We properly recognize the docker setup to generate DATABASE_URL configuration.

Fix #2036

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2326>
2023-01-23 08:51:16 +01:00
Georg Krause f49a894204
chore: Add deprecation notice for Python 3.7 2023-01-22 13:26:43 +01:00
Philipp Wolfer 7da78afa43 maloja: fix submission of artist names
Payload must be submitted as JSON and artist must be an array

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2328>
2023-01-22 10:45:32 +00:00
Philipp Wolfer 097f803fab Docker: Do not publicly expose API port
The default docker-setup exposes the API container directly on port 5000. This should not be the case and is not needed, as API access is all routed through the frontend nginx reverse proxy.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2324>
2023-01-22 10:38:20 +00:00
Kasper Seweryn b0225d3513 chore: add changelog snippet
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2330>
2023-01-21 12:14:05 +00:00
wvffle 7f93311150 feat(ui): update upload status with error message if import failed
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2308>
2023-01-19 07:26:17 +00:00
Ciarán Ainsworth ee07023282 docs: use correct changlog fragment extension
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2318>
2023-01-18 14:18:44 +00:00
Ciarán Ainsworth c6cb00de48 docs: Add changelog for compose upgrade.
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2318>
2023-01-18 14:18:44 +00:00
jo ede69dd623 refactor(api): rename api composer/django/ dir to docker/
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2302>
2023-01-17 11:54:27 +00:00
jo 14b5e137bd
feat: prefer using the funkwhale-manage entrypoint
This replaces `poetry run python3 manage.py` with `venv/bin/funkwhale-manage`.

Command running `venv/bin/funkwhale-manage` assume the current working directory is `/srv/funkwhale` on common deployments.

In the funkwhale api docker image, the funwhale-manage command line
interface is available globally.
2023-01-16 02:11:07 +01:00
jo 75c9b1eabe
feat: don't use poetry in production deployments 2023-01-16 02:11:01 +01:00
jo 95d8ab5dd4
chore: remove changes/notes.rst 2023-01-13 16:55:04 +01:00
jo 216a858010 feat(api): split DATABASE_URL into multiple config variables
Introduces new database environment variables while keeping
backward compatibility with the now deprecated
POSTGRES_ENV_POSTGRES_USER POSTGRES_ENV_POSTGRES_PASSWORD
environment variables.

DATABASE_URL defaults to an auto generated url using the
`DATABASE_HOST`, `DATABASE_PORT`, `DATABASE_USER`,
`DATABASE_PASSWORD` and `DATABASE_NAME` variables.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2313>
2023-01-12 18:23:50 +00:00
Georg Krause 62653a2f62 chore: Move database url composition from custom script to django settings
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2313>
2023-01-12 18:23:50 +00:00
jo 165011ff6d
feat: improve docker caching
The apk dependencies will change less often than the venv from the builder.
2023-01-12 13:35:23 +01:00
jo 0b4319656a
feat: install api python package inside docker
This mainly allow users to use the `funkwhale-manage` entrypoint.
2023-01-12 13:35:22 +01:00
jo 85d4bd60d9
feat: don't buffer stdout/err in docker
This makes sure we don't loose any logs that might have been buffered and haven't been written to the docker logs.
2023-01-12 13:35:21 +01:00
jo 44904d80be
feat: don't compile python byte code in docker 2023-01-12 13:35:21 +01:00
Georg Krause 85e3984e3b fix: Can't purge failed files #1929
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2280>
2023-01-05 19:39:01 +01:00
Ciarán Ainsworth 101b1b6a23 fix(api): Add href to protected attributes
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2312>
2022-12-29 17:25:30 +00:00
jo a48f1b5449 fix: unpin asgiref
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2300>
2022-12-23 11:23:03 +00:00
jo bf20fcb694 refactor: format api pyproject.toml
Sort and group dependencies by usage.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2300>
2022-12-23 11:23:03 +00:00
Petitminion 03a5a83a3b Random and less listened radio filter out un-owned content on library section (#2007)
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2285>
2022-12-19 17:13:29 +00:00
jo b359bb6498 fix: timeout on spa manifest requests
The previous behaviour had a loop of requests between the front
app and the api when querying the pwa manifest.

This reduce the coupling around the pwa manifest file between the api
and the front app, by uplicating the files so each "service" has a copy
of it, while keeping them in sync and having the front pwa manifest as
single source of truth.

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2291>
2022-12-19 14:33:12 +01:00
jo 5356e9f268 feat: add manage.py backward compatible script
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2191>
2022-12-12 16:37:02 +01:00
jo 6f2ecf832c feat: create funkwhale-manage entrypoint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2191>
2022-12-12 16:31:00 +01:00
jo 29693806db feat: allow installing the funkwhale_api package
- update license identifier
- update description
- add links
- include all packages and data files
- exclude tests

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2191>
2022-12-12 16:30:55 +01:00
Georg Krause b55c2549bd fix(nginx): Remove trailing slash from reverse proxy configuration
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2253>
2022-12-07 07:32:48 +00:00
jo bf0e4935ea ci: cache lychee checked urls for 1 day
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2254>
2022-12-06 15:53:50 +01:00
Georg Krause e71003dbe0 refactor(front): Untangle Front- and Backend
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2039>
2022-12-05 13:59:05 +00:00
wvffle b94dd699db Add changelog snippet 2022-11-28 10:16:58 +00:00
Georg Krause b136273dd4 fix: Fix Serializer for inline channel artists 2022-11-26 20:23:17 +00:00
jo 452f2ee104 ci: remove docker_all_in_one_release job
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2221>
2022-11-26 19:32:46 +00:00
jo f60ba2d9be fix: docker nginx entrypoint
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2217>
2022-11-26 13:58:57 +00:00
jo d47fef0806 chore: fix shell scripts lint errors 2022-11-25 19:43:50 +00:00
jooola ff20988fbd chore: move api tools config to pyproject.toml 2022-11-25 19:41:38 +00:00
jo ae2d5fadfb
docs: harden security for debian install
Funkwhale only need to read the source/config files and read/write to
the data directories.
The source/config files manipulation must be handled by a privileged
user.
2022-11-25 15:25:01 +01:00
jooola 4cc7c86f04 test(api): fix warnings by renaming fixtures 2022-11-24 20:18:35 +00:00
JuniorJPDJ adaf99272c feat(front/Dockerfile): cross-build on native platform
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2194>
2022-11-24 06:25:41 +00:00
jo 9ff2e70325
chore: add missing changelogs for pre-commit 2022-11-24 01:43:36 +01:00
jo 054a9e54f5
docs: fix spelling errors (pre-commit) 2022-11-24 01:43:36 +01:00
JuniorJPDJ 753b5d71e9 fix linter 2022-11-23 12:25:16 +00:00