Skip to content

Commit 0e21e8d

Browse files
committed
Merge branch 'ufal/cherrypick-updating-config-files' of github.com:dataquest-dev/dspace-angular into ufal/cherrypick-updating-config-files
2 parents bcf1242 + 70b68f8 commit 0e21e8d

11 files changed

Lines changed: 407 additions & 2555 deletions

File tree

.github/pull_request_template.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
| Phases | MP | MM | MB | MR | JM | Total |
2-
|-----------------|----:|----:|----:|-----:|-----:|-------:|
3-
| ETA | 0 | 0 | 0 | 0 | 0 | 0 |
4-
| Developing | 0 | 0 | 0 | 0 | 0 | 0 |
5-
| Review | 0 | 0 | 0 | 0 | 0 | 0 |
6-
| Total | - | - | - | - | - | 0 |
7-
| ETA est. | | | | | | 0 |
8-
| ETA cust. | - | - | - | - | - | 0 |
91
## Problem description
10-
### Reported issues
11-
### Not-reported issues
2+
123
## Analysis
134
(Write here, if there is needed describe some specific problem. Erase it, when it is not needed.)
145
## Problems
156
(Write here, if some unexpected problems occur during solving issues. Erase it, when it is not needed.)
7+
8+
### Sync verification
9+
If en.json5 or cs.json5 translation files were updated:
10+
- [ ] Run `yarn run sync-i18n -t src/assets/i18n/cs.json5 -i` to synchronize messages, and changes are included in this PR.
11+
12+
### Manual Testing (if applicable)
13+
- [ ] Added to [testing scenarios](https://github.com/dataquest-dev/dspace-customers/issues/55)
14+
15+
### Copilot review
16+
- [ ] Requested review from Copilot

.github/workflows/docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ jobs:
2828
# Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
2929
uses: dataquest-dev/DSpace/.github/workflows/reusable-docker-build.yml@dtq-dev
3030
with:
31-
build_id: dspace-angular
31+
build_id: dspace-angular-dev
3232
image_name: dataquest/dspace-angular
3333
dockerfile_path: ./Dockerfile
34+
tags_flavor: suffix=-dev
35+
# As this is a "dev" image, its tags are all suffixed with "-dev". Otherwise, it uses the same
36+
# tagging logic as the primary 'dspace/dspace-angular' image above.
3437
run_python_version_script: true
3538
python_version_script_dest: src/static-files/VERSION_D.html
3639
secrets:
@@ -42,16 +45,13 @@ jobs:
4245
#############################################################
4346
dspace-angular-dist:
4447
# Ensure this job never runs on forked repos. It's only executed for 'dataquest/dspace-angular'
45-
if: github.repository == 'dataquest-dev/dspace-angular' && false # not used for now
48+
if: github.repository == 'dataquest-dev/dspace-angular'
4649
# Use the reusable-docker-build.yml script from DSpace/DSpace repo to build our Docker image
4750
uses: dataquest-dev/DSpace/.github/workflows/reusable-docker-build.yml@dtq-dev
4851
with:
49-
build_id: dspace-angular-dist
50-
image_name: dspace/dspace-angular
52+
build_id: dspace-angular
53+
image_name: dataquest/dspace-angular
5154
dockerfile_path: ./Dockerfile.dist
52-
# As this is a "dist" image, its tags are all suffixed with "-dist". Otherwise, it uses the same
53-
# tagging logic as the primary 'dspace/dspace-angular' image above.
54-
tags_flavor: suffix=-dist
5555
run_python_version_script: true
5656
python_version_script_dest: src/static-files/VERSION_D.html
5757
secrets:

.github/workflows/trigger-ui-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
2525
git fetch --prune origin
2626
BRANCHES=$(git ls-remote --heads origin | awk -F'/' '{print $3"/"$4}' | grep '^customer/')
27-
SKIP_BRANCHES=("customer/sav")
27+
SKIP_BRANCHES=("customer/sav" "customer/uk")
2828
2929
for branch in $(echo "$BRANCHES" | sed -e 's/[\[\]"]//g' -e 's/,/\n/g'); do
3030
if [[ " ${SKIP_BRANCHES[@]} " =~ " ${branch} " ]]; then

Dockerfile.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ COPY package.json yarn.lock ./
1515
RUN yarn install --network-timeout 300000
1616

1717
ADD . /app/
18+
19+
# Set memory limit for build process - Angular builds require more memory
20+
ENV NODE_OPTIONS="--max_old_space_size=4096"
1821
RUN yarn build:prod
1922

2023
FROM node:18-alpine
Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1-
import { REGEX_MATCH_NON_EMPTY_TEXT } from 'cypress/support/e2e';
2-
import { testA11y } from 'cypress/support/utils';
3-
import '../support/commands';
1+
// Commented out because exposing of the config.json was changed and the `generateViewEvent` cannot be used.
42

5-
describe('Site Statistics Page', () => {
6-
// CLARIN
7-
// NOTE: statistics were removed from the navbar
8-
// it('should load if you click on "Statistics" from homepage', () => {
9-
// cy.visit('/');
10-
// cy.get('a[data-test="link-menu-item.menu.section.statistics"]').click();
11-
// cy.location('pathname').should('eq', '/statistics');
12-
// });
13-
14-
it('should pass accessibility tests', () => {
15-
// generate 2 view events on an Item's page
16-
cy.generateViewEvent(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'), 'item');
17-
cy.generateViewEvent(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'), 'item');
18-
19-
cy.visit('/statistics');
20-
21-
// <ds-site-statistics-page> tag must be visable
22-
cy.get('ds-site-statistics-page').should('be.visible');
23-
24-
// Verify / wait until "Total Visits" table's *last* label is non-empty
25-
// (This table loads these labels asynchronously, so we want to wait for them before analyzing page)
26-
cy.get('table[data-test="TotalVisits"] th[data-test="statistics-label"]').last().contains(REGEX_MATCH_NON_EMPTY_TEXT);
27-
// Wait an extra 500ms, just so all entries in Total Visits have loaded.
28-
cy.wait(500);
29-
30-
// Analyze <ds-site-statistics-page> for accessibility issues
31-
// CLARIN
32-
// NOTE: accessibility tests are failing because the UI has been changed
33-
// testA11y('ds-site-statistics-page');
34-
// CLARIN
35-
});
36-
});
3+
// describe('Site Statistics Page', () => {
4+
// // CLARIN
5+
// // NOTE: statistics were removed from the navbar
6+
// // it('should load if you click on "Statistics" from homepage', () => {
7+
// // cy.visit('/');
8+
// // cy.get('a[data-test="link-menu-item.menu.section.statistics"]').click();
9+
// // cy.location('pathname').should('eq', '/statistics');
10+
// // });
11+
//
12+
// it('should pass accessibility tests', () => {
13+
// // generate 2 view events on an Item's page
14+
// cy.generateViewEvent(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'), 'item');
15+
// cy.generateViewEvent(Cypress.env('DSPACE_TEST_ENTITY_PUBLICATION'), 'item');
16+
//
17+
// cy.visit('/statistics');
18+
//
19+
// // <ds-site-statistics-page> tag must be visable
20+
// cy.get('ds-site-statistics-page').should('be.visible');
21+
//
22+
// // Verify / wait until "Total Visits" table's *last* label is non-empty
23+
// // (This table loads these labels asynchronously, so we want to wait for them before analyzing page)
24+
// cy.get('table[data-test="TotalVisits"] th[data-test="statistics-label"]').last().contains(REGEX_MATCH_NON_EMPTY_TEXT);
25+
// // Wait an extra 500ms, just so all entries in Total Visits have loaded.
26+
// cy.wait(500);
27+
//
28+
// // Analyze <ds-site-statistics-page> for accessibility issues
29+
// // CLARIN
30+
// // NOTE: accessibility tests are failing because the UI has been changed
31+
// // testA11y('ds-site-statistics-page');
32+
// // CLARIN
33+
// });
34+
// });

docker/docker-compose-rest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ services:
8787
- assetstore:/dspace/assetstore
8888
- handle_server:/dspace/handle-server
8989
- ./local.cfg:/dspace/config/local.cfg
90-
# Mount a tmpfs over the requests folder to protect it
91-
- type: tmpfs
92-
target: /dspace/var/oai/requests
93-
tmpfs:
94-
size: 67108864 # 64 MB, adjust as needed
95-
mode: 1777 # writable, sticky bit
90+
# Mount a tmpfs over the requests folder to protect it - associated with https://github.com/dataquest-dev/DSpace/pull/1095
91+
# - type: tmpfs
92+
# target: /dspace/var/oai/requests
93+
# tmpfs:
94+
# size: 67108864 # 64 MB, adjust as needed
95+
# mode: 1777 # writable, sticky bit
9696
# Ensure that the database is ready BEFORE starting tomcat
9797
# 1. While a TCP connection to dspacedb port 5432 is not available, continue to sleep
9898
# 2. Then, run database migration to init database tables

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ services:
3636
dockerfile: Dockerfile
3737
networks:
3838
dspacenet:
39-
entrypoint: ${FE_CMD:-/bin/sh -c "pm2-runtime start docker/dspace-ui.json > /dev/null 2> /dev/null"}
39+
entrypoint: ${FE_CMD:-/bin/sh -c "pm2-runtime start dspace-ui.json > /dev/null 2> /dev/null"}
4040
ports:
4141
- published: 400${INSTANCE}
4242
target: 4000

src/app/core/metadata/metadata.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export class MetadataService {
128128
const titlePrefix = this.translate.get('repository.title.prefix');
129129
const title = this.translate.get(routeInfo.data.value.title, routeInfo.data.value);
130130
combineLatest([titlePrefix, title]).pipe(take(1)).subscribe(([translatedTitlePrefix, translatedTitle]: [string, string]) => {
131-
this.addMetaTag('title', translatedTitlePrefix + translatedTitle);
132-
this.title.setTitle(translatedTitlePrefix + translatedTitle);
131+
this.addMetaTag('title', translatedTitlePrefix + ' ' + translatedTitle);
132+
this.title.setTitle(translatedTitlePrefix + ' ' + translatedTitle);
133133
});
134134
}
135135
if (routeInfo.data.value.description) {

0 commit comments

Comments
 (0)