- check if parent directory of this script is an OpenProject repository
suitable to run the command to add the admin user.
- use a variable for the database name in the given instructions to load
it. It makes it easier to change to an existing database name.
[skip ci]
We do this mainly because we faced an issue with Crowdin, where
the translation didn't work correctly in languages that have a separate
translation for the zero plural case.
Looking at the way we use those translations though, it also makes sense in
general to change the translations like this. Having success as the special case
of zero failures is not quite right, because we also have zero failures if there is
a single warning, but we don't show success in that case. Success is always a separate
branch in a case statement and thus it makes sense to treat it as a separate translation.
- Remove rspec_retry and retriable lines
- Remove top level lines which are mostly around blocks executing on each spec
- Make the spec file name bold (more visible)
When giving a url of the first attempt, the script was displaying the
results of the last attempt. That's probably not the intended behavior.
Now it parses the job_id from the url, and if present it will display
the errors from that job.
Also changed the output to display the instructions to checkout the
correct commit at the end of the script, to make it easier to see.
Previously we only checked internal linking inside the
documentation for consistency. Now there is also a basic
test to see whether links from OpenProject into the documentation
are pointing to a valid page.
I used this opportunity to move the static links into a Yaml file.
This made it easier to load the list of static links for the check
as well and it removed a long data object from the Ruby code.
* Prepare basic recurring meeting setup
* Add proof of concept to create schedules
* Add feature flag
* Rework menu
* Pass request to meetings menu
This doesn't help, as the requested url is the turbo frame
* Add filter menu for recurring meetings
* Start primerized create form
* Add recurring meetings to dropdown and dialog
* Add schedule
* Add frequency/iterations form
* Add services
* Recurring meetings menu entry
* Fix setting project
* Template
* add bi-weekly
* Add template sideinfo
* Skip mails when adding participants
* exclude templated meetings
* Add header for templates
* Prevent deletion of meeting template
* Fix breadcrumb
* WIP Add show table and initialization
* Change icon for calendar
* remove unused template
* add template has_one
* meeting form
* Fix creation of recurring
* working edit
* specify end time
* Add header actions
* Add initial recurring meeting frequency label
* Add index page
* Add soft delete and restore for occurrences
* Refine implementation of scheduled meetings using skeletons
* Add template link
* Paginate
* Move init of meeting to recurring
* Add schedule in words
* Add show series action item
* Implement changed show page of occurrence
* Add interval, fewer frequencies
* Add interval to schedule
* Try to add non working days
* Update meetings index to display recurring occurrences correctly
* Update schedule in words
* Fix exception rule
* Fix occurrence for working days
* Hide interval when selecting working_days
* Document show-when-value-selected
* Set interval to 1 when changing to working_days
* Fix dialog
* Adapt to mobile table
* Update type filter
* Rename TypeFilter -> RecurringFilter
* Start date group
* Combined Filter component
* Updated menu
* Update label created by me
* Add validation on end_date > start_date
* Implement sorting through query
* Render all meeting series in the sidebar
* Select my meetings only when href passed
* WIP Add initial specs
* Fix date validation
* Use the correct date formatter in the subtitle
* Add spec for date validation
* Change label to View template
* Add edit series button
* Fix deletion of recurring meetings
* Correctly hide form for end_after options
* Update copy behaviour to never allow recurring copies
* Fix location value in form
* Fix meeting details form
* Add scheduled meetings table
* Replace destroy/restore with actual destroy
* Uniqueness
* Delete with schedule
* Switch to start_time
* Use start_time in schedule
Otherwise, we get time mismatches
* Add helper for time formatting to the current user
* fixup! Delete with schedule
* Move update_start_time to concern
* Delete cancelled meetings when changing schedule
* Allow passing dates directly
* Remove cancelled occurrences when changing schedules
* Limit count_rule until end_date
* Show changed start times for occurrences
* Indent case
* Fix destroy path to include project
* Fix past meetings
* Schedule first occurrence on creation
* Linting
* fixup! Linting
* Autoschedule job
* Add more schedule tests
* Fix project-based destroy
* Redirect to template, not show
* Don't cache user time zone in request store
* Fix forgotten invited where
* fixup! Linting
* Remove default meeting order
* Fix meetings index spec with new ordering
* Fix path
* Convert meeting tab to cuprite
* Fix expectation for meeting tab
* More robust selector on meeting tab
* Change global menu spec
* Add more CRUD specs
* Fix dates and times
* Allow cancellation of scheduled meetings
* Lint
* Reschedule init job when updating schedule
* Fix end date in the form
* Test cancellation
* Extract create spec
* Fix specs
* Add spec when lacking permissions
* Fix cancellation of scheduled meetings
* Render meetings with correct project link
* Remove unused disable
* Remove useless cop disable
* Add contract specs
* Add delete contract spec
* Revert "Add delete contract spec"
This reverts commit 27a517d773.
* Add delete contract spec for meetings itself
* Fix spec
* Hide past cancelled occurrences
* Show different delete labels and messages
* Move to request spec
---------
Co-authored-by: Mir Bhatia <m.bhatia@openproject.com>
- Reuse AdminUserSeeder to create the admin user. Previous code did not
set a valid email, which prevented the user from being saved (That's
why language could not be set).
- drop the db before creating it, to avoid "database already exists"
errors.
- Remove owner from ALTER statements in dump file, avoiding "ERROR:
must be able to SET ROLE " errors when loading the sql file.
https://community.openproject.org/wp/46007
Changes:
- script recommends to run on the bastion host
- the openproject dev directory can be passed as a second argument
if it can't be guessed
- more tables are emptied and/or anonymized
- inline sql cleanup script inside the script
- `btree_gist` and `pg_trgm` extensions are always created to prevent
import error if they're missing
- use long options to auto-document options