Skip to content

Commit 65b1dfa

Browse files
Merge remote-tracking branch 'gitHub/main' into task/main/DURACOM-317
2 parents 6c2c2d6 + 11fdc4a commit 65b1dfa

1,633 files changed

Lines changed: 55096 additions & 17710 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.

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ trim_trailing_whitespace = false
1515

1616
[*.ts]
1717
quote_type = single
18+
ij_typescript_enforce_trailing_comma = whenmultiline
19+
20+
[*.js]
21+
ij_javascript_enforce_trailing_comma = whenmultiline
1822

1923
[*.json5]
2024
ij_json_keep_blank_lines_in_code = 3

.eslintrc.json

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@
160160
]
161161
}
162162
],
163+
"@angular-eslint/prefer-standalone": [
164+
"error"
165+
],
163166
"@angular-eslint/no-attribute-decorator": "error",
164167
"@angular-eslint/no-output-native": "warn",
165168
"@angular-eslint/no-output-on-prefix": "warn",
@@ -260,9 +263,48 @@
260263
"rxjs/no-nested-subscribe": "off", // todo: go over _all_ cases
261264

262265
// Custom DSpace Angular rules
266+
"dspace-angular-ts/alias-imports": [
267+
"error",
268+
{
269+
"aliases": [
270+
{
271+
"package": "rxjs",
272+
"imported": "of",
273+
"local": "of"
274+
}
275+
]
276+
}
277+
],
263278
"dspace-angular-ts/themed-component-classes": "error",
264279
"dspace-angular-ts/themed-component-selectors": "error",
265-
"dspace-angular-ts/themed-component-usages": "error"
280+
"dspace-angular-ts/themed-component-usages": "error",
281+
"dspace-angular-ts/themed-decorators": [
282+
"off",
283+
{
284+
"decorators": {
285+
"listableObjectComponent": 3,
286+
"rendersSectionForMenu": 2
287+
}
288+
}
289+
],
290+
"dspace-angular-ts/themed-wrapper-no-input-defaults": "error",
291+
"dspace-angular-ts/unique-decorators": [
292+
"off",
293+
{
294+
"decorators": [
295+
"listableObjectComponent"
296+
]
297+
}
298+
],
299+
"dspace-angular-ts/sort-standalone-imports": [
300+
"error",
301+
{
302+
"locale": "en-US",
303+
"maxItems": 0,
304+
"indent": 2,
305+
"trailingComma": true
306+
}
307+
]
266308
}
267309
},
268310
{

.github/dependabot.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ updates:
1313
directory: "/"
1414
schedule:
1515
interval: "weekly"
16+
time: "05:00"
1617
# Allow up to 10 open PRs for dependencies
1718
open-pull-requests-limit: 10
1819
# Group together Angular package upgrades
@@ -141,6 +142,99 @@ updates:
141142
update-types:
142143
- "minor"
143144
- "patch"
145+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
146+
zonejs:
147+
applies-to: version-updates
148+
patterns:
149+
- "zone.js"
150+
update-types:
151+
- "patch"
152+
ignore:
153+
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
154+
- dependency-name: "*"
155+
update-types: ["version-update:semver-major"]
156+
#####################
157+
## dspace-9_x branch
158+
#####################
159+
- package-ecosystem: "npm"
160+
directory: "/"
161+
target-branch: dspace-9_x
162+
schedule:
163+
interval: "weekly"
164+
time: "05:00"
165+
# Allow up to 10 open PRs for dependencies
166+
open-pull-requests-limit: 10
167+
# Group together Angular package upgrades
168+
groups:
169+
# Group together all patch version updates for Angular in a single PR
170+
angular:
171+
applies-to: version-updates
172+
patterns:
173+
- "@angular*"
174+
update-types:
175+
- "minor"
176+
- "patch"
177+
# Group together all minor/patch version updates for NgRx in a single PR
178+
ngrx:
179+
applies-to: version-updates
180+
patterns:
181+
- "@ngrx*"
182+
update-types:
183+
- "minor"
184+
- "patch"
185+
# Group together all patch version updates for eslint in a single PR
186+
eslint:
187+
applies-to: version-updates
188+
patterns:
189+
- "@typescript-eslint*"
190+
- "eslint*"
191+
update-types:
192+
- "minor"
193+
- "patch"
194+
# Group together any testing related version updates
195+
testing:
196+
applies-to: version-updates
197+
patterns:
198+
- "@cypress*"
199+
- "axe-*"
200+
- "cypress*"
201+
- "jasmine*"
202+
- "karma*"
203+
- "ng-mocks"
204+
update-types:
205+
- "minor"
206+
- "patch"
207+
# Group together any postcss related version updates
208+
postcss:
209+
applies-to: version-updates
210+
patterns:
211+
- "postcss*"
212+
update-types:
213+
- "minor"
214+
- "patch"
215+
# Group together any sass related version updates
216+
sass:
217+
applies-to: version-updates
218+
patterns:
219+
- "sass*"
220+
update-types:
221+
- "minor"
222+
- "patch"
223+
# Group together any webpack related version updates
224+
webpack:
225+
applies-to: version-updates
226+
patterns:
227+
- "webpack*"
228+
update-types:
229+
- "minor"
230+
- "patch"
231+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
232+
zonejs:
233+
applies-to: version-updates
234+
patterns:
235+
- "zone.js"
236+
update-types:
237+
- "patch"
144238
ignore:
145239
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
146240
- dependency-name: "*"
@@ -153,6 +247,7 @@ updates:
153247
target-branch: dspace-8_x
154248
schedule:
155249
interval: "weekly"
250+
time: "05:00"
156251
# Allow up to 10 open PRs for dependencies
157252
open-pull-requests-limit: 10
158253
# Group together Angular package upgrades
@@ -219,6 +314,13 @@ updates:
219314
update-types:
220315
- "minor"
221316
- "patch"
317+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
318+
zonejs:
319+
applies-to: version-updates
320+
patterns:
321+
- "zone.js"
322+
update-types:
323+
- "patch"
222324
ignore:
223325
# Ignore all major version updates for all dependencies. We'll only automate minor/patch updates.
224326
- dependency-name: "*"
@@ -231,6 +333,7 @@ updates:
231333
target-branch: dspace-7_x
232334
schedule:
233335
interval: "weekly"
336+
time: "05:00"
234337
# Allow up to 10 open PRs for dependencies
235338
open-pull-requests-limit: 10
236339
# Group together Angular package upgrades
@@ -289,6 +392,13 @@ updates:
289392
update-types:
290393
- "minor"
291394
- "patch"
395+
# Restrict zone.js updates to patch level to avoid dependency conflicts with @angular/core
396+
zonejs:
397+
applies-to: version-updates
398+
patterns:
399+
- "zone.js"
400+
update-types:
401+
- "patch"
292402
ignore:
293403
# 7.x Cannot update Webpack past v5.76.1 as later versions not supported by Angular 15
294404
# See also https://github.com/DSpace/dspace-angular/pull/3283#issuecomment-2372488489

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
DSPACE_CACHE_SERVERSIDE_ANONYMOUSCACHE_MAX: 0
3030
# Tell Cypress to run e2e tests using the same UI URL
3131
CYPRESS_BASE_URL: http://127.0.0.1:4000
32+
# Disable the cookie consent banner in e2e tests to avoid errors because of elements hidden by it
33+
DSPACE_INFO_ENABLECOOKIECONSENTPOPUP: false
3234
# When Chrome version is specified, we pin to a specific version of Chrome
3335
# Comment this out to use the latest release
3436
#CHROME_VERSION: "90.0.4430.212-1"
@@ -268,6 +270,37 @@ jobs:
268270
echo "$result"
269271
echo "$result" | grep -oE "<meta name=\"title\" [^>]*>" | grep "Environmental &amp; Architectural Phenomenology Vol. 28, No. 1"
270272
273+
# Verify 301 Handle redirect behavior
274+
# Note: /handle/123456789/260 is the same test Publication used by our e2e tests
275+
- name: Verify 301 redirect from '/handle' URLs
276+
run: |
277+
result=$(wget --server-response --quiet http://127.0.0.1:4000/handle/123456789/260 2>&1 | head -1 | awk '{print $2}')
278+
echo "$result"
279+
[[ "$result" -eq "301" ]]
280+
281+
# Verify 403 error code behavior
282+
- name: Verify 403 error code from '/403'
283+
run: |
284+
result=$(wget --server-response --quiet http://127.0.0.1:4000/403 2>&1 | head -1 | awk '{print $2}')
285+
echo "$result"
286+
[[ "$result" -eq "403" ]]
287+
288+
# Verify 404 error code behavior
289+
- name: Verify 404 error code from '/404' and on invalid pages
290+
run: |
291+
result=$(wget --server-response --quiet http://127.0.0.1:4000/404 2>&1 | head -1 | awk '{print $2}')
292+
echo "$result"
293+
result2=$(wget --server-response --quiet http://127.0.0.1:4000/invalidurl 2>&1 | head -1 | awk '{print $2}')
294+
echo "$result2"
295+
[[ "$result" -eq "404" && "$result2" -eq "404" ]]
296+
297+
# Verify 500 error code behavior
298+
- name: Verify 500 error code from '/500'
299+
run: |
300+
result=$(wget --server-response --quiet http://127.0.0.1:4000/500 2>&1 | head -1 | awk '{print $2}')
301+
echo "$result"
302+
[[ "$result" -eq "500" ]]
303+
271304
- name: Stop running app
272305
run: kill -9 $(lsof -t -i:4000)
273306

config/config.example.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,24 @@ ssr:
2323
# Determining which styles are critical is a relatively expensive operation; this option is
2424
# disabled (false) by default to boost server performance at the expense of loading smoothness.
2525
inlineCriticalCss: false
26-
# Path prefixes to enable SSR for. By default these are limited to paths of primary DSpace objects.
27-
# NOTE: The "/handle/" path ensures Handle redirects work via SSR. The "/reload/" path ensures
28-
# hard refreshes (e.g. after login) trigger SSR while fully reloading the page.
29-
paths: [ '/home', '/items/', '/entities/', '/collections/', '/communities/', '/bitstream/', '/bitstreams/', '/handle/', '/reload/' ]
26+
# Patterns to be run as regexes against the path of the page to check if SSR is allowed.
27+
# If the path match any of the regexes it will be served directly in CSR.
28+
# By default, excludes community and collection browse, global browse, global search, community list, statistics and various administrative tools.
29+
excludePathPatterns:
30+
- pattern: "^/communities/[a-f0-9-]{36}/browse(/.*)?$"
31+
flag: "i"
32+
- pattern: "^/collections/[a-f0-9-]{36}/browse(/.*)?$"
33+
flag: "i"
34+
- pattern: "^/browse/"
35+
- pattern: "^/search$"
36+
- pattern: "^/community-list$"
37+
- pattern: "^/admin/"
38+
- pattern: "^/processes/?"
39+
- pattern: "^/notifications/"
40+
- pattern: "^/statistics/?"
41+
- pattern: "^/access-control/"
42+
- pattern: "^/health$"
43+
3044
# Whether to enable rendering of Search component on SSR.
3145
# If set to true the component will be included in the HTML returned from the server side rendering.
3246
# If set to false the component will not be included in the HTML returned from the server side rendering.
@@ -260,6 +274,9 @@ languages:
260274
- code: gd
261275
label: Gàidhlig
262276
active: true
277+
- code: gu
278+
label: ગુજરાતી
279+
active: true
263280
- code: hi
264281
label: हिंदी
265282
active: true
@@ -275,6 +292,9 @@ languages:
275292
- code: lv
276293
label: Latviešu
277294
active: true
295+
- code: mr
296+
label: मराठी
297+
active: true
278298
- code: nl
279299
label: Nederlands
280300
active: true
@@ -287,6 +307,9 @@ languages:
287307
- code: pt-BR
288308
label: Português do Brasil
289309
active: true
310+
- code: ru
311+
label: Русский
312+
active: true
290313
- code: sr-lat
291314
label: Srpski (lat)
292315
active: true
@@ -453,6 +476,8 @@ info:
453476
enableEndUserAgreement: true
454477
enablePrivacyStatement: true
455478
enableCOARNotifySupport: true
479+
# Whether to show the cookie consent popup and the cookie settings footer link or not.
480+
enableCookieConsentPopup: true
456481

457482
# Whether to enable Markdown (https://commonmark.org/) and MathJax (https://www.mathjax.org/)
458483
# display in supported metadata fields. By default, only dc.description.abstract is supported.
@@ -593,6 +618,12 @@ geospatialMapViewer:
593618
defaultCentrePoint:
594619
lat: 41.015137
595620
lng: 28.979530
621+
622+
# Configuration for storing accessibility settings, used by the AccessibilitySettingsService
623+
accessibility:
624+
# The duration in days after which the accessibility settings cookie expires
625+
cookieExpirationDuration: 7
626+
596627
# Option to enable the menu entry to see audit logs on a site level.
597628
# Only site administrators will be able to use this functionality
598629
enableAuditLogsOverview: true

cypress.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default defineConfig({
3434
DSPACE_TEST_SUBMIT_PERSON_COLLECTION_NAME: 'People',
3535
// Account used to test basic submission process
3636
DSPACE_TEST_SUBMIT_USER: 'dspacedemo+submit@gmail.com',
37+
DSPACE_TEST_SUBMIT_USER_UUID: '914955b1-cf2e-4884-8af7-a166aa24cf73',
3738
DSPACE_TEST_SUBMIT_USER_PASSWORD: 'dspace',
3839
// Administrator users group
3940
DSPACE_ADMINISTRATOR_GROUP: 'e59f5659-bff9-451e-b28f-439e7bd467e4'

0 commit comments

Comments
 (0)