I did not understand what `require_admin_and_render_template` was
supposed to do. I thought it was creating some initial user and
rendering the template as a before action, but actually it only adds
some examples.
Using RSpec shared examples makes intent clearer.
The days_per_month setting is kept as it is also used in the frontend,
and could be useful if some people input months as durations.
The rest has been removed and can be easily retrieved from source
history.
The job has been updated to excluded work packages having a status with
`excluded_from_totals` set to true. The journal entry has valid values
so that the cause renders correctly.
The job is not yet triggered properly when the "excluded from totals"
attribute of a status is changed in the administration.
https://community.openproject.org/wp/54646
A concurrency key has been set on all jobs updating progress values to
ensure that only one job is performed at a time.
All classes related to managing progress updates in jobs has been moved
to a specific folder.
Updates the `LanguageSettingsController` to use the new `LanguageUpdateService`
which handles forcing the default language on users with an unavailable language
set.
There were no controller specs, so adding one in.
Updates the `LanguageSettingsController` to use the new `LanguageUpdateService`
which handles forcing the default language on users with an unavailable language
set.
There were no controller specs, so adding one in.
Also makes ckEditorAugmentedTextarea read-only if the wrapped text area
is disabled.
As for the invitation_expiration_days setting, commit 269f9416dd and
commit 286d862c38 got intertwined with merge commit eb63698a3d, and
resulted in hiding the setting when
`OpenProject::Configuration.registration_footer` is set.
As for the registration_footer setting, PR #6321 intent was to prevent
modifying it if it was already set via env var or configuration file.
When `OpenProject::Configuration` and `Settings` were merged, this code
was not updated. With the default value being non-blank, it lead to
hiding the setting from the administration pages.
This commit restores both settings.
* create a new component for showing list of NWD
* fix the method for fetching data from the database
* fix eslint errors
* add delete icon to the list of non-working days
* Change componenet name and add empty state handleing and add button for opening the date picker modal
* fix full calendar/list css import issue in anguar 14
* change confirm modal to show a list of data and a warning
* open confirmation modal in list of non-working days component while submitting the form
* format removed dates to be shown on the confirmation modal
* change a warning string
* make a connection between rails and calendar list component
* reinstall list in fullcalendar
* fetch data from non-working days API endpoint
* set suto to content height of calendar
* use id returned from the API
* Fix parameter name on WorkingDaysSettingsController
* Fix non working days attributes _deleted to _destroy
* Pass ruby variable to the op-non-working-days-list component
* fixup! Pass ruby variable to the op-non-working-days-list component
* Pass this.modifiedNonWorkingDays to the angular component
* add inputs to the form itself instead of row of calendar, while adding a new NWD
* Update the modified_non_working_days variable to also propagate the _destroy field to the frontend
* create hidden inputs only for added and deleted NWDs
* Fix specs
* Limit json attributes
* add non-working days as test
* add hidden inputs for a new nwd in ngoninit and add it to the calendar itself at the same time, when it is back from a failed proces
* add a method to check if a date is a NWD
* Add requests spec for deleting non working days
* Allow dangling underscore for _destroy
* fixup! Allow dangling underscore for _destroy
* WIP single date picker
* Use slots from single datepicker to wire up modal
* Add spec to add a NWD
* remove Non-working days only toggle
* WIP
* Add required validation
* show asterisks beside date in date-picker
* test if date ans name are entered then close the datepicke
* Add error when already added
* Rewrite into less implicit created elements
---------
Co-authored-by: Dombi Attila <83396+dombesz@users.noreply.github.com>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>