Skip to content

Commit e40071e

Browse files
committed
Merge branch 'develop' into 930-add-warning-message-to-login-page
2 parents 92e1acb + 5cacbf6 commit e40071e

152 files changed

Lines changed: 8187 additions & 604 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-beta-testing.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- develop
77

8+
env:
9+
FRONTEND_BASE_PATH: /modern
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-latest
@@ -31,7 +34,7 @@ jobs:
3134
run: npm run build
3235

3336
- name: Build with base path
34-
run: npm run build -- --base=/spa
37+
run: npm run build -- --base=${{ env.FRONTEND_BASE_PATH }}
3538

3639
- name: Override runtime config.js for BETA
3740
env:
@@ -115,4 +118,4 @@ jobs:
115118
ASADMIN='/usr/local/payara6/bin/asadmin --user admin'
116119
DATAVERSE_FRONTEND=`$ASADMIN list-applications |grep $APPLICATION_NAME |awk '{print $1}'`
117120
$ASADMIN undeploy $DATAVERSE_FRONTEND
118-
$ASADMIN deploy --name $APPLICATION_NAME --contextroot /spa $APPLICATION_WAR_PATH
121+
$ASADMIN deploy --name $APPLICATION_NAME --contextroot ${{ env.FRONTEND_BASE_PATH }} $APPLICATION_WAR_PATH

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- qa
1313
- demo
1414
basepath:
15-
description: 'Server base path (without slashes) for serving the application (e.g., spa). If left blank, it will try to deploy to the root base path.'
15+
description: 'Server base path (without slashes) for serving the application (e.g., modern). If left blank, it will try to deploy to the root base path.'
1616
type: string
1717
required: false
1818

.github/workflows/generate-war.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- qa
1313
- demo
1414
basepath:
15-
description: 'Server base path (without slashes) for serving the application (e.g., spa). If left blank, it will try to deploy to the root base path.'
15+
description: 'Server base path (without slashes) for serving the application (e.g., modern). If left blank, it will try to deploy to the root base path.'
1616
type: string
1717
required: false
1818

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
1919
- Added runtime configuration options for homepage branding and support link.
2020
- Added an environment variable to docker-compose-dev.yml to hide the OIDC client used in the SPA from the JSF frontend: DATAVERSE_AUTH_OIDC_HIDDEN_JSF: 1
2121
- Added a message note to the login page
22+
- Download with terms of use and guestbook.
2223

2324
### Changed
2425

