Commit Graph

66 Commits

Author SHA1 Message Date
Jan Sandbrink 6ec8388b86 Merge pull request #21772 from opf/dev-tls-flexibility
Improve flexibility of TLS dev stack
2026-01-27 15:10:07 +01:00
Jan Sandbrink 827f577c85 Allow to change TLD for docker dev stack
Instead of assuming that the TLD is .local, we allow
to overwrite it with different TLDs, so that the local setup
can be adapted to developer needs.
2026-01-27 13:05:19 +01:00
Eric Schubert 84ac8da442 [chore] fix capybara.rb to work with docker setup
- change capybara server host binding mechanism
2026-01-21 10:34:08 +01:00
Jan Sandbrink a9babeaaba Upgrade to latest available browserless image
Browserless migrated away from Docker Hub and the latest versions
are now available on GitHub's Container Registry.
2025-10-10 15:34:17 +02:00
Jan Sandbrink ebbf69c62b Fix running feature specs in docker
The serve:test command was broken, because it
used an unsupported command-line option. Thus the
frontend container would not start at all, thus breaking asset
delivery during tests.

A healthcheck was introduced as well, so that a non starting frontend
container is easier to spot going forward.
2025-10-09 11:57:03 +02:00
Pavel Balashou fd7fb7e6f4 Move ports and env variable to docker-compose.yml
It seems to be fine to have these ports settings as well as
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS envvar set in docker-compose.yml
directly. So, there is less to override to get your docker TLS dev stack working.
2025-07-24 14:39:08 +02:00
Jan Sandbrink ce9e17bbb1 Fix running ng serve on docker stack 2025-07-24 09:04:10 +02:00
Jan Sandbrink e9d2d10712 Fix running the docker TLS stack
The latest upgrades to our frontend stack prohibited access through the
openproject.local hostname and also caused trouble with the previous setup
where the frontend stack would proxy requests to the backend.

