Skip to content

Commit 551365a

Browse files
committed
Merge remote-tracking branch 'atmire/w2p-94207_Fix-resource-policy-cache-issues' into w2p-94273_Track-dependencies-in-order-to-invalidate-them-when-an-object-is-invalidated
2 parents 293ba84 + 8d36de2 commit 551365a

328 files changed

Lines changed: 18202 additions & 12979 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.

.gitattributes

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
1-
# Auto detect text files and perform LF normalization
1+
# By default, auto detect text files and perform LF normalization
2+
# This ensures code is always checked in with LF line endings
23
* text=auto
4+
5+
# JS and TS files must always use LF for Angular tools to work
6+
# Some Angular tools expect LF line endings, even on Windows.
7+
# This ensures Windows always checks out these files with LF line endings
8+
# We've copied many of these rules from https://github.com/angular/angular-cli/
9+
*.js eol=lf
10+
*.ts eol=lf
11+
*.json eol=lf
12+
*.json5 eol=lf
13+
*.css eol=lf
14+
*.scss eol=lf
15+
*.html eol=lf
16+
*.svg eol=lf

config/config.example.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,10 @@ mediaViewer:
258258
info:
259259
enableEndUserAgreement: true
260260
enablePrivacyStatement: true
261+
# Home Page
262+
homePage:
263+
recentSubmissions:
264+
# The number of item showing in recent submission components
265+
pageSize: 5
266+
# Sort record of recent submission
267+
sortField: 'dc.date.accessioned'

cypress/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
screenshots/
22
videos/
3+
downloads/

scripts/serve.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ const appConfig: AppConfig = buildAppConfig();
77

88
/**
99
* Calls `ng serve` with the following arguments configured for the UI in the app config: host, port, nameSpace, ssl
10+
* Any CLI arguments given to this script are patched through to `ng serve` as well.
1011
*/
1112
child.spawn(
12-
`ng serve --host ${appConfig.ui.host} --port ${appConfig.ui.port} --serve-path ${appConfig.ui.nameSpace} --ssl ${appConfig.ui.ssl}`,
13+
`ng serve --host ${appConfig.ui.host} --port ${appConfig.ui.port} --serve-path ${appConfig.ui.nameSpace} --ssl ${appConfig.ui.ssl} ${process.argv.slice(2).join(' ')}`,
1314
{ stdio: 'inherit', shell: true }
1415
);

scripts/sync-i18n-files.ts

100755100644
File mode changed.

scripts/test-rest.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ console.log(`...Testing connection to REST API at ${restUrl}...\n`);
2222
if (appConfig.rest.ssl) {
2323
const req = https.request(restUrl, (res) => {
2424
console.log(`RESPONSE: ${res.statusCode} ${res.statusMessage} \n`);
25-
res.on('data', (data) => {
25+
// We will keep reading data until the 'end' event fires.
26+
// This ensures we don't just read the first chunk.
27+
let data = '';
28+
res.on('data', (chunk) => {
29+
data += chunk;
30+
});
31+
res.on('end', () => {
2632
checkJSONResponse(data);
2733
});
2834
});
@@ -35,7 +41,13 @@ if (appConfig.rest.ssl) {
3541
} else {
3642
const req = http.request(restUrl, (res) => {
3743
console.log(`RESPONSE: ${res.statusCode} ${res.statusMessage} \n`);
38-
res.on('data', (data) => {
44+
// We will keep reading data until the 'end' event fires.
45+
// This ensures we don't just read the first chunk.
46+
let data = '';
47+
res.on('data', (chunk) => {
48+
data += chunk;
49+
});
50+
res.on('end', () => {
3951
checkJSONResponse(data);
4052
});
4153
});

src/app/access-control/epeople-registry/eperson-form/eperson-form.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe('EPersonFormComponent', () => {
177177

178178
});
179179
groupsDataService = jasmine.createSpyObj('groupsDataService', {
180-
findAllByHref: createSuccessfulRemoteDataObject$(createPaginatedList([])),
180+
findListByHref: createSuccessfulRemoteDataObject$(createPaginatedList([])),
181181
getGroupRegistryRouterLink: ''
182182
});
183183

src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class EPersonFormComponent implements OnInit, OnDestroy {
265265
this.formGroup = this.formBuilderService.createFormGroup(this.formModel);
266266
this.subs.push(this.epersonService.getActiveEPerson().subscribe((eperson: EPerson) => {
267267
if (eperson != null) {
268-
this.groups = this.groupsDataService.findAllByHref(eperson._links.groups.href, {
268+
this.groups = this.groupsDataService.findListByHref(eperson._links.groups.href, {
269269
currentPage: 1,
270270
elementsPerPage: this.config.pageSize
271271
});
@@ -297,7 +297,7 @@ export class EPersonFormComponent implements OnInit, OnDestroy {
297297
}),
298298
switchMap(([eperson, findListOptions]) => {
299299
if (eperson != null) {
300-
return this.groupsDataService.findAllByHref(eperson._links.groups.href, findListOptions, true, true, followLink('object'));
300+
return this.groupsDataService.findListByHref(eperson._links.groups.href, findListOptions, true, true, followLink('object'));
301301
}
302302
return observableOf(undefined);
303303
})
@@ -554,7 +554,7 @@ export class EPersonFormComponent implements OnInit, OnDestroy {
554554
*/
555555
private updateGroups(options) {
556556
this.subs.push(this.epersonService.getActiveEPerson().subscribe((eperson: EPerson) => {
557-
this.groups = this.groupsDataService.findAllByHref(eperson._links.groups.href, options);
557+
this.groups = this.groupsDataService.findListByHref(eperson._links.groups.href, options);
558558
}));
559559
}
560560
}

src/app/access-control/group-registry/group-form/members-list/members-list.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ describe('MembersListComponent', () => {
5353
activeGroup: activeGroup,
5454
epersonMembers: epersonMembers,
5555
subgroupMembers: subgroupMembers,
56-
findAllByHref(href: string): Observable<RemoteData<PaginatedList<EPerson>>> {
56+
findListByHref(href: string): Observable<RemoteData<PaginatedList<EPerson>>> {
5757
return createSuccessfulRemoteDataObject$(buildPaginatedList<EPerson>(new PageInfo(), groupsDataServiceStub.getEPersonMembers()));
5858
},
5959
searchByScope(scope: string, query: string): Observable<RemoteData<PaginatedList<EPerson>>> {

src/app/access-control/group-registry/group-form/members-list/members-list.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class MembersListComponent implements OnInit, OnDestroy {
129129
this.subs.set(SubKey.MembersDTO,
130130
this.paginationService.getCurrentPagination(this.config.id, this.config).pipe(
131131
switchMap((currentPagination) => {
132-
return this.ePersonDataService.findAllByHref(this.groupBeingEdited._links.epersons.href, {
132+
return this.ePersonDataService.findListByHref(this.groupBeingEdited._links.epersons.href, {
133133
currentPage: currentPagination.currentPage,
134134
elementsPerPage: currentPagination.pageSize
135135
}
@@ -171,7 +171,7 @@ export class MembersListComponent implements OnInit, OnDestroy {
171171
return this.groupDataService.getActiveGroup().pipe(take(1),
172172
mergeMap((group: Group) => {
173173
if (group != null) {
174-
return this.ePersonDataService.findAllByHref(group._links.epersons.href, {
174+
return this.ePersonDataService.findListByHref(group._links.epersons.href, {
175175
currentPage: 1,
176176
elementsPerPage: 9999
177177
})

0 commit comments

Comments
 (0)