Commit Graph

17929 Commits

Author SHA1 Message Date
Jonas L 5367bc8d61
feat(installer): use ed for config update (#2013) 2022-08-01 14:37:19 +02:00
Jonas L 6df1087abc
fix(shared): remove unused field from rabbitmq config (#2012) 2022-08-01 12:03:03 +02:00
jo bcd877266f feat(shared): load env config using jsonschema
The env loader is now capable of loading lists of objects, union types
or list of union types from the env variables.
They are some limitations: for example it doesn't support unions of
different shapes `list | dict` or `str | dict`.
2022-07-31 21:43:34 +02:00
jo 6c449e3019 fix(shared): validator value type can be wrong 2022-07-31 21:43:34 +02:00
jo dec51eacee test(shared): move config tests 2022-07-31 21:43:34 +02:00
Weblate (bot) 782a3b140e
chore(legacy): translated using weblate (German) (#2010)
Currently translated at 75.0% (714 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/de/

Co-authored-by: Domenik Töfflinger <domenikt96@yahoo.de>
2022-07-31 11:26:09 +02:00
Jonas L 140cf4427b
test: enable logs when running pytest (#2008) 2022-07-31 11:23:27 +02:00
Milo Ivir d7e6b6a776 chore(legacy): translated using weblate (Croatian)
Currently translated at 55.0% (524 of 951 strings)

Translation: LibreTime/Legacy
Translate-URL: https://hosted.weblate.org/projects/libretime/legacy/hr/
2022-07-30 21:19:16 +02:00
Jonas L 8a1fffe496
chore(api): add pytest-django settings module config (#2006) 2022-07-27 18:11:50 +02:00
jo 7bf3a3f085 style: format python imports 2022-07-27 18:11:34 +02:00
jo 160f5e14ce chore: add combine-as isort option 2022-07-27 18:11:34 +02:00
jo 22868ce158 chore: remove chdir in setup.py files 2022-07-27 15:35:57 +02:00
jo b93e1e5570 chore: install local python deps in editable mode 2022-07-27 15:35:57 +02:00
Jonas L e97b06496a
feat(api): don't use hyperlinked serializers (#1984) 2022-07-27 09:54:57 +02:00
Jonas L f137be09a1
fix(legacy): sanitize track_type_id when updating file (#2003)
Fixes #2000
2022-07-27 09:52:09 +02:00
Jonas L e6d24333cb
fix(installer): clean legacy files before copying (#2002) 2022-07-27 09:51:34 +02:00
Jonas L fc856c5667
fix(legacy): get local logo file (#1999)
Load logo content from the local file instead of the public location.
2022-07-27 09:51:14 +02:00
Jonas L 57d1f3a953
fix(api): update set_icecast_passwords StreamSetting fields (#2001) 2022-07-26 23:24:13 +02:00
Jonas L 94c64d2251
docs: add release instructions (#1995) 2022-07-26 18:00:43 +02:00
Jonas L 6f0ab7d8f2
fix(api-client): fix base_url joining for client v2 (#1998) 2022-07-26 17:57:14 +02:00
jo d9725003c5 feat(playout): integrate api-client v2 calls 2022-07-26 15:14:45 +02:00
jo d4110020c0 chore(api-client): config is only used by v1 2022-07-26 15:14:45 +02:00
jo cf9b08906b feat(api-client): rewrite api-client v2 2022-07-26 15:14:45 +02:00
Jonas L 067b35e9bb
feat(analyzer): load callback details from config and file_id (#1993) 2022-07-26 14:19:22 +02:00
Jonas L d93731807c
feat(worker): load callback details from config (#1994) 2022-07-26 14:18:41 +02:00
Jonas L 2d334d3ede
ci: website-preview use single comment (#1996) 2022-07-26 14:17:35 +02:00
Jonas L 951dc68394
feat(api): cast StreamSetting raw_value to value (#1991) 2022-07-26 14:16:34 +02:00
Jonas L e75426bc4c
refactor(shared): explode config into multiple files (#1987) 2022-07-25 21:30:15 +02:00
jo c395fd7f0a chore(analyzer): install missing requests types 2022-07-25 21:24:47 +02:00
jo 7bd369f20c refactor(analyzer): fix linting 2022-07-25 21:24:47 +02:00
jo 0babe0f243 chore(analyzer): clean old comments 2022-07-25 21:24:47 +02:00
jo 58230b7974 refactor(analyzer): remove unused import 2022-07-25 21:24:47 +02:00
jo fc53636c37 fix(analyzer): remove outdated urllib3 workaround 2022-07-25 21:24:47 +02:00
Jonas L 04c0b11901
test(api): create api_client pytest fixture (#1990) 2022-07-25 21:21:21 +02:00
Jonas L 2b973b2695
chore(api): don't scan tests files with bandit (#1989) 2022-07-25 21:20:45 +02:00
Jonas L 6dfd4dd086
test(api): always print logs while testing (#1988) 2022-07-25 21:20:18 +02:00
Jonas L 77f5c9951e
chore: improve setuptools find_packages (#1985) 2022-07-25 21:19:41 +02:00
jo b5267068e4 docs: add releases distributions support 2022-07-22 19:56:35 +02:00
jo fd709f74fc docs: create development section 2022-07-22 19:56:35 +02:00
Jonas L f08af1f3fa
feat(api): don't use trailing slashes (#1982) 2022-07-22 17:34:09 +02:00
Jonas L 368350b269
feat(playout): use single clients instance (#1980)
- Use legacy_client across playout code to make the difference between the old and new clients.
- Setup clients during initialization, and pass clients down to the different apps.
2022-07-22 16:26:43 +02:00
Jonas L f03605a6ce
chore: enable pylint recursive linting (#1981) 2022-07-22 16:26:06 +02:00
jo 473e770e8a feat: rename AirtimeApiClient to ApiClient 2022-07-22 15:00:38 +02:00
jo 6f2724dad1 fix(api-client): get status_code from response 2022-07-22 15:00:38 +02:00
jo f60f878eed chore(api-client): add requests typings for mypy 2022-07-22 15:00:38 +02:00
jo 9ca2d8ad94 chore: don't reuse local packages wheels 2022-07-22 15:00:38 +02:00
jo 8cb9bd5f32 chore(playout): update api-client imports 2022-07-22 15:00:38 +02:00
jo 8369d55eb9 chore(api-client): restructure modules 2022-07-22 15:00:38 +02:00
jo 71b3f7f065 chore: remove schedule unused independent_event 2022-07-20 12:05:01 +02:00
jo 10613cb20a chore(api): fix schema enum names 2022-07-19 19:52:54 +02:00