Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIBDRUM-867. Update DRUM to DSpace 7.6.2 #73

Merged
merged 396 commits into from
Sep 30, 2024

Conversation

dsteelma-umd
Copy link

Initial upgrade of the DRUM DSpace front-end to DSpace 7.6.2.

Migration procedure outlined in the following Confluence pages:

https://umd-dit.atlassian.net/browse/LIBDRUM-867

dependabot bot and others added 30 commits February 29, 2024 21:26
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](indutny/node-ip@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit c147c7d)
[Port dspace-7_x] Bump ip from 2.0.0 to 2.0.1
[Port dspace-7_x] Update dependencies for Node v20
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.10.0 to 2.12.1.
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](apostrophecms/sanitize-html@2.10.0...2.12.1)

---
updated-dependencies:
- dependency-name: sanitize-html
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
(cherry picked from commit e7eaa9f)
[Port dspace-7_x] Bump sanitize-html from 2.10.0 to 2.12.1
[Port dspace-7_x] fix selector value in CommunitySidebarSearchListElementComponent
(cherry picked from commit 80cc4c5)
(cherry picked from commit 87d3383)
(cherry picked from commit 523850b)
(cherry picked from commit fdbe7a6)
[Port dspace-7_x] Element reference for typeahead directive is only defined when model has authority
…instead of undefined, which prevented its default values from being used

(cherry picked from commit e6bf2f0)
tdonohue and others added 29 commits June 17, 2024 12:34
[Port dspace-7_x] Bump braces from 3.0.2 to 3.0.3
[Port dspace-7_x] Bump tar to 6.2.1
[Port dspace-7_x] Bump postcss to 8.4.38
[Port dspace-7_x] Bump ws from 7.5.9 to 7.5.10
…item-add-relationships-one-by-one_contribute-7_x

Remove Bitstreams on edit-item-page doesn't work
As part of a rebranding in 2015 Crossref started stylizing their
name as "Crossref" instead of "CrossRef".

See: https://www.crossref.org/blog/the-logo-has-landed/
[Port dspace-7_x] src/assets/i18n: CrossRef → Crossref
…s, which in some case changed the order in the queue
[Port dspace-7_x] Fix error which prevent submitter to deposit a new item
Forward the client's user-agent instead of sending Node's.
[Port dspace-7_x] Ensures CSRF token is initialized prior to first modifying (non-GET) request
Forward client's user-agent instead of Node's
The stock DSpace "ds-pagination" component no longer has a
"pageInfoState" so removed from UMD components.

https://umd-dit.atlassian.net/browse/LIBDRUM-867
Updates to "drum" theme files based on comparing the changes made n
7.6.1 to the changes made to the corresponding files in 7.6.2.

\<None> indicates there is no corresponding file.

