Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add background job and bump version Signed-off-by: Marvin Winkens <[email protected]> * add group, scheduleTime and deleteTime fields to Announcements Signed-off-by: Marvin Winkens <[email protected]> * add scheduleTime and deleteTime to API Signed-off-by: Marvin Winkens <[email protected]> * add AnnouncementScheduler together with processing service Signed-off-by: Marvin Winkens <[email protected]> * rework publishing in order to not directly publish if an Annoucement is added Signed-off-by: Marvin Winkens <[email protected]> * advance frontend and add new buttons Signed-off-by: Marvin Winkens <[email protected]> * improve service by filtering out jobs with 0 scheduleTime or deleteTime Signed-off-by: Marvin Winkens <[email protected]> * fix annoucementSchedulerJob copy pasta from developer manual Signed-off-by: Marvin Winkens <[email protected]> * fix unit tests by adding default values Signed-off-by: Marvin Winkens <[email protected]> * fix various linting issues Signed-off-by: Marvin Winkens <[email protected]> * Fix sequence Signed-off-by: Marvin Winkens <[email protected]> * rename old BackgroundJob in order to reduce name confusion Signed-off-by: Marvin Winkens <[email protected]> * add notification options to database in order to schedule them later Signed-off-by: Marvin Winkens <[email protected]> * move notification execution into Manager Signed-off-by: Marvin Winkens <[email protected]> * fix issues with the background job Signed-off-by: Marvin Winkens <[email protected]> * fix typos Signed-off-by: Marvin Winkens <[email protected]> * fix linting issues Signed-off-by: Marvin Winkens <[email protected]> * fix new constructors Signed-off-by: Marvin Winkens <[email protected]> * fix wrong number of argument for announce function since notificationOptions are missing Signed-off-by: Marvin Winkens <[email protected]> * register services missing for proper dependency injection Signed-off-by: Marvin Winkens <[email protected]> * bump version Signed-off-by: Marvin Winkens <[email protected]> * fix annoying typo preveting background job to work Signed-off-by: Marvin Winkens <[email protected]> * fix announcements not being updated when scheduled due to changed database id Signed-off-by: Marvin Winkens <[email protected]> * fix linting issues Signed-off-by: Marvin Winkens <[email protected]> * only allow scheduled annouce and deletion dates in the future Signed-off-by: Marvin Winkens <[email protected]> * remove dependency injections Signed-off-by: Marvin Winkens <[email protected]> * fix tests using wrong TestCase class Signed-off-by: Marvin Winkens <[email protected]> * Add unittests for annoucement scheduling Signed-off-by: Marvin Winkens <[email protected]> * fix linting Signed-off-by: Marvin Winkens <[email protected]> * minor refactoring Signed-off-by: Marvin Winkens <[email protected]> * Update lib/AnnouncementSchedulerJob.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: Marvin Winkens <[email protected]> * Update lib/Migration/Version6009Date20240311074015.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: Marvin Winkens <[email protected]> * Update lib/Migration/Version6009Date20240311074015.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: Marvin Winkens <[email protected]> * Update lib/Migration/Version6009Date20240311074015.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: Marvin Winkens <[email protected]> * Update tests/AnnouncementSchedulerJobTest.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: Marvin Winkens <[email protected]> * Update tests/Model/NotificationTypeTest.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: Marvin Winkens <[email protected]> * Update tests/Service/AnnouncementSchedulerProcessorTest.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: Marvin Winkens <[email protected]> * minor adjustments, adding license, linting, removing unused methods Signed-off-by: Marvin Winkens <[email protected]> * Update src/Components/NewForm.vue Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * Update src/Components/NewForm.vue Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * remove logger from job construction Signed-off-by: Marvin Winkens <[email protected]> * chore: update workflows from templates Signed-off-by: skjnldsv <[email protected]> * Fix(l10n): Update translations from Transifex Signed-off-by: Nextcloud bot <[email protected]> * Updating phpunit-mysql.yml workflow from template Signed-off-by: Nextcloud bot <[email protected]> * chore(deps): Bump follow-redirects from 1.15.4 to 1.15.6 Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.4...v1.15.6) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * chore(deps): Bump @nextcloud/vue from 8.9.1 to 8.11.0 Bumps [@nextcloud/vue](https://github.com/nextcloud-libraries/nextcloud-vue) from 8.9.1 to 8.11.0. - [Release notes](https://github.com/nextcloud-libraries/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud-libraries/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](nextcloud-libraries/nextcloud-vue@v8.9.1...v8.11.0) --- updated-dependencies: - dependency-name: "@nextcloud/vue" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * chore(deps-dev): Bump psalm/phar from 5.22.2 to 5.23.1 Bumps [psalm/phar](https://github.com/psalm/phar) from 5.22.2 to 5.23.1. - [Release notes](https://github.com/psalm/phar/releases) - [Commits](psalm/phar@5.22.2...5.23.1) --- updated-dependencies: - dependency-name: psalm/phar dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix(settings): Fix missing admin settings Signed-off-by: Joas Schilling <[email protected]> * fix(UI): Fix missing names after vue lib update Signed-off-by: Joas Schilling <[email protected]> * fix(form): Fix event-trigger for searching more groups Signed-off-by: Joas Schilling <[email protected]> * fix(form): Add label for accessibility Signed-off-by: Joas Schilling <[email protected]> * chore(release): Bump version to 6.8.1 Signed-off-by: Joas Schilling <[email protected]> * fix(form): Fix accessibility label option Signed-off-by: Joas Schilling <[email protected]> * Fix(l10n): Update translations from Transifex Signed-off-by: Nextcloud bot <[email protected]> * chore(deps): Bump @nextcloud/vue from 8.11.0 to 8.11.1 Bumps [@nextcloud/vue](https://github.com/nextcloud-libraries/nextcloud-vue) from 8.11.0 to 8.11.1. - [Release notes](https://github.com/nextcloud-libraries/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud-libraries/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](nextcloud-libraries/nextcloud-vue@v8.11.0...v8.11.1) --- updated-dependencies: - dependency-name: "@nextcloud/vue" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * chore(deps-dev): Bump webpack-dev-middleware from 5.3.3 to 5.3.4 Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4. - [Release notes](https://github.com/webpack/webpack-dev-middleware/releases) - [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md) - [Commits](webpack/webpack-dev-middleware@v5.3.3...v5.3.4) --- updated-dependencies: - dependency-name: webpack-dev-middleware dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * chore(deps-dev): Bump phpunit/phpunit from 9.6.17 to 9.6.18 Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.17 to 9.6.18. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/9.6.18/ChangeLog-9.6.md) - [Commits](sebastianbergmann/phpunit@9.6.17...9.6.18) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Add CLI commands for annonce, list and delete Signed-off-by: Marvin Winkens <[email protected]> * add limit to the optional parameters of list Signed-off-by: Marvin Winkens <[email protected]> * overengineer table output Signed-off-by: Marvin Winkens <[email protected]> * Switch from left to right pad Signed-off-by: Marvin Winkens <[email protected]> * make a lot of parameters optional, properly handle boolean type parameters and make group an array like option Signed-off-by: Marvin Winkens <[email protected]> * properly catch if the announcement ID which should get deleted exists Signed-off-by: Marvin Winkens <[email protected]> * fix formatting Signed-off-by: Marvin Winkens <[email protected]> * Send user schedule and deletion date if entered Signed-off-by: Marvin Winkens <[email protected]> * add check, that the announcement has any notification option Signed-off-by: Marvin Winkens <[email protected]> * fix description Signed-off-by: Marvin Winkens <[email protected]> * add license Signed-off-by: Marvin Winkens <[email protected]> * Capitalize description Signed-off-by: Marvin Winkens <[email protected]> * add missing psalm classes Signed-off-by: Marvin Winkens <[email protected]> * add unit tests for CLI commands Signed-off-by: Marvin Winkens <[email protected]> * add symfony dev dependency Signed-off-by: Marvin Winkens <[email protected]> * remove smyfony composer dependency and remove symfony static integer due to not working on older versions Signed-off-by: Marvin Winkens <[email protected]> * remove callHidden helper function and use self::invokePrivate instead Signed-off-by: Marvin Winkens <[email protected]> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * return an error value instead of throwing an exception Signed-off-by: Marvin Winkens <[email protected]> * test for result values bigger than zero and not for exceptions Signed-off-by: Marvin Winkens <[email protected]> * fix composer issues Signed-off-by: Marvin Winkens <[email protected]> * fix test being broken due to removed exception Signed-off-by: Marvin Winkens <[email protected]> * remove restriction on notification types for CLI This allows to add announcements without a notification type, which the API allows, these notifications will still appear in the notification app listed Signed-off-by: Marvin Winkens <[email protected]> * Update lib/Command/AnnouncementList.php Co-authored-by: Joas Schilling <[email protected]> Signed-off-by: mwinkens <[email protected]> * remove linebreaks from list command Signed-off-by: Marvin Winkens <[email protected]> * fix test not properly setting non exististing user Signed-off-by: Marvin Winkens <[email protected]> --------- Signed-off-by: Marvin Winkens <[email protected]> Signed-off-by: mwinkens <[email protected]> Signed-off-by: skjnldsv <[email protected]> Signed-off-by: Nextcloud bot <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Joas Schilling <[email protected]> Co-authored-by: Joas Schilling <[email protected]> Co-authored-by: skjnldsv <[email protected]> Co-authored-by: Nextcloud bot <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joas Schilling <[email protected]>
- Loading branch information