Skip to content

Commit a1f17dc

Browse files
author
Jens Vannerum
committed
Merge remote-tracking branch 'upstream/dspace-8_x' into w2p-117544_support-for-disabled-elements-for-screen-readers-8.0
2 parents b6df0c9 + 0946958 commit a1f17dc

72 files changed

Lines changed: 323 additions & 155 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.

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@
165165
"@angular-eslint/no-output-native": "warn",
166166
"@angular-eslint/no-output-on-prefix": "warn",
167167
"@angular-eslint/no-conflicting-lifecycle": "warn",
168+
"@angular-eslint/use-lifecycle-interface": "error",
168169

169170
"@typescript-eslint/no-inferrable-types":[
170171
"error",

Dockerfile.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Test build:
55
# docker build -f Dockerfile.dist -t dspace/dspace-angular:latest-dist .
66

7-
FROM node:18-alpine as build
7+
FROM node:18-alpine AS build
88

99
# Ensure Python and other build tools are available
1010
# These are needed to install some node modules, especially on linux/arm64

docker/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ A default/demo version of this image is built *automatically*.
5959

6060
## To refresh / pull DSpace images from Dockerhub
6161
```
62-
docker-compose -f docker/docker-compose.yml pull
62+
docker compose -f docker/docker-compose.yml pull
6363
```
6464

6565
## To build DSpace images using code in your branch
6666
```
67-
docker-compose -f docker/docker-compose.yml build
67+
docker compose -f docker/docker-compose.yml build
6868
```
6969

7070
## To start DSpace (REST and Angular) from your branch
7171

7272
This command provides a quick way to start both the frontend & backend from this single codebase
7373
```
74-
docker-compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d
74+
docker compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d
7575
```
7676

7777
Keep in mind, you may also start the backend by cloning the 'DSpace/DSpace' GitHub repository separately. See the next section.
@@ -86,14 +86,14 @@ _The system will be started in 2 steps. Each step shares the same docker network
8686

8787
From 'DSpace/DSpace' clone (build first as needed):
8888
```
89-
docker-compose -p d8 up -d
89+
docker compose -p d8 up -d
9090
```
9191

9292
NOTE: More detailed instructions on starting the backend via Docker can be found in the [Docker Compose instructions for the Backend](https://github.com/DSpace/DSpace/blob/main/dspace/src/main/docker-compose/README.md).
9393

9494
From 'DSpace/dspace-angular' clone (build first as needed)
9595
```
96-
docker-compose -p d8 -f docker/docker-compose.yml up -d
96+
docker compose -p d8 -f docker/docker-compose.yml up -d
9797
```
9898

9999
At this point, you should be able to access the UI from http://localhost:4000,
@@ -105,40 +105,40 @@ This allows you to run the Angular UI in *production* mode, pointing it at the d
105105
(https://demo.dspace.org/server/ or https://sandbox.dspace.org/server/).
106106

107107
```
108-
docker-compose -f docker/docker-compose-dist.yml pull
109-
docker-compose -f docker/docker-compose-dist.yml build
110-
docker-compose -p d8 -f docker/docker-compose-dist.yml up -d
108+
docker compose -f docker/docker-compose-dist.yml pull
109+
docker compose -f docker/docker-compose-dist.yml build
110+
docker compose -p d8 -f docker/docker-compose-dist.yml up -d
111111
```
112112

113113
## Ingest test data from AIPDIR
114114

115115
Create an administrator
116116
```
117-
docker-compose -p d8 -f docker/cli.yml run --rm dspace-cli create-administrator -e test@test.edu -f admin -l user -p admin -c en
117+
docker compose -p d8 -f docker/cli.yml run --rm dspace-cli create-administrator -e test@test.edu -f admin -l user -p admin -c en
118118
```
119119

120120
Load content from AIP files
121121
```
122-
docker-compose -p d8 -f docker/cli.yml -f ./docker/cli.ingest.yml run --rm dspace-cli
122+
docker compose -p d8 -f docker/cli.yml -f ./docker/cli.ingest.yml run --rm dspace-cli
123123
```
124124

125125
## Alternative Ingest - Use Entities dataset
126126
_Delete your docker volumes or use a unique project (-p) name_
127127

128128
Start DSpace with Database Content from a database dump
129129
```
130-
docker-compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/db.entities.yml up -d
130+
docker compose -p d8 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml -f docker/db.entities.yml up -d
131131
```
132132

133133
Load assetstore content and trigger a re-index of the repository
134134
```
135-
docker-compose -p d8 -f docker/cli.yml -f docker/cli.assetstore.yml run --rm dspace-cli
135+
docker compose -p d8 -f docker/cli.yml -f docker/cli.assetstore.yml run --rm dspace-cli
136136
```
137137

138138
## End to end testing of the REST API (runs in GitHub Actions CI).
139139
_In this instance, only the REST api runs in Docker using the Entities dataset. GitHub Actions will perform CI testing of Angular using Node to drive the tests. See `.github/workflows/build.yml` for more details._
140140

141141
This command is only really useful for testing our Continuous Integration process.
142142
```
143-
docker-compose -p d8ci -f docker/docker-compose-ci.yml up -d
143+
docker compose -p d8ci -f docker/docker-compose-ci.yml up -d
144144
```

docker/db.entities.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# # Therefore, it should be kept in sync with that file
1515
services:
1616
dspacedb:
17-
image: dspace/dspace-postgres-pgcrypto::${DSPACE_VER:-latest}-loadsql
17+
image: "${DOCKER_OWNER:-dspace}/dspace-postgres-pgcrypto:${DSPACE_VER:-latest}-loadsql"
1818
environment:
1919
# This LOADSQL should be kept in sync with the URL in DSpace/DSpace
2020
# This SQL is available from https://github.com/DSpace-Labs/AIP-Files/releases/tag/demo-entities-data
@@ -34,4 +34,4 @@ services:
3434
- |
3535
while (!</dev/tcp/dspacedb/5432) > /dev/null 2>&1; do sleep 1; done;
3636
/dspace/bin/dspace database migrate ignored
37-
java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace
37+
java -jar /dspace/webapps/server-boot.jar --dspace.dir=/dspace

docker/docker-compose-rest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ services:
101101
# * First, run precreate-core to create the core (if it doesn't yet exist). If exists already, this is a no-op
102102
# * Second, copy configsets to this core:
103103
# Updates to Solr configs require the container to be rebuilt/restarted:
104-
# `docker-compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d --build dspacesolr`
104+
# `docker compose -p d7 -f docker/docker-compose.yml -f docker/docker-compose-rest.yml up -d --build dspacesolr`
105105
entrypoint:
106106
- /bin/bash
107107
- '-c'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dspace-angular",
3-
"version": "8.0.0",
3+
"version": "8.1.0-next",
44
"scripts": {
55
"ng": "ng",
66
"config:watch": "nodemon",

src/app/admin/admin-registries/metadata-registry/metadata-registry.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import {
44
NgForOf,
55
NgIf,
66
} from '@angular/common';
7-
import { Component } from '@angular/core';
7+
import {
8+
Component,
9+
OnDestroy,
10+
} from '@angular/core';
811
import {
912
Router,
1013
RouterLink,
@@ -60,7 +63,7 @@ import { MetadataSchemaFormComponent } from './metadata-schema-form/metadata-sch
6063
* A component used for managing all existing metadata schemas within the repository.
6164
* The admin can create, edit or delete metadata schemas here.
6265
*/
63-
export class MetadataRegistryComponent {
66+
export class MetadataRegistryComponent implements OnDestroy {
6467

6568
/**
6669
* A list of all the current metadata schemas within the repository

src/app/admin/admin-reports/filtered-collections/filtered-collections.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
} from '@angular/common';
55
import {
66
Component,
7+
OnInit,
78
ViewChild,
89
} from '@angular/core';
910
import {
@@ -40,7 +41,7 @@ import { FilteredCollections } from './filtered-collections.model';
4041
],
4142
standalone: true,
4243
})
43-
export class FilteredCollectionsComponent {
44+
export class FilteredCollectionsComponent implements OnInit {
4445

4546
queryForm: FormGroup;
4647
results: FilteredCollections = new FilteredCollections();

src/app/admin/admin-reports/filtered-items/filtered-items.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
} from '@angular/common';
66
import {
77
Component,
8+
OnInit,
89
ViewChild,
910
} from '@angular/core';
1011
import {
@@ -68,7 +69,7 @@ import { QueryPredicate } from './query-predicate.model';
6869
],
6970
standalone: true,
7071
})
71-
export class FilteredItemsComponent {
72+
export class FilteredItemsComponent implements OnInit {
7273

7374
collections: OptionVO[];
7475
presetQueries: PresetQuery[];
@@ -92,7 +93,7 @@ export class FilteredItemsComponent {
9293
private formBuilder: FormBuilder,
9394
private restService: DspaceRestService) {}
9495

95-
ngOnInit() {
96+
ngOnInit(): void {
9697
this.loadCollections();
9798
this.loadPresetQueries();
9899
this.loadMetadataFields();

src/app/admin/admin-search-page/admin-search-results/admin-search-result-grid-element/collection-search-result/collection-admin-search-result-grid-element.component.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
import { Component } from '@angular/core';
1+
import {
2+
Component,
3+
OnInit,
4+
} from '@angular/core';
25
import { RouterLink } from '@angular/router';
36

47
import { getCollectionEditRoute } from '../../../../../collection-page/collection-page-routing-paths';
@@ -21,10 +24,10 @@ import { SearchResultGridElementComponent } from '../../../../../shared/object-g
2124
/**
2225
* The component for displaying a list element for a collection search result on the admin search page
2326
*/
24-
export class CollectionAdminSearchResultGridElementComponent extends SearchResultGridElementComponent<CollectionSearchResult, Collection> {
27+
export class CollectionAdminSearchResultGridElementComponent extends SearchResultGridElementComponent<CollectionSearchResult, Collection> implements OnInit {
2528
editPath: string;
2629

27-
ngOnInit() {
30+
ngOnInit(): void {
2831
super.ngOnInit();
2932
this.editPath = getCollectionEditRoute(this.dso.uuid);
3033
}

0 commit comments

Comments
 (0)