```
<None>,src/themes/drum/app/bitstream-download-counter/bitstream-download-counter.component.ts
src/app/community-list-page/community-list/community-list.component.html,src/themes/drum/app/community-list-page/community-list/community-list.component.html
src/app/community-list-page/community-list/community-list.component.spec.ts,src/themes/drum/app/community-list-page/community-list/community-list.component.spec.ts
src/app/community-list-page/community-list/community-list.component.ts,src/themes/drum/app/community-list-page/community-list/community-list.component.ts
src/app/community-list-page/community-list-datasource.ts,src/themes/drum/app/community-list-page/community-list-datasource.ts
src/app/community-list-page/community-list-page.component.html,src/themes/drum/app/community-list-page/community-list-page.component.html
src/app/community-list-page/community-list-page.component.spec.ts,src/themes/drum/app/community-list-page/community-list-page.component.spec.ts
src/app/community-list-page/community-list-page.component.ts,src/themes/drum/app/community-list-page/community-list-page.component.ts
src/app/community-list-page/community-list-service.spec.ts,src/themes/drum/app/community-list-page/community-list-service.spec.ts
src/app/community-list-page/community-list-service.ts,src/themes/drum/app/community-list-page/community-list-service.ts
src/app/footer/footer.component.html,src/themes/drum/app/footer/footer.component.html
src/app/footer/footer.component.scss,src/themes/drum/app/footer/footer.component.scss
src/themes/custom/app/footer/footer.component.ts,src/themes/drum/app/footer/footer.component.ts
src/themes/dspace/app/header/header.component.html,src/themes/drum/app/header/header.component.html
src/themes/dspace/app/header/header.component.scss,src/themes/drum/app/header/header.component.scss
src/themes/dspace/app/header/header.component.ts,src/themes/drum/app/header/header.component.ts
src/themes/dspace/app/home-page/home-news/home-news.component.html,src/themes/drum/app/home-page/home-news/home-news.component.html
src/themes/dspace/app/home-page/home-news/home-news.component.scss,src/themes/drum/app/home-page/home-news/home-news.component.scss
src/themes/dspace/app/home-page/home-news/home-news.component.ts,src/themes/drum/app/home-page/home-news/home-news.component.ts
src/app/home-page/home-page.component.html,src/themes/drum/app/home-page/home-page.component.html
src/themes/custom/app/home-page/home-page.component.scss,src/themes/drum/app/home-page/home-page.component.scss
src/themes/custom/app/home-page/home-page.component.ts,src/themes/drum/app/home-page/home-page.component.ts
src/app/info/feedback/feedback-form/feedback-form.component.html,src/themes/drum/app/info/feedback/feedback-form/feedback-form.component.html
src/app/info/feedback/feedback-form/feedback-form.component.scss,src/themes/drum/app/info/feedback/feedback-form/feedback-form.component.scss
src/app/info/feedback/feedback-form/feedback-form.component.ts,src/themes/drum/app/info/feedback/feedback-form/feedback-form.component.ts
src/app/info/feedback/feedback.component.html,src/themes/drum/app/info/feedback/feedback.component.html
src/app/info/feedback/feedback.component.scss,src/themes/drum/app/info/feedback/feedback.component.scss
src/themes/custom/app/info/feedback/feedback.component.ts,src/themes/drum/app/info/feedback/feedback.component.ts
src/app/info/privacy/privacy.component.html,src/themes/drum/app/info/privacy/privacy.component.html
src/app/info/privacy/privacy.component.scss,src/themes/drum/app/info/privacy/privacy.component.scss
src/themes/custom/app/info/privacy/privacy.component.ts,src/themes/drum/app/info/privacy/privacy.component.ts
<None>,src/themes/drum/app/item-page/json-ld/mocks/mock-json-ld-items.ts
<None>,src/themes/drum/app/item-page/json-ld/json-ld-dataset.component.ts
<None>,src/themes/drum/app/item-page/json-ld/json-ld-dataset.transformer.spec.ts
<None>,src/themes/drum/app/item-page/json-ld/json-ld-dataset.transformer.ts
<None>,src/themes/drum/app/item-page/json-ld/json-ld-website.component.ts
<None>,src/themes/drum/app/item-page/json-ld/json-ld.service.spec.ts
<None>,src/themes/drum/app/item-page/json-ld/json-ld.service.ts
src/app/item-page/simple/field-components/file-section/file-section.component.html,src/themes/drum/app/item-page/simple/field-components/file-section/file-section.component.html
src/themes/custom/app/item-page/simple/field-components/file-section/file-section.component.ts,src/themes/drum/app/item-page/simple/field-components/file-section/file-section.component.ts
src/app/item-page/simple/item-types/untyped-item/untyped-item.component.html,src/themes/drum/app/item-page/simple/item-types/untyped-item/untyped-item.component.html
src/app/item-page/simple/item-types/untyped-item.component.scss,src/themes/drum/app/item-page/simple/item-types/untyped-item/untyped-item.component.scss
src/themes/custom/app/item-page/simple/item-types/untyped-item/untyped-item.component.ts,src/themes/drum/app/item-page/simple/item-types/untyped-item/untyped-item.component.ts
src/app/item-page/simple/item-page.component.html,src/themes/drum/app/item-page/simple/item-page.component.html
src/themes/custom/app/item-page/simple/item-page.component.scss,src/themes/drum/app/item-page/simple/item-page.component.scss
src/themes/custom/app/item-page/simple/item-page.component.ts,src/themes/drum/app/item-page/simple/item-page.component.ts
src/app/login-page/login-page.component.html,src/themes/drum/app/login-page/login-page.component.html
src/app/login-page/login-page.component.scss,src/themes/drum/app/login-page/login-page.component.scss
src/themes/custom/app/login-page/login-page.component.ts,src/themes/drum/app/login-page/login-page.component.ts
src/themes/dspace/app/navbar/navbar.component.html,src/themes/drum/app/navbar/navbar.component.html
src/themes/dspace/app/navbar/navbar.component.scss,src/themes/drum/app/navbar/navbar.component.scss
src/themes/dspace/app/navbar/navbar.component.ts,src/themes/drum/app/navbar/navbar.component.ts
<None>,src/themes/drum/app/umd-environment-banner/umd-environment-banner.component.html
<None>,src/themes/drum/app/umd-environment-banner/umd-environment-banner.component.scss
<None>,src/themes/drum/app/umd-environment-banner/umd-environment-banner.component.spec.ts
<None>,src/themes/drum/app/umd-environment-banner/umd-environment-banner.component.ts
<None>,src/themes/drum/app/umd-header/umd-header.component.ts
<None>,src/themes/drum/assets/images/favicons/favicon.ico
<None>,src/themes/drum/assets/images/drum-background-image-tile.png
<None>,src/themes/drum/assets/images/drum-logo.svg
<None>,src/themes/drum/assets/images/eap.png
<None>,src/themes/drum/assets/images/submit.png
<None>,src/themes/drum/assets/images/theses.png
<None>,src/themes/drum/assets/images/university_libraries_logo.svg
<None>,src/themes/drum/assets/static-pages/health-ping.html
<None>,src/themes/drum/styles/_global-styles.scss
<None>,src/themes/drum/styles/_theme_css_variable_overrides.scss
src/themes/dspace/styles/theme.scss,src/themes/drum/styles/theme.scss
src/themes/dspace/eager-theme.module.ts,src/themes/drum/eager-theme.module.ts
src/themes/dspace/lazy-theme.module.ts,src/themes/drum/lazy-theme.module.ts
```

