Commit Graph

49 Commits

Author SHA1 Message Date
Buster "Silver Eagle" Neece 8042fa9025
Part 1 of OpenAPI transition to Attributes. 2021-12-12 05:01:53 -06:00
Buster "Silver Eagle" Neece 79b1bc5c4a
PHPStan upgrade and new baseline.
Changelogs summary:

 - phpstan/phpstan updated from 0.12.96 to 1.0.1 major
   See changes: https://github.com/phpstan/phpstan/compare/0.12.96...1.0.1
   Release notes: https://github.com/phpstan/phpstan/releases/tag/1.0.1

 - phpstan/phpstan-doctrine updated from 0.12.44 to 1.0.1 major
   See changes: https://github.com/phpstan/phpstan-doctrine/compare/0.12.44...1.0.1
   Release notes: https://github.com/phpstan/phpstan-doctrine/releases/tag/1.0.1
2021-11-02 23:12:02 -05:00
Buster "Silver Eagle" Neece 91a744b244
Use ReloadableEntityManager across API controllers. 2021-10-29 01:16:26 -05:00
Buster "Silver Eagle" Neece a35e8bf27d
Standardize the Status responses for APIs. 2021-09-05 17:41:10 -05:00
Buster "Silver Eagle" Neece 02c653a36a
#4493 -- Broaden accepted arg types for Station API calls. 2021-08-19 22:22:21 -05:00
Buster "Silver Eagle" Neece 2cc4d131b9
Fixes #4493 -- Allow string/int on all Station APIs. 2021-08-19 10:20:36 -05:00
Buster "Silver Eagle" Neece 5cbacd5df6
System-Wide Strict Types (#4405) 2021-07-19 00:53:45 -05:00
Buster "Silver Eagle" Neece 3f23efa076
PHP code style fixes. 2021-06-08 01:40:49 -05:00
Buster "Silver Eagle" Neece e893a93981
Routine PHP 8 code inspection sweep
- Removing explicit calls to default values
 - Add strict parameter arguments
 - Use PHP8 built-in functions when possible
2021-04-23 17:12:47 -05:00
Buster "Silver Eagle" Neece f117644649
Apply PHP8-specific improvements. 2021-04-23 00:24:12 -05:00
Buster "Silver Eagle" Neece c5352c42be
Update to Flysystem V2 (#3956) 2021-03-31 11:42:24 -05:00
Buster "Silver Eagle" Neece 350d3ce97c
Fixes #3813 -- Remove file from filesystem in `DELETE` call to Files API. 2021-02-13 17:42:36 -06:00
Buster "Silver Eagle" Neece bb97376a2e
#3618 -- Fix shared media between stations. 2020-12-31 17:18:45 -06:00
Buster "Silver Eagle" Neece 7d927b86ea
#3553 -- Update modified time even with silent errors. 2020-12-14 16:39:32 -06:00
Buster "Silver Eagle" Neece 56c62fd762
#3488 -- Add ability to set playlists in media edit modal.
Also fix a bug where playlists set via API didn't actually set.
2020-12-13 14:02:40 -06:00
Buster "Silver Eagle" Neece 731f16a494
Update raw DQL queries across the system to improve readability. 2020-12-01 18:36:09 -06:00
Buster "Silver Eagle" Neece 2eb3d4bc1c
Fixes #3406 -- Error with renaming file in media edit dialog. 2020-11-13 14:51:26 -06:00
Buster "Silver Eagle" Neece 6de636f475
Unified Filesystem Overhaul (#3341)
This migration adds "Storage Locations", managed via a new System Administration panel, that can hold Station Media data, live broadcast recordings, and backups. These storage locations can be local (as they are by default) or remote via any S3-compatible service.
2020-11-09 21:06:48 -06:00
Vaalyn 9a94e6a178
Add PHPCS for code style checks (#3273) 2020-10-14 17:19:31 -05:00
Buster "Silver Eagle" Neece 5eafa64326
Avoid resetting playback queues entirely when adding/removing a track. 2020-10-08 03:52:09 -05:00
Buster "Silver Eagle" Neece c81ff62b5c
Remove the `Song` entity and restructure dependent tables accordingly (#3231)
* Song database and entity overhaul, part 1.
* Remove Songs table from a number of qeries and reports.
* Fix references to Songs table; rewrite StationMedia processing.
* Remove song reference in queue page.
* Allow custom log level via environment variable.
2020-10-04 17:35:41 -05:00
Buster "Silver Eagle" Neece 16ce83be51
Remove unused code. 2020-07-08 19:30:58 -05:00
Buster "Silver Eagle" Neece 2abb8bf623
Routine code cleanup. 2020-07-08 02:03:50 -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 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 85991b7546
Preemptive changes to prepare for Doctrine ORM 3.0. 2020-06-25 13:44:26 -05:00
Buster "Silver Eagle" Neece 769de19d00
Big Visual Waveform Editor Overhaul
- Refactor Flysystem to use constants instead of magic strings for URL prefixes
 - Add audiowaveform installation to both Docker and Ansible installations
 - Use audiowaveform to generate waveforms saved to disk for every track
 - Load these waveforms when visiting the visual waveform editor page instead of using the browser to calculate them
 - Add volume control and use app-wide storage of default volume
 - Remove "beta" tag from waveform editor header
2020-05-11 19:32:41 -05:00
Buster "Silver Eagle" Neece 0658b689dd
#2735 -- Allow station files to be selected by media unique ID or song ID. 2020-05-06 00:59:39 -05:00
Buster "Silver Eagle" Neece 42c2676789
Standardize API controllers to PSR standards, rename functions. 2020-02-22 14:27:14 -06:00
Buster "Silver Eagle" Neece 81d7ae8509
Have APIs return relative URIs for internal calls (to avoid URI issues). 2020-02-22 14:15:02 -06:00
Buster "Silver Eagle" Neece 8e08b7b798
Remove now-redundant PHPDoc blocks that don't add context. 2019-12-07 17:42:23 -06:00
Buster "Silver Eagle" Neece 1a6d1d620d
Add PHP 7.4 type hinting everywhere except Entities. 2019-12-07 06:19:49 -06:00
Buster "Silver Eagle" Neece fe09b2c9c0
#2128 -- Persist entity before modifying schedules. 2019-11-08 16:59:16 -06:00
Buster "Silver Eagle" Neece 19dd927189
Finish initial buildout of new playlist editor. 2019-11-06 15:19:32 -06:00
Buster "Silver Eagle" Neece 6a9d351d64
Switch to message queue playlist writing for all playlist changes. 2019-10-29 15:58:55 -05:00
Buster "Silver Eagle" Neece 7f96916a0d
#2076 -- Revamp how album art changes are handled.
- All media rows will have an "art_updated_at" field that tracks the latest time the art was changed for the file.
- If this field is set to zero (0), the system will return the default album art instead of attempting to resolve an album art URL that we know won't go anywhere.
- The timestamp of the latest update is now included in the album art image SRC, so we can maintain our very long caches without interfering with album art updates.
2019-10-24 14:37:27 -05:00
Buster "Silver Eagle" Neece c46895cd57
#2073 -- Properly write to file from API endpoint call. 2019-10-20 00:14:37 -05:00
Buster "Silver Eagle" Neece 8ea9e1d9d0
Fix files controllers; add auto-mapping custom fields. 2019-09-30 17:06:02 -05:00
Buster "Silver Eagle" Neece bd42b64de0
Add spaces to phpdoc blocks and optimize imports. 2019-09-20 11:44:38 -05:00
Buster "Silver Eagle" Neece 630d0cb099
Add "Exception" to all exception names. 2019-09-10 11:40:31 -05:00
Buster "Silver Eagle" Neece db8a5f4581
Update to using PHP-DI bridge and its function invocation method. 2019-09-09 21:30:05 -05:00
Buster "Silver Eagle" Neece 513d04f7d2
Code cleanup! 2019-09-04 13:00:51 -05:00
Buster Neece 2f8ab5544a
Switch back to Request/Response decorators. 2019-08-09 10:00:21 -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
Vaalyn 423b9195ca Fix issue #1479 2019-04-26 18:46:27 +02:00
Buster Neece d94c637c66
Implement remaining basic Files API endpoints. 2019-04-24 19:16:12 -05:00
Buster Neece 843ee276ff
Start implementing custom normalization/denormalization. 2019-04-24 10:14:58 -05:00
Buster Neece 8e30a4e48d
Implement special uploading endpoint and general CRUD endpoints. 2019-04-24 08:58:04 -05:00
Buster Neece 69eff1ead9
Initial work on files API endpoints. 2019-04-22 06:19:21 -05:00