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 <m.winkens@fz-juelich.de> * add group, scheduleTime and deleteTime fields to Announcements Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add scheduleTime and deleteTime to API Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add AnnouncementScheduler together with processing service Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * rework publishing in order to not directly publish if an Annoucement is added Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * advance frontend and add new buttons Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * improve service by filtering out jobs with 0 scheduleTime or deleteTime Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix annoucementSchedulerJob copy pasta from developer manual Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix unit tests by adding default values Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix various linting issues Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Fix sequence Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * rename old BackgroundJob in order to reduce name confusion Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add notification options to database in order to schedule them later Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * move notification execution into Manager Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix issues with the background job Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix typos Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix linting issues Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix new constructors Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix wrong number of argument for announce function since notificationOptions are missing Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * register services missing for proper dependency injection Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * bump version Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix annoying typo preveting background job to work Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix announcements not being updated when scheduled due to changed database id Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix linting issues Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * only allow scheduled annouce and deletion dates in the future Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * remove dependency injections Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix tests using wrong TestCase class Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Add unittests for annoucement scheduling Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix linting Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * minor refactoring Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update lib/AnnouncementSchedulerJob.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update lib/Migration/Version6009Date20240311074015.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update lib/Migration/Version6009Date20240311074015.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update lib/Migration/Version6009Date20240311074015.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update tests/AnnouncementSchedulerJobTest.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update tests/Model/NotificationTypeTest.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update tests/Service/AnnouncementSchedulerProcessorTest.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * minor adjustments, adding license, linting, removing unused methods Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update src/Components/NewForm.vue Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * Update src/Components/NewForm.vue Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * remove logger from job construction Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * chore: update workflows from templates Signed-off-by: skjnldsv <skjnldsv@protonmail.com> * Fix(l10n): Update translations from Transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * Updating phpunit-mysql.yml workflow from template Signed-off-by: Nextcloud bot <bot@nextcloud.com> * 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * fix(settings): Fix missing admin settings Signed-off-by: Joas Schilling <coding@schilljs.com> * fix(UI): Fix missing names after vue lib update Signed-off-by: Joas Schilling <coding@schilljs.com> * fix(form): Fix event-trigger for searching more groups Signed-off-by: Joas Schilling <coding@schilljs.com> * fix(form): Add label for accessibility Signed-off-by: Joas Schilling <coding@schilljs.com> * chore(release): Bump version to 6.8.1 Signed-off-by: Joas Schilling <coding@schilljs.com> * fix(form): Fix accessibility label option Signed-off-by: Joas Schilling <coding@schilljs.com> * Fix(l10n): Update translations from Transifex Signed-off-by: Nextcloud bot <bot@nextcloud.com> * 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] <support@github.com> * 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] <support@github.com> * 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] <support@github.com> * Add CLI commands for annonce, list and delete Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add limit to the optional parameters of list Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * overengineer table output Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Switch from left to right pad Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * make a lot of parameters optional, properly handle boolean type parameters and make group an array like option Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * properly catch if the announcement ID which should get deleted exists Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix formatting Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Send user schedule and deletion date if entered Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add check, that the announcement has any notification option Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix description Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add license Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Capitalize description Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add missing psalm classes Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add unit tests for CLI commands Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * add symfony dev dependency Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * remove smyfony composer dependency and remove symfony static integer due to not working on older versions Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * remove callHidden helper function and use self::invokePrivate instead Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * Update lib/Command/Announce.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * return an error value instead of throwing an exception Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * test for result values bigger than zero and not for exceptions Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix composer issues Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix test being broken due to removed exception Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * 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 <m.winkens@fz-juelich.de> * Update lib/Command/AnnouncementList.php Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> * remove linebreaks from list command Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> * fix test not properly setting non exististing user Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> --------- Signed-off-by: Marvin Winkens <m.winkens@fz-juelich.de> Signed-off-by: mwinkens <104770531+mwinkens@users.noreply.github.com> Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: Nextcloud bot <bot@nextcloud.com> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Joas Schilling <coding@schilljs.com> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Co-authored-by: skjnldsv <skjnldsv@protonmail.com> Co-authored-by: Nextcloud bot <bot@nextcloud.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joas Schilling <coding@schilljs.com>
- Loading branch information