https://umd-dit.atlassian.net/browse/LIBDRUM-867
Updates to "drum" theme components to keep them aligned as closely
as possible with changes for 7.6.2, while maintaining UMD
customizations.

https://umd-dit.atlassian.net/browse/LIBDRUM-867
The stock DSpace "ds-pagination" component no longer has a
"pageInfoState" so removed from UMD components.

https://umd-dit.atlassian.net/browse/LIBDRUM-867
Updates to "drum" theme files based on comparing the changes made n
7.6.1 to the changes made to the corresponding files in 7.6.2.

https://umd-dit.atlassian.net/browse/LIBDRUM-867
Updates to "drum" theme components to keep them aligned as closely
as possible with changes for 7.6.2, while maintaining UMD
customizations.

https://umd-dit.atlassian.net/browse/LIBDRUM-867
After applying the DSpace 7.6.2 code changes, the files in the "navbar"
component of the "drum" theme matched the files either in the "dspace"
theme (on which the "drum" theme is based) or the stock DSpace files.

Since they appear to be redundant, removing them from the theme.

https://umd-dit.atlassian.net/browse/LIBDRUM-867
Fixed the following "yarn lint" warning:

```
3:10  error  'AuthService' is defined but never used  unused-imports/no-unused-imports
```
https://umd-dit.atlassian.net/browse/LIBDRUM-867
@dsteelma-umd dsteelma-umd merged commit 0ec5429 into umd-lib:drum-main Sep 30, 2024
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.