4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-21 00:17:09 +00:00
Commit Graph

204 Commits

Author SHA1 Message Date
Vaalyn
4f994edcf3
Update for Composer 2.0 (#3361) 2020-11-01 19:41:51 -06:00
Buster "Silver Eagle" Neece
6df42a73be
Update unit tests to reflect new standalone StationProfile component. 2020-10-16 04:48:26 -05:00
Vaalyn
9a94e6a178
Add PHPCS for code style checks (#3273) 2020-10-14 17:19:31 -05:00
Buster "Silver Eagle" Neece
a6ec36b21c
Analytics Overhaul and InfluxDB Removal (#3243)
- Make the Analytics table in the database the primary one for handling statistics for all stations, removing the InfluxDB dependency entirely
 - Expand the Analytics table to also track unique listeners per hour and day
 - Properly clean up the Listeners table according to each installation's history retention settings
 - Implement a cute new animated "waiting for services" startup message that avoids previous wait messages that looked more like errors
2020-10-07 18:50:30 -05:00
Buster "Silver Eagle" Neece
7bac35b2ff
Switch to new Symfony Lock component for our mutex locks. 2020-09-26 12:50:47 -05:00
Buster "Silver Eagle" Neece
0cc3775480
Update to use official release version of Influxdb-PHP 2020-09-18 09:02:58 -05:00
Buster "Silver Eagle" Neece
69e48dd965
Implement improved var dumping on dev instances. 2020-09-16 08:50:00 -05:00
Buster "Silver Eagle" Neece
06c301a03b
Revert to previous phpstan usage (the new one breaks stuff). 2020-08-31 18:27:30 -05:00
Buster "Silver Eagle" Neece
5b2e427209
Remove --no-scripts on Dockerfile (for phpstan detection). 2020-08-31 17:48:10 -05:00
Buster "Silver Eagle" Neece
511eccfc1e
Fixes to PHPStan and minor typo fixes. 2020-08-31 03:28:40 -05:00
Buster "Silver Eagle" Neece
b39e8cb417
Update zircote/swagger-api deps. 2020-08-29 20:15:02 -05:00
Buster "Silver Eagle" Neece
bb5123c25c
Switch to production branch of SupervisorPHP. 2020-08-25 11:19:48 -05:00
Buster "Silver Eagle" Neece
7340f349dd
Composer dependencies update. 2020-08-24 20:49:37 -05:00
Buster "Silver Eagle" Neece
16ce83be51
Remove unused code. 2020-07-08 19:30:58 -05:00
Buster "Silver Eagle" Neece
994d5b2986
Switch from Cakephp/Chronos to CarbonImmutable. 2020-07-08 18:50:44 -05:00
Buster "Silver Eagle" Neece
70691c6d72
#3018 -- Overwrite changes for Composer on Ansible installs. 2020-07-08 16:48:48 -05:00
Buster "Silver Eagle" Neece
2abb8bf623
Routine code cleanup. 2020-07-08 02:03:50 -05:00
Buster "Silver Eagle" Neece
a0bb25782d
Minor composer updates. 2020-07-05 23:29:55 -05:00
Buster "Silver Eagle" Neece
26088a36ba
Move to Guzzle 7.x for PSR-18-compatible client. 2020-07-05 21:36:50 -05:00
Buster "Silver Eagle" Neece
62763250ca
Remove Sentry, simplify error handling.
Developer's note: the Sentry team has been very supportive of open-source and is good people! We simply don't use the library enough on our end to justify its dependencies in our codebase.
2020-07-04 11:08:53 -05:00
Buster "Silver Eagle" Neece
0adda37403
Incorporate new NowPlaying library
- Move much of AzuraCast's merging and client integration into the library itself
 - The library now uses typed properties on a return object for much more reliable hinting
 - Update both this library and SupervisorPHP to use PSR-17 and PSR-18 standardized factories
2020-07-03 15:24:04 -05:00
Buster "Silver Eagle" Neece
90e12fec62
Update supervisorphp lib again to get new exception classes. 2020-07-01 20:03:28 -05:00
Buster "Silver Eagle" Neece
b96d8dbaac
Update SupervisorPHP version to 4.x alpha branch. 2020-07-01 19:26:26 -05:00
Buster "Silver Eagle" Neece
5bb463a5fe
More outdated dependency updates. 2020-06-28 22:55:44 -05:00
Buster "Silver Eagle" Neece
9efa5a651e
Replace Bernard message queue with Symfony Messenger 5 2020-06-28 11:29:22 -05:00
Buster "Silver Eagle" Neece
2561fa0eae
Update several dependencies to newer releases. 2020-06-27 16:55:35 -05:00
Buster "Silver Eagle" Neece
4bcfad3eb5
Updates preparing for Doctrine 3.0
- Switch to EntityManagerInterface for EM uses
 - Wrap EntityManager in close-resilient wrapper
 - Close/clear/reopen EM with every request
 - Rework tests to be em->clear() resilient.
2020-06-26 15:22:53 -05:00
Buster "Silver Eagle" Neece
0dea2de081
Update to Doctrine Migrations 3.x. 2020-06-25 03:47:49 -05:00
Buster "Silver Eagle" Neece
196a96d784
Update composer deps including Mezzio SameSite cookie support. 2020-06-17 20:21:49 -05:00
Buster "Silver Eagle" Neece
ae4972f15b
Composer dependency update and minor functional test tweaks. 2020-06-06 05:14:50 -05:00
Buster "Silver Eagle" Neece
1cbb5713a9
Avoid 3 Composer dep installs in CI. 2020-05-29 04:48:19 -05:00
Buster "Silver Eagle" Neece
1a977119fb
Download latest translations and run static build during CI/CD. (#2893) 2020-05-28 20:01:29 -05:00
Buster "Silver Eagle" Neece
282f8527d7
Switch source of SwaggerPHP code. 2020-05-06 19:02:44 -05:00
Buster "Silver Eagle" Neece
4dcbb222d6
Temporarily switch SwaggerPHP branch for strict type API doc generation. 2020-04-26 06:15:15 -05:00
Buster "Silver Eagle" Neece
6fcc8e600f
Partially revert Mutex changes and extend previously used class. 2020-04-06 00:49:20 -05:00
Buster "Silver Eagle" Neece
07ac05f990
Switch from Redis Mutex to a simpler local Lock mechanism. 2020-04-04 00:48:27 -05:00
Buster "Silver Eagle" Neece
81fbf023b0
Add ability to supply a banned listener IP list via the web interface. 2020-03-01 18:03:03 -06:00
Buster "Silver Eagle" Neece
a6df2ef111
Use a Redis-backed Mutex for critical functions that can't overlap. 2020-02-12 05:29:33 -06:00
Buster "Silver Eagle" Neece
4d4d75ad4d
Reunify AzuraCore and AzuraCast repositories. 2020-02-05 20:35:13 -06:00
Buster "Silver Eagle" Neece
6b92475d8d
Unify to a single console command location. 2020-01-24 23:08:25 -06:00
Buster "Silver Eagle" Neece
22d8f8c241
Update dependencies; move from Zend to Laminas. 2020-01-17 20:35:09 -06:00
Buster "Silver Eagle" Neece
651803fda5
#2003 -- Rewrite and optimize the Radio Automation code. 2020-01-17 17:40:50 -06:00
Buster "Silver Eagle" Neece
23a47ac341
Code quality and IDE inspection fixes. 2019-12-06 18:57:50 -06:00
Buster "Silver Eagle" Neece
83a1e4c385
Revert "Add coverage back to test suite."
This reverts commit 8fbf60254f.
2019-12-05 22:37:55 -06:00
Buster "Silver Eagle" Neece
8fbf60254f
Add coverage back to test suite. 2019-12-05 22:28:15 -06:00
Buster "Silver Eagle" Neece
b723a6fc29
Switch to no-coverage unit test until issue is fixed with performance. 2019-11-29 22:26:29 -06:00
Buster "Silver Eagle" Neece
6bee06ee93
Switch to using a recursive iterator for media processing. 2019-10-29 19:27:59 -05:00
Buster "Silver Eagle" Neece
14cdc41ed8
#2010 -- Use a "smarter" encoding detection for song ID3 data. 2019-10-02 18:28:52 -05:00
Buster Neece
d06cec2dc9
Update Sentry SDK 2019-08-10 12:33:03 -05:00
Buster Neece
9790307266
Update AzuraCore; switch to PSR-16 SimpleCache interface. 2019-08-07 12:50:48 -05:00
Buster "Silver Eagle" Neece
639dddf989
Slim PHP Framework 4 Update (#1822)
Implement an upgrade of the codebase to use Slim Framework version 4, which includes the following changes:
 - Updating to Slim version 4 and the corresponding AzuraCore updates.
 - Making all objects PSR-7 Request/Response agnostic (and creating RequestHelper and ResponseHelper objects to interact with the PSR-7 Req/Resp objects).
 - Moving to PHP-DI as a DI container and implementing its autowiring support.
2019-08-06 23:33:55 -05:00
Buster Neece
68fc440b42
Implement deep_copy in favor of PHP's own clone. 2019-05-01 18:54:30 -05:00
Buster Neece
48f104d8cd
Improve Sentry integration. 2019-03-22 20:22:32 -05:00
Buster Neece
0bb68f7a9e
Minor code quality fixes, test Sentry integration on dev. 2019-03-22 17:07:17 -05:00
Buster Neece
b053abae04 Finish implementing 2FA in profile and login. 2019-03-14 03:40:02 -05:00
Buster Neece
b9e821debd Switch logging to be managed/rotated by Supervisord.
Rationale: under the current system, Supervisord simply pipes its per-process logs out to stdout/stderr on Docker, meaning it has no ability to read back those logs in the case of an error, leading to cryptic error messages like "SPAWN_ERROR" instead of the actual problem. This refactors the logging to be handled by Supervisord, which also is itself capable of log rotation (removing the need for AzuraCast to rotate radio software logs).
2019-03-07 20:01:51 -06:00
Buster "Silver Eagle" Neece
c975e8c081 Make menus configuration-driven so plugins can extend them. 2019-02-23 23:28:01 -06:00
Buster "Silver Eagle" Neece
d9a5eeed13 #1149 -- Consolidate fromArray/toArray and Serializer, add smart type casting. 2019-02-05 11:22:05 -06:00
Buster "Silver Eagle" Neece
e1cb909a17 #1145 -- Make composer package name lowercase. 2019-02-03 10:54:35 -06:00
Buster "Silver Eagle" Neece
798d020800 Simplify testing into a single "composer test" command. 2019-01-31 15:58:20 -06:00
Buster "Silver Eagle" Neece
7fa44db264 More minor code fixes, add linting to CI and docker.sh script. 2019-01-31 14:29:45 -06:00
Buster "Silver Eagle" Neece
8a6701403a Code and PHPDoc cleanup to green-light level 2 static analysis. 2019-01-31 11:54:17 -06:00
Vaalyn
a174c3ba5b Add phpstan as dev dependency (#1130)
* Add PHPStan as dev dependency with configuration

* Remove TODO
2019-01-30 20:49:36 -06:00
Buster "Silver Eagle" Neece
c1f2017052
Implement #368 -- Add administrator-set storage quotas to individual stations. (#1122)
* Implement station quotas at DB level, switch to big-int math for checks.
* Update AzuraCore
* No longer try to auto-typecast fields (let the setters do that).
* Implement admin form, fix Flow error displays, implement checking/adding quota.
* Decrement from quota when a file is deleted.
* More robust handling of empty values.
2019-01-28 14:47:19 -06:00
Buster "Silver Eagle" Neece
55011eef50 Fix extraneous comma in composer manifest. 2018-12-30 04:35:09 -06:00
Buster "Silver Eagle" Neece
13e0c744c6 Implement message queue and worker for media processing/import tasks. 2018-12-30 04:18:48 -06:00
Buster "Silver Eagle" Neece
10fd33669e Move swagger-PHP to prod dependencies. 2018-12-26 07:18:39 -06:00
Buster "Silver Eagle" Neece
b2c6b5e54e Create new abstract CRUD API containers. 2018-12-20 04:25:24 -06:00
Buster "Silver Eagle" Neece
a21cd55afe Add S3 dep directly to the AzuraCast core. 2018-12-13 12:40:09 -06:00
Buster "Silver Eagle" Neece
70914a67c1
Implement Flysystem, move album art to filesystem, fix related issues #953 #962 (#1022)
* Initial entity and dependency commit.

* Create migration test for album art move.

* File management controller refactor and further wiring of Flysystem.

* Form/UI fixes and refactors related to Flysystem.

* Update composer deps and add merge plugin to avoid dep overlap.

* Fix batch moving/directory listing, add lightboxing to files manager.

* Fix album art writing, use special upload method to skip disk round-trip.

* Migrate StationRepository to be DI-driven, update unit tests and the setup controller.
2018-12-05 01:15:51 -06:00
Buster "Silver Eagle" Neece
5e8693ecad IDE type-hinting fixes. 2018-11-17 09:20:19 -06:00
Buster "Silver Eagle" Neece
6ebd158630 Use constants for Settings values (best practice) and implement update checks 2018-11-15 07:41:52 -06:00
Buster "Silver Eagle" Neece
854cb93261
Architecture change: Integrate common AzuraCore code (#944)
* Update composer.json/lock
* Update CLI console commands
* All AzuraCore refactors except folder moves.
* MVP for all core functionality.
* Working unit/functional tests
* Remove DB dump from util/, replace with direct migration.
* Update AzuraCore, define testing mode earlier.
2018-11-12 10:59:15 -06:00
Buster "Silver Eagle" Neece
027d571543 #909 -- Make version include commit and date from git metadata. 2018-11-02 00:25:47 -05:00
Buster "Silver Eagle" Neece
e064da4f4d #885 -- Implement AzuraCast-side Liquidsoap log rotation. 2018-10-29 00:19:07 -05:00
Buster "Silver Eagle" Neece
fef1c487bb Remove packaged/helpers as it was only used in 2 places. 2018-09-29 06:37:14 -05:00
Buster "Silver Eagle" Neece
61f2ed9a38 Composer updates, add Console as explicit dep to play with 4.2 when it's out 2018-09-25 03:59:09 -05:00
Buster "Silver Eagle" Neece
6cc62173b5 Remove unused Composer deps 2018-09-23 09:41:06 -05:00
Buster "Silver Eagle" Neece
33210b9450 Begin work on custom code plugins support. 2018-09-21 07:04:05 -05:00
Buster "Silver Eagle" Neece
989bbd39a1 #802 -- Update to OpenAPI 3.0 spec 2018-09-18 09:09:48 -05:00
Buster "Silver Eagle" Neece
d051e00a69 Use the new azuracast/nowplaying library to abstract NP generation. 2018-09-13 12:45:56 -05:00
Buster "Silver Eagle" Neece
2e631c9502 Use Certainty library for SSL CA bundles, implement DI-injected HTTP Client 2018-09-06 20:08:47 -05:00
Buster "Silver Eagle" Neece
082d564465 Restructure web hook configuration; create new "Test" function; improve display of test pages. 2018-08-12 01:35:48 -05:00
Buster "Silver Eagle" Neece
828385c78f Add the other extensions to composer.json 2018-08-10 04:09:27 -05:00
Buster "Silver Eagle" Neece
e425ad06ca Add extension deps to composer.json 2018-08-08 01:31:36 -05:00
Buster "Silver Eagle" Neece
98ff8f69cf
Core code restructure (#697)
* Initial renaming to a single global App\ namespace.
* Move CSRF/Flash under Session, move Session under Request
* Use new Request Station helper
* Unify App/Acl and App/Acl/StationAcl
* Alphabetize composer.json
2018-08-04 17:05:14 -05:00
Buster "Silver Eagle" Neece
b7c21e0ea7 Update Doctrine DBAL to reflect latest release 2018-07-23 02:31:40 -05:00
Buster "Silver Eagle" Neece
f684e83166 Composer update and ignoring autogenned unit test files. 2018-07-13 14:46:36 -05:00
Buster "Silver Eagle" Neece
6be12cf98d Implement Symfony finder to replace some scandirs. 2018-07-06 21:41:07 -05:00
Buster "Silver Eagle" Neece
75c3672e25 #628 -- Switch all IP geolocation to be local via the MaxMind GeoLite DB. 2018-07-03 17:51:05 -05:00
Buster "Silver Eagle" Neece
ad312fa94e Switch to fixtures for local dev. 2018-05-04 17:04:30 -05:00
Buster "Silver Eagle" Neece
1f08c307e0
#566 / #567 Sequential Playlists with Reordering Page (#573)
- Expand the ManyToMany relationship between StationMedia and StationPlaylist to include both a "weight" and "last_played" parameter, to allow for sequential playlists.
- Implement Sequential playlist support
- Create new "reorder playlist" page
2018-04-29 18:48:48 -05:00
Buster "Silver Eagle" Neece
c1acff7100 Make playlist scheduling unit-testable, and build a unit test for it. 2018-04-07 19:17:22 -05:00
Buster "Silver Eagle" Neece
848dc9e7ee #523 -- Smarter handling of timezones, especially for playlists 2018-03-28 01:07:56 -05:00
Buster "Silver Eagle" Neece
8ac6f440be Switch to very specific version of Doctrine DBAL library. 2018-03-21 11:06:55 -05:00
Buster "Silver Eagle" Neece
b016c09fea Migration generator fixes and station webhook name addition. 2018-03-20 11:31:55 -05:00
Buster "Silver Eagle" Neece
cb69953446 Update composer dependencies. 2018-03-19 15:36:22 -05:00
Buster "Silver Eagle" Neece
8b3cd5d03d Switch to pure PHP-based translations library to remove gettext dependency. 2018-03-18 20:31:43 -05:00
Buster "Silver Eagle" Neece
3cc91c5cd2 Replace in-page debugging with Monolog writing to multiple locations. 2018-02-27 00:28:09 -06:00
Buster "Silver Eagle" Neece
5513ca06a2 Switch dependencies to new AzuraForms; remove CodeClimate (and thus the Guzzle\Guzzle error) 2018-02-25 11:47:48 -06:00