Commit Graph

249 Commits

Author SHA1 Message Date
Christophe Bliard 1eeebb72bb Fix rubocop warning
And use Data class to make Report a value object.
2025-04-10 16:15:15 +02:00
Christophe Bliard b751170f61 Use job_id from URL to display errors from given job
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.
2025-04-09 12:28:39 +02:00
Andrej Sandorf 94f070b4ac Merge branch 'dev' into feature/61446-pdf-export-of-a-single-work-package-follows-work-package-form-configuration-including-embedded-tables 2025-03-13 09:43:41 +01:00
Christophe Bliard c57544e321 Use -B to reset branch repro_ci_failures in one command
[skip ci]
2025-03-12 17:57:32 +01:00
Andrej Sandorf d509597408 Merge branch 'dev' into feature/61446-pdf-export-of-a-single-work-package-follows-work-package-form-configuration-including-embedded-tables 2025-03-11 08:24:34 +01:00
as-op efeb177ccf update PDF export styles schema validation and docs generator 2025-03-04 16:41:36 +01:00
ulferts d91de29d7c Merge remote-tracking branch 'origin/dev' into rails-7.2 2025-02-27 17:51:34 +01:00
Christophe Bliard 13082c14a1 Simpler instructions to run on same commit as CI 2025-02-19 15:52:04 +01:00
Christophe Bliard 0204e008d6 Fix link, /docs/development/security is valid
The script does not know the redirection rules from data/redirects_docs.yml file from website repository
2025-02-06 09:32:32 +01:00
as-op 5937eb387a obey rubocop 2025-01-30 09:46:24 +01:00
as-op 1e9c16a7f2 bump md-to-pdf to v0.1.5 2025-01-30 09:34:33 +01:00
Christophe Bliard b03438873e Check primer view components versions consistency on commit
So that I'll stop upgrading it in `Gemfile.lock` and not in
`frontend/package.json`. See #17681
2025-01-24 08:58:49 +01:00
Jan Sandbrink c000df32f1 Also check static links for consistency
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.
2025-01-15 16:42:48 +01:00
Oliver Günther 25fc7cd02b Recurring meetings (#15620)
* 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>
2024-12-04 17:12:14 +01:00
Klaus Zanders 80072ea9e8 Update Ruby to version 3.3.6 2024-11-19 11:37:02 +01:00
Andrej Sandorf 50b5f35059 Merge branch 'dev' into feature/45896-generate-pdf-document-from-a-work-package-description 2024-11-04 15:09:53 +01:00
Christophe Bliard 296ebeaa5b Fix small issues in the anonymize-sql-dump script
- 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.
2024-10-28 16:07:04 +01:00
Christophe Bliard 32600d7b26 [46007] Update script to anonymize SQL dump
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
2024-10-28 11:41:59 +01:00
as-op b0cb856660 Merge branch 'dev' into feature/45896-generate-pdf-document-from-a-work-package-description
# Conflicts:
#	frontend/src/vendor/ckeditor/ckeditor.js
#	frontend/src/vendor/ckeditor/ckeditor.js.map
2024-09-26 14:27:47 +02:00
Christophe Bliard c071923d92 Limit to first url 2024-09-23 14:32:12 +02:00
Andrej Sandorf ada244b09a Merge branch 'dev' into feature/45896-generate-pdf-document-from-a-work-package-description 2024-09-17 13:28:38 +02:00
ulferts 1485df44a7 Merge remote-tracking branch 'origin/release/14.5' into dev 2024-09-12 18:10:27 +02:00
as-op c0e06a0d98 fix broken docker links 2024-09-12 12:21:08 +02:00
Oliver Günther dadb0c9a5c exit 0 on no URL found 2024-09-10 10:59:36 +02:00
Oliver Günther a742945e95 Fall back empty versions to "not set"
This way they will trigger the warning comment
2024-09-10 09:55:34 +02:00
Oliver Günther b0103d5085 Add version check when needs review label is added 2024-09-09 20:26:26 +02:00
as-op 63e0f07a3c Merge branch 'refs/heads/dev' into feature/45896-generate-pdf-document-from-a-work-package-description 2024-08-06 12:16:00 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Andrej Sandorf 089d1d85a0 Merge branch 'dev' into feature/45896-generate-pdf-document-from-a-work-package-description 2024-07-17 12:11:43 +02:00
as-op 48d7c825f4 fix(docs): find broken anchors in absolute doc urls 2024-07-16 15:42:32 +02:00
as-op 696ca0587b Merge branch 'refs/heads/dev' into feature/45896-generate-pdf-document-from-a-work-package-description 2024-06-27 09:10:05 +02:00
Dombi Attila f23461a604 Update Bundler to 2.5.13 2024-06-20 10:34:45 +03:00
as-op 8de9de7e04 refactor(pdf-export): sort module for better reuse 2024-06-13 16:25:21 +02:00
Markus Kahl c322b42f68 update migration script, specifically fix the OP7 step 2024-06-12 15:03:44 +02:00
Christophe Bliard 5e4766f072 Merge branch 'dev' into feature/49409-status-exclude-from-totals 2024-06-03 17:56:41 +02:00
Klaus Zanders 1eec6cad54 Update Ruby to 3.3.2 2024-06-03 12:57:25 +02:00
Dombi Attila 543e87a67d Fix the pr errors script, show the in progress run even if there is a successful previous run.
When there is an in progress run and a previous successful run, the
successful run is being displayed. This gives a false information about
the current run being successful. The fix is to display the in progress
run instead.
2024-05-29 19:46:32 +03:00
Christophe Bliard 76f2989a3b Display workflow run start time in github_pr_errors 2024-05-23 10:50:29 +02:00
Klaus Zanders a88ab2eeef Bundler 2.5.9 -> 2.5.10 2024-05-07 09:31:50 +02:00
Klaus Zanders c19aa3c74b Update Ruby to 3.3.1 in all relevant places 2024-04-25 08:54:06 +02:00
Oliver Günther 7a9a43fd93 Rename openproject/community to openproject/openproject 2024-04-17 14:52:47 +02:00
Christophe Bliard eb93a03e00 github_pr_error: add information about merge commit 2024-03-28 11:46:59 +01:00
Christophe Bliard 1ae177c2a8 Merge branch 'release/13.4' into dev 2024-03-21 17:22:20 +01:00
Christophe Bliard d653ce6e4c [53584] Fix Portuguese languages mapping
https://community.openproject.org/wp/53584
https://community.openproject.org/wp/53586

When making Portuguese Brazilian and Portuguese Portugal translations
apart from each other in https://community.openproject.org/wp/53374, we
missed that the root key in the `pt-BR.yml` and `pt-PT.yml` files is
still `pt`. The backend is gracefully falling back to the `pt`
translations but the frontend just fails to translate and falls back to
the English strings, leading to mixed English and Portuguese in the user
interface.

A script fixes the root key in the `pt-BR.yml` and `pt-PT.yml` files.
This script is executed each time the translations are updated from
crowdin.
2024-03-21 16:32:17 +01:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Ivan Kuchin 9e4934cd0a change quotes using rubocop --only Style/StringLiterals,Style/QuotedSymbols -a 2024-03-20 18:05:22 +01:00
Christophe Bliard 605d731f73 Use more accurate language translation for pt-BR 2024-03-08 10:58:07 +01:00
Christophe Bliard 5aefbbc8dd Do not try displaying local screenshot urls 2024-02-19 16:02:40 +01:00
Christophe Bliard 2d6023adab github_pr_errors: use -i to display screenshots in terminal
This works only with `imgcat` and iTerm2 (or any terminal implementing
iTerm2 image protocol like Konsole).

See https://iterm2.com/documentation-images.html to know more.

Feel free to add support for more terminals.
2024-02-16 15:05:50 +01:00