Thus the default setup was now changed so that both frontend and backend
are exposed to the browser via different hostnames. The main service to start
will be the backend, which will redirect requests to certain assets to the frontend
service (this was already integrated into the rails routes previously).
2025-07-22 09:23:07 +02:00
Oliver Günther b1d6c8f77f Merge remote-tracking branch 'origin/code-maintenance/esbuild' into dev 2025-07-21 11:10:38 +02:00
Eric Schubert 25f9b61ae5 [chore] remain in detail view after creating a wp
- only affects BCF module views
2025-07-18 14:15:18 +02:00
Alexander Brandon Coles aa9febc397 [#64605] First pass migrating to browser-esbuild
* Switches ng build to browser-esbuild builder.
* Fixes static and dynamic imports.
* Switches to relative asset paths.
* Modernizes tsconfig files.
* Vendors jquery-ui. / HT https://gorails.com/episodes/how-to-use-jquery-with-esbuild
* Fixes various out-of-date path references.

See https://angular.dev/tools/cli/build-system-migration\#manual-migration-to-the-compatibility-builder
2025-07-18 08:49:40 +01:00
Jan Sandbrink b0b61a08a9 Remove Opera from docker test setup
It's not being used from the code anywhere.
2025-06-27 13:33:40 +02:00
Yauheni Suhakou 25db0e6eee Docker file update for development and macOS documentation update (#19135)
Update Docker with the new PostgreSQL 17.
Update Docker documentation for macOS with an Apple Silicon section.
2025-06-12 15:56:06 +02:00
Christophe Bliard 6e41a0a855 Update documentation to point to 16.0 releases
Should fix https://community.openproject.org/wp/64362
2025-06-06 14:42:15 +02:00
Eric Schubert a8a6d112da [#58426] add feature spec for custom fields of type hierarchy
- https://community.openproject.org/work_packages/58426
- add a couple of test selectors
- add page objects
2024-10-25 10:49:58 +02:00
Wieland Lindenthal a32d4c67af [#55176] Cleanup Rails's tmp/pid/server.pid file for docker based development (#15621) 2024-05-28 09:23:12 +02: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
Eric Schubert bf8882c0f8 [#53368] use active model validations in oauth config
- use only class, not instance in error payload
2024-03-20 13:38:33 +01:00
Oliver Günther 337eda7dfa Revert "Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob""
This reverts commit dfa75621ea.
2024-03-07 13:59:24 +01:00
Markus Kahl dfa75621ea Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob"
This reverts commit 9f3e4c48ea, reversing
changes made to 10412f7c85.
2024-03-07 12:40:15 +00:00
Pavel Balashou fd6a899b29 [#48717] Replace DelayedJob with GoodJob.
https://community.openproject.org/work_packages/48717
2024-02-14 10:18:27 +01:00
Oliver Günther b82ddbc583 Remove storybook from actively building, keep last build 2023-11-08 14:05:33 +01:00
Eric Schubert 9eed6fb1be [#47625] Added TLS section to docker dev docs (#13007)
- added proxy stack
- amended README for docker development
- increased cert duration

---------

Co-authored-by: Pavel Balashou <ba1ashpash@gmail.com>
Co-authored-by: Yule <b.baedorf@openproject.com>
2023-07-05 12:49:12 +02:00
Aaron Contreras 86cde8f118 Register and toggle Cuprite driver
Sets up a barebones Cuprite initialization and toggles the javascript
driver to use depending on metadata attached to the example/group.
2023-06-28 05:18:52 -05:00
Eric Schubert 73ac53238f [#47624] reworked docker setup
- https://community.openproject.org/work_packages/47624
- extracted port exposure from docker compose
2023-06-05 11:24:14 +02:00
Oliver Günther bf82d08d12 Merge remote-tracking branch 'origin/release/12.5' into dev 2023-04-24 13:29:45 +02:00
Markus Kahl a4f488c986 fix docker dev quickstart 2023-04-17 12:15:38 +02:00
Kabiru Mwenja acef7fa111 [docker compose yml fix]: Duplicate YAML merge keys (<<) are now rejected from v2.17.x (#12428)
fix: Replace unsupported repeated yaml anchors with merge

`docker compose` v2.17.2 fails with the following syntax error due to
go/yaml/v3 update.

```sh
❯ docker compose config
yaml: unmarshal errors:
  line 40: mapping key "<<" already defined at line 39
  line 40: mapping key "<<" already defined at line 39
  line 40: mapping key "<<" already defined at line 39
```

"goyaml/v3 does not support repeated anchors (due to internal storage
using << as key during parsing) but allows use of multi-values in
anchors"

See: https://github.com/docker/compose/issues/10411#issuecomment-1488019350
     https://yaml.org/type/merge.html
2023-04-17 09:47:17 +00:00
Christophe Bliard 3553a80990 Remove deprecated environment variables used with docker
Fixes https://community.openproject.org/wp/43551
2022-12-28 13:58:49 +01:00
Benjamin Bädorf 8f227cda4f Explicitly add testing email settings (#11685)
If you have a `.env` file in the repository that specifies mal settings,
these can overwrite the default mailing settings for the testing setup.
This commit explicitly sets the appropriate env variable correctly.
2022-11-22 14:43:13 +00:00
Eric Schubert 011658b9e8 [chore] use selenium hub version major tag
- we used to use 4.0, while 4.5 was already released, bundling newer
  version of the browsers
2022-10-20 09:48:48 +02:00
Benjamin Bädorf a9e29279ea Feature/storybook (#10797)
Squash commit of storybook addition to aid design system documentation efforts.

The older commit titles were:

* Initial storybook commit

* Fix documentation.json links

* Don't track documentation.json in git

* Enable sass in storybook

* Initial version of a story that uses angular components

* Remove example stories, clean up button story

* More example stories

* Fix sb build

* Always use dev

* Try without auth header

* Update workflow name

* More logs

* Check if token set

* Use release/storybook branch for testing

* Send ref input to workflow

* Escape input to curl call

* Adding logging

* Different type of escaping

* Fix JOSN

* Use dev branch for opf/design-system storybook publishing

* Add plugin to message path to parent window

* Remove extraneous story

* Add a ton of docs

* Update stories

* Fix syntax error caused by multiple newlines inside of a JSX component

* Add text-field story

* Add basic html stories that don't work yet

* Try to get plain HTML examples working

* HTML Examples work, but slowly revert to components anyway

* Fix HTML examples

* Remove extraneous files

* Put storybook eslint rules back in

* Improve docs

* Show docs tab by default

* Add pullpreview for storybook

* Use the same pullpreview tag for both storybook and normal deployments

* Change name of second pullpreview workflow

* Pin node version to 16.17.0

* Initial update to docs

Added/updated:

Foundation pages:

- Colours (major update)
- Shadows (minor)
- Typography (new)

Blocks

- Checkbox (minor)
- Action bar (major)
- Buttons (new)
- Link (major)
- Modal Dialogue (new)
- Selector Field (new)

* Make sure all code is available during storybook pp build

* Change storybook pullpreview file name

* Add production target to docker-compose sb pp

* Fix acme check for sb pp

* Only run cd-storybook on dev branch

* Run without https on 8080

* Added intro and new page

- Introduction renamed to "Design System", page rewritten completely
- Added page "Devices and Accessibility"

* Remove domain from caddy

* Add port to listen command

* Remove double pullpreview workflows

* Added Divider component

* Change sorting of stories

* Update section titles and order for styles and blocks

* add extra action bar story

* Updated organising + new page

- Updated organisation into Styles, Components and Patterns.
- Added page "Using Storybook" (mostly a skeleton for now)

* Added note about colours not being implemented yet

* Minor

Co-authored-by: Parimal Satyal <88370597+psatyal@users.noreply.github.com>
2022-09-19 14:39:15 +00:00
Eric Schubert c5b1f35574 [#40196] reworked notifications API specification
- https://community.openproject.org/work_packages/40196
- renamed collection model
- reworked examples and object definitions
2022-04-11 11:09:46 +02:00
Eric Schubert 3e07975584 [#41480] respond with 401 on invalid bearer tokens
- https://community.openproject.org/work_packages/41480
- amend strategy for doorkeeper to react on all bearer tokens
- added ouath request spec for valid, invalid and revoked token
2022-04-08 14:58:03 +02:00
Eric Schubert 979129f52c [chore] fix two issues with docker dev
- set default for OPENPROJECT_EDITION
- fix default path for ckeditor volume
- remove worker service from dependency
2022-04-05 10:17:21 +02:00
Benjamin Bädorf 88966fb20e Bump postgres to v13 in Docker dev environment (#10225) 2022-03-09 10:18:07 +00:00
Benjamin Bädorf 61efe76ad1 Add basic assignee autocompleter (#9940)
* Add basic assignee autocompleter

* Add basic principal store

* Improve Principal typing, working principal adding in resource table

* Small improvements to comments

* Simpler handling

* Better add button

* Add assignee remove button

* Basic spec

* Working team planner assignee spec

* Spec is a little better

* Fixed work package loading and specs

* Fix linting issues

* Fix linting issues

* Fix spec

* Remove @ts-ignore usage

Co-authored-by: Oliver Günther <mail@oliverguenther.de>

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-12-09 12:16:17 +00:00
Benjamin Bädorf 14716e5e58 Update Selenium Grid for docker development
Commit e37b29b8fc updated the selenium driver and webdriver from v3 to v4, but failed to address local docker
development. This commit updatesthe docker selenium setup, and pins the docker images to a specific version, something
that wasn't done before.
2021-11-25 14:38:18 +01:00
Benjamin Bädorf ba5fb3ba52 op-sidemenu is now a thing 2021-09-20 18:51:59 +02:00
Markus Kahl 9f9ca73a7c fix docker frontend: parameterize ckeditor build dir, use working default 2021-08-31 11:41:30 +01:00
Benjamin Bädorf 32018e9e78 Add worker container to development setup 2021-08-04 10:52:57 +02:00
Benjamin Bädorf 4f0850d208 Enable frontend unit tests in docker (#9480)
* Enable frontend unit tests in docker

* Update npm command names
2021-07-19 12:32:05 +00:00
Benjamin Bädorf 9432de82dd Refactor/remove tickety tick formatter (#9429)
* Lazy load prettier dependency

* Remove tickety-tick-formatter completely

* Also escape dollar signs

* Fix branch name formatting

* Reduce commit message transformation for git-actions service to make it more in line with the tickety-tick formatter

* Update git commit formatter

* More fixes to formatter

* Fix regexes to work globally

* Also remove quotes from branch names

* Still trying to get these specs green

* Another tyr
2021-07-15 21:04:33 +02:00
Aleix Suau 7e2e05c88f Feature/36390 code structure (#9319)
* core/shared/features in progress

* shared/components in progress

* Fix rebase errors

* core: added admin + apiv3

* shared: attachments + attirbute-help-text

* core: OpenprojectAugmentingModule

* shared: OpenprojectAutocompleterModule

* shared: Autocompleter

* feature: backlog

* feature: bim

* feature: boards

* shared: calendar

* core: userModule

* feature: dashboards

* shared: editor

* shared: fields

* shared: focus

* core: globalsearch

* shared: grid

* shared: grid fix

* core: hal

* shared: icon

* feature: invite user modal

* feature: job status

* shared: members autocomplete

* shared: modal

* feature: my page

* feature: overview

* shared: principal

* feature: projects

* feature: repoting

* core: routing

* shared: time entries

* shared: OpenprojectWorkPackageGraphsModule

* feature: workpackages

* core: active window

* shared: autofocus

* features: wp: back-button

* core: browser

* shared: collapseible section

* core: config

* shared: copy-to-clipboard

* shared: date-time

* shared: helpers: drag-and-drop

* shared: draggable autocompleter

* shared: dynamic bootstrapper

* shared: dynamic forms

* features: wp: edit actions bar

* shared: EditableToolbarTitleComponent

* core: BannersService

* shared: OpFormFieldComponent

* shared: hide section

* shared: highlight col

* core: I18 + Sanitizer

* shared: isClickedWithModifier

* core: LoadingIndicator

* core: Modal Heading

* core: Model auth

* shared: no results

* shared: notifications

* shared: datepicker

* shared: option-list

* core: path helper

* shared: persistent toggle

* shared: remote field

* shared: set click position

* shared: slide toggle

* shared: tabs

* shared: drag-scroll

* shared: keyCodes

* shared: OPSharedModule

* global styles: common

* core:

* import fixes

* shared: Enterprise banner

* features: wps: filters

* features: home screen

* import fixes

* core: html

* import fixes

* core: main-menu

* features: home screen

* shared: modals

* shared: op-context-menu

* core + shared: current project

* core: schema-cache

* shared: table-pagination

* features: wps: time-entries

* shared: user-link

* features: wps

* features: wps

* features: wps: all wp-* components

* core: states

* Rename: angular4-modules to app.module

* core: expression service

* Modules just with plugins

* Test fixes

* added missing content-tabs.component.sass

* Replaced with .op-ckeditor--wrapper

* Replaced by .op-ckeditor-source-element

* Replaced by the entire wysiwyg_editor.rb with dev version

* Replacements by ckeditor-augmented-textarea

* Fixes ./spec/support/components/work_packages/table_configuration_modal.rb:106

* Fixes ./modules/reporting/spec/features/update_entries_spec.rb:69

* work_packages renamed to work-packages

* TimeEntryChangeset moved to helpers

* 'filters' moved to wps/components

* 'admin' moved to features

* HAL moved to shared

* plugins moved to features

* plugins moved to features

* Test fixes

* Unit test fixes

* plugin generator into /features/plugins

* fix sass rule indentation

* Revert "plugins moved to features"

This reverts commit f65ccbfd4b.

* Import fixes

* Avoid commiting in linked plugins

Co-authored-by: ulferts <jens.ulferts@googlemail.com>
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-06-08 21:10:58 +02:00
Benjamin Bädorf 68949daa03 Feature/35521 ium capabilities (#9158)
* Started experimenting with capabilities

* Started adding akita store

* Use current user store to filter projects

* Work on integrating capabilities

* Added capability checks

* Fix project select

* Working on ium specs

* Change ng select option list format

* Fix proejct search label

* Fix some specs

* Fix issue with principal select

* Add spec for missing placeholder user capabilities

* Add new capability specs, fix existing ones

* Fix import

* Update shrinkwrap

* Add JSDoc deprecations

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-04-21 07:54:34 +02:00
ulferts aa4397cf28 Merge branch 'release/11.2' into dev 2021-04-12 09:51:14 +02:00
Markus Kahl c375646dc0 docker dev and test setup fixes (#9135)
* docker dev and test setup fixes

* added missing >

* include test instructions in quickstart

* fixed typo

Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>

* removed obsolete comment

Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>

* amendments

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
Co-authored-by: Philipp Tessenow <tessi@bitcrowd.net>
2021-04-06 13:35:32 +01:00
Benjamin Bädorf 2667cd1581 Refactor/app header (#9110)
* [35527] Add quick add button menu in top menu

* Add quick menu item to top menu

* Refactor top_menu.sass to follow BEM

* Only render project-based path if persisted

* Render project types when in project context

* Add headline and determine if any types are visible

* Hide quick add menu for unauthorized users

* Fix login menu dropdown by adding class

* Add schematic for correctly generating components

* Add augment service for triggering invite user modal

* Fix allowed_to? check in menu

* Add spec

* Highlight types and show all

* Fix help menu overridden

* Extend spec

* Add parent_id to project in dropdown and expand advanced settings

* Reload the page if the modal returned any data

* Fix invalid url allowed check if there is no URL to check

* Basic BEM changes

* Remove old classes

* Update more classes

* Update togling logic

* Fixed menu opening and some styles

* Added op-menu

* Fix some help menu styles

* Add op-menu to help menug

* Add avatar border

* Fix auth_provider_spec

* Fix zen mode

* Fix static link help menu

* Fixed top menu specs

* Fix self registration specs

* Fix logout spec

* Fix bim revit navigation spec

* Fixed menu permissions spec

* Fix homescreen onboarding tour spec

* Fix top menu item spec

* Remove unused file

* Fix a lot of mobile styles

* Fix more mobile styles

* Fixed build

* Move quick add menu to right hand side

* Improve quick-add-button styles, fix main-menu-toggle close icon

* Remove add new project spec

* Fix spec

* Update project dropdown styles

* Fix click handler for chrome mobile, update some styles

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-04-06 11:09:06 +02:00
Oliver Günther d329db23ff Finish user invite modal (#9061)
* Fix some ium stylings

* Extend create service to also test with empty names

* Add PrincipalLike type to pass around non-created placeholder refs

* Add icon-context

* Move principal rendering to its own module

* Fix emit create new placeholder to principals

* Revert op-principal for now

* Add memberships form API to properly post

* Fix types for returned principals

* Move untilDestroyed in role

* Filter input if not string in role-search

* Pass correct inputs to success component

* Return principal after saving membership

* Fix small stuff around  the ium

* Fix the way HalResources are selected and passed

* Move principal module to be exported by common

* Disable quotemark in tslint until eslint is enabled

* Fix image path in success

* Adapt modal to run all steps in one within the modal helper component

* Several fixes to modals

* Fix ium success component styles,
* Registration modal y-overflow
* Add SMTP parameters to .env.example

* Add disabled option to op-option-list, disabled placeholder users for non-ee instances

* Add correct ee link to placeholder user option

* Fix build

* Removed unused sass files

* Fix principal search not found indicator, added placeholder add image

* Fix enterprise edition url, use dirty instead of touched check

* Use backend class names for frontend principal types

* Fix duplicate import and principal type usage

* Also disable banners if with_ee is present in test

* Extend specs for placeholders

* Fix disabled attribute

* Extend spec WIP

* Improved inline-validation styles, fixed more PrincipalType usages

* Add group happy path test, fix more PrincipalType usage

* Fix a translation

* Revert line deletion

* Rewrite same spec examples into shared examples

* Fix name of shared example

* Dont run assets:clean to remove angular assets

* Output whether assets are there at all

* Fix placeholder path

* Revert "Output whether assets are there at all"

This reverts commit 42219c2755.

Co-authored-by: Benjamin Bädorf <b.baedorf@openproject.com>
2021-03-04 21:47:25 +01:00