@@ -63,6 +64,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
6364
- Upgrade Keycloak to 26.3.2; updated SPI and test realm JSON.
6465
- Truncate long collection and dataset descriptions with expandable content. (#789)
6566
- UI polish: Files Table always shows action buttons. (#800)
67+
- Removed hard-coded references to /spa path and SPA name, changed to /modern (#945)
6668

6769
### Fixed
6870

DEVELOPER_GUIDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ project files and shut down any running containers.
236236
237237
Once the script has finished, you will be able to access Dataverse via:
238238
239-
- Dataverse SPA Frontend: [http://localhost:8000/spa][dv_app_localhost_spa_url]
239+
- Dataverse MODERN Frontend: [http://localhost:8000/modern][dv_app_localhost_modern_url]
240240
- Dataverse JSF Application: [http://localhost:8000][dv_app_localhost_legacy_url]
241241
242242
Note: The Dataverse configbaker takes some time to start the application, so the application will not be accessible until
@@ -802,7 +802,7 @@ describe('Create Dataset', () => {
802802
})
803803
804804
it('navigates to the new dataset after submitting a valid form', () => {
805-
cy.visit('/spa/datasets/root/create')
805+
cy.visit(`${FRONTEND_BASE_PATH}/datasets/root/create`)
806806
807807
cy.findByLabelText(/Title/i).type('Test Dataset Title')
808808
cy.findByLabelText(/Author Name/i).type('Test author name', { force: true })
@@ -885,7 +885,7 @@ it(
885885
}
886886
)
887887
888-
cy.visit('/spa/')
888+
cy.visit(`${FRONTEND_BASE_PATH}/`)
889889
890890
// Assertions that rely on your overridden config
891891
cy.findByText('English').should('exist')
@@ -1134,7 +1134,7 @@ path included will redirect to the frontend application.
11341134
[dv_app_localhost_build_url]: http://localhost:5173
11351135
[dv_app_localhost_storybook_url]: http://localhost:6006/
11361136
[dv_app_localhost_designsystem_url]: http://localhost:6007/
1137-
[dv_app_localhost_spa_url]: http://localhost:8000/spa
1137+
[dv_app_localhost_modern_url]: http://localhost:8000/modern
11381138
[dv_app_localhost_legacy_url]: http://localhost:8000/
11391139
11401140
<!-- @gdcc/dataverse -->

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<br />
3333
<br />
3434
<a href="https://www.dataverse.org">Website</a> |
35-
<a href="https://beta.dataverse.org/spa">View Demo (BETA)</a> |
35+
<a href="https://beta.dataverse.org/modern">View Demo (BETA)</a> |
3636
<a href="https://github.com/IQSS/dataverse-frontend/issues">Report Bug</a> |
3737
<a href="https://github.com/IQSS/dataverse-frontend/issues">Request Feature</a>
3838
</p>
@@ -139,21 +139,21 @@ All environments follow an “all-in-one” setup, where the frontend and backen
139139
The **Beta** environment provides a remote space for testing the latest changes. GitHub Actions automatically deploy the current `develop` branches of both the frontend and backend.
140140

141141
- **Audience:** Development team, QA analysts, project managers, selected users for early feedback
142-
- **URL:** [beta.dataverse.org/spa][dv_app_beta_spa_url]
142+
- **URL:** [beta.dataverse.org/modern][dv_app_beta_modern_url]
143143

144144
#### Demo
145145

146146
The **Demo** environment showcases the latest officially released version of the SPA, compatible with the latest Dataverse backend release. Deployments target specific tagged releases (e.g., `0.1.0`) and are performed on demand.
147147

148148
- **Audience:** Project managers, curation team, early adoption testers
149-
- **URL:** [demo.dataverse.org/spa][dv_app_demo_spa_url]
149+
- **URL:** [demo.dataverse.org/modern][dv_app_demo_modern_url]
150150

151151
#### QA
152152

153153
The **QA** environment is a dedicated, short-lived testing space. It is deployed on demand with feature branches (e.g., `feature/xxx`), frequently overwritten, and used for validating new features and bug fixes before merging into development.
154154

155155
- **Audience:** QA analysts, development team
156-
- **URL:** [qa.dataverse.org/spa][dv_app_qa_spa_url]
156+
- **URL:** [qa.dataverse.org/modern][dv_app_qa_modern_url]
157157

158158
#### Spike Environments
159159

@@ -397,15 +397,15 @@ Distributed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for mo
397397
<!-- Application Instances -->
398398
<!-- [dv_app_] -->
399399

400-
[dv_app_beta_spa_url]: https://beta.dataverse.org/spa
401-
[dv_app_demo_spa_url]: https://demo.dataverse.org/spa
402-
[dv_app_qa_spa_url]: https://qa.dataverse.org/spa
400+
[dv_app_beta_modern_url]: https://beta.dataverse.org/modern
401+
[dv_app_demo_modern_url]: https://demo.dataverse.org/modern
402+
[dv_app_qa_modern_url]: https://qa.dataverse.org/modern
403403
[dv_app_beta_legacyjsf_url]: https://beta.dataverse.org
404404
[dv_app_legacyjsf_demo_url]: https://demo.dataverse.org/
405405
[dv_app_localhost_build_url]: http://localhost:5173
406406
[dv_app_localhost_storybook_url]: http://localhost:6006/
407407
[dv_app_localhost_designsystem_url]: http://localhost:6007/
408-
[dv_app_localhost_spa_url]: http://localhost:8000/spa
408+
[dv_app_localhost_modern_url]: http://localhost:8000/modern
409409
[dv_app_localhost_legacy_url]: http://localhost:8000/
410410

411411
<!-- @gdcc/dataverse -->

cypress.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export default defineConfig({
3535
}
3636
},
3737
env: {
38+
frontendBasePath: '/modern',
3839
backendUrl: 'http://localhost:8000',
3940
oidcClientId: 'test',
4041
oidcAuthorizationEndpoint: 'http://localhost:8000/realms/test/protocol/openid-connect/auth',

dev-env/docker-compose-dev.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ services:
7272
-Ddataverse.files.s3.connection-pool-size=2048
7373
-Ddataverse.files.s3.custom-endpoint-region=us-east-1
7474
-Ddataverse.files.s3.custom-endpoint-url=https://s3.us-east-1.amazonaws.com
75-
# We publish the port on the host machine instead of just exposing it within the network, so that the browser can access the URLs of images generated by Dataverse (http://localhost:8080...).
76-
# This is necessary because the dev_nginx proxy is placed on top of the Dataverse service, making those URLs unreachable unless this port is exposed.
75+
# We publish the port on the host machine instead of just exposing it within the network, so that the browser can access the URLs of images generated by Dataverse (http://localhost:8080...).
76+
# This is necessary because the dev_nginx proxy is placed on top of the Dataverse service, making those URLs unreachable unless this port is exposed.
7777
# This workaround is only necessary and intended for the local dev environment and will not be used in the remote environment, where we use a production DNS.
7878
ports:
7979
- '8080:8080'
@@ -156,7 +156,7 @@ services:
156156
condition: service_completed_successfully
157157
restart: on-failure
158158
expose:
159-
- '8983'
159+
- '8983:8983'
160160
networks:
161161
- dataverse
162162
command:
@@ -214,7 +214,7 @@ services:
214214
- DATAVERSE_DB_PORT=5432
215215
- DATAVERSE_DB_USER=${DATAVERSE_DB_USER}
216216
- DATAVERSE_DB_PASSWORD=secret
217-
- DATAVERSE_BASE_URL=http://dataverse:8080
217+
- DATAVERSE_BASE_URL=http://localhost:8000
218218
networks:
219219
dataverse:
220220
aliases:

dev-env/nginx.conf

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ http {
99
# Default route for other URLs
1010
location / {
1111
proxy_pass http://dataverse:8080;
12+
proxy_set_header Host $http_host;
13+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14+
proxy_set_header X-Forwarded-Proto $scheme;
15+
proxy_set_header X-Forwarded-Host $http_host;
16+
proxy_set_header X-Forwarded-Port $server_port;
1217
}
1318

1419
# Keycloak reverse proxy for /realms
@@ -23,31 +28,61 @@ http {
2328
# Specific route for /resources/images
2429
location /resources/images {
2530
proxy_pass http://dataverse:8080;
31+
proxy_set_header Host $http_host;
32+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
33+
proxy_set_header X-Forwarded-Proto $scheme;
34+
proxy_set_header X-Forwarded-Host $http_host;
35+
proxy_set_header X-Forwarded-Port $server_port;
2636
}
2737

2838
# Specific route for /resources/css
2939
location /resources/css {
3040
proxy_pass http://dataverse:8080;
41+
proxy_set_header Host $http_host;
42+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
43+
proxy_set_header X-Forwarded-Proto $scheme;
44+
proxy_set_header X-Forwarded-Host $http_host;
45+
proxy_set_header X-Forwarded-Port $server_port;
3146
}
3247

3348
# Specific route for /resources/js
3449
location /resources/js {
3550
proxy_pass http://dataverse:8080;
51+
proxy_set_header Host $http_host;
52+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
53+
proxy_set_header X-Forwarded-Proto $scheme;
54+
proxy_set_header X-Forwarded-Host $http_host;
55+
proxy_set_header X-Forwarded-Port $server_port;
3656
}
3757

3858
# Specific route for /resources/dev
3959
location /resources/dev {
4060
proxy_pass http://dataverse:8080;
61+
proxy_set_header Host $http_host;
62+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
63+
proxy_set_header X-Forwarded-Proto $scheme;
64+
proxy_set_header X-Forwarded-Host $http_host;
65+
proxy_set_header X-Forwarded-Port $server_port;
4166
}
4267

4368
# Specific route for /resources/fontcustom
4469
location /resources/fontcustom {
4570
proxy_pass http://dataverse:8080;
71+
proxy_set_header Host $http_host;
72+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
73+
proxy_set_header X-Forwarded-Proto $scheme;
74+
proxy_set_header X-Forwarded-Host $http_host;
75+
proxy_set_header X-Forwarded-Port $server_port;
4676
}
4777

4878
# Specific route for /resources/iqbs
4979
location /resources/iqbs {
5080
proxy_pass http://dataverse:8080;
81+
proxy_set_header Host $http_host;
82+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
83+
proxy_set_header X-Forwarded-Proto $scheme;
84+
proxy_set_header X-Forwarded-Host $http_host;
85+
proxy_set_header X-Forwarded-Port $server_port;
5186
}
5287

5388
# General route for other /resources routes, handled by Keycloak
@@ -69,7 +104,7 @@ http {
69104
}
70105

71106
# Route for SPA frontend
72-
location /spa {
107+
location /modern {
73108
proxy_pass http://frontend:5173;
74109
proxy_http_version 1.1;
75110
proxy_set_header Upgrade $http_upgrade;

dev-env/shib-dev-env/docker-compose-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ services:
208208
- DATAVERSE_DB_PORT=5432
209209
- DATAVERSE_DB_USER=${DATAVERSE_DB_USER}
210210
- DATAVERSE_DB_PASSWORD=secret
211-
- DATAVERSE_BASE_URL=http://dataverse:8080
211+
- DATAVERSE_BASE_URL=https://localhost
212212
networks:
213213
dataverse:
214214
aliases:

0 commit comments

Comments
 (0)