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-892. Update DRUM to DSpace 8.0 #235

Merged
merged 1,389 commits into from
Dec 17, 2024

Conversation

dsteelma-umd
Copy link

Initial upgrade of the DRUM DSpace back-end to DSpace 8.0.

Migration procedure outlined in the following Confluence pages:

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

tdonohue and others added 30 commits April 9, 2024 15:00
Temporarily change branch which Sandbox watches for deployment updates
…onflict with "-loadsql" build by appending "-prod" on main build id.
…5_pr-8267_Issue-stale-record-cleanup

Issue predb status cleanup
COAR Notify Protocol refactor: url to ietf:item
httpd-shibd-foreground.sh needs to be executable
Fix email dependency issues which were causing Submission failures
… in EntityServiceImpl by calling itemService.getEntityType()
Fix OAI indexing error & AuthorityConsumer error
Exclude old Apache Geronimo dependencies from SWORDv2
Add Space in ePerson's Name in Rejection Emails and Metadata
…ration supports modification to match an exact path
…by pagination. Added "feature" filter to tests to ensure we search for the one feature we are interested in.
Switch to using `org.dspace:orcid-model-jakarta` in Maven Central
…eRestRepositoryIT-fix

COAR NotifyService IT failures
…odifying submission configs no longer needed
kshepherd and others added 26 commits June 17, 2024 09:22
Update configuration to always download HTML/JS/XML Bitstreams (no inline display)
Fix OpenAIRE import from external source
[maven-release-plugin] copy for tag dspace-7.6.1
Incorporated stock DSpace 8 changes into the files copied and then
modified with UMD customizations in the "modules/additions" directory.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Updated the configuration files in "dspace-api/src/test/dspaceFolder"
with the stock DSpace 8.0 (so that they override the modified files
in "dspace/config").

This is needed to so for the "dspace-api" unit and integration tests to
pass successfully, as they rely on the stock configuration.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Updated the configuration files in
"dspace-server-webapp/src/test/dspaceFolder"
with the stock DSpace 8.0 (so that they override the modified files
in "dspace/config").

This is needed to so for the "dspace-server-webapp" unit and integration
tests to pass successfully, as they rely on the stock configuration.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Java 17 no longer includes Java EE as a dependency, having moved them
to a "jakarta" dependency.

Updated the Java EE imports "javax.servlet.*" and "javax.persistence.*"
to "jakarta.servlet.*" and "jakarta.persistence.*" respectively.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Updated UMD-added "DSpaceObjectRest" implementations to provide the
required "getTypePlural" method to support pluralized endpoints as
detailed in DSpace pull request 9241

Updated "@component" annotations to use plural names in
DSpaceRestRepository implementations, following the example of the
stock DSpace classes.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Java 17 no longer includes Java EE as a dependency, having moved them
to a "jakarta" dependency.

Updated the Java EE imports "javax.ws.rs.core.MediaType" to
"jakarta.ws.rs.core.MediaType"

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Replaced use of "basic types", which were removed in Hibernate 6, with
the corresponding Hibernate 6 "StandardBasicType" instances.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
As of DSpace 8, The "org.dspace.app.rest.security.StatelessLoginFilter"
class now requires an HTTP request method as part of the "super" call
from subclasses to its constructor.

Modified "CASLoginFilter" to provide the "GET" request method, which
is believed to be correct for this use.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Following the example of the stock DSpace classes, replaced "@Cacheable"
and "@org.hibernate.annotations.Cache" annotations by extending the
"CacheableDSpaceObject" class.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Checkstyle fixes to imports, so that code will pass the Checkstyle task
when running the Maven build.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Updated the parent POM version for the "server-boot" module to point to
the correct parent (i.e., DRUM, instead of DSpace).

This was missed in the initial pass, because the "server-boot" module
was not present in DSpace 8.

Checkstyle fixes to imports, so that code will pass the Checkstyle task
when running the Maven build.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Updated additional UMD-added classes to use pluralized endpoints as
detailed in DSpace pull request 9241

Updated "@component" annotations to use plural names in
DSpaceRestRepository implementations, following the example of the
stock DSpace classes.

Updated endpoints where necessary to use plural names.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Updated the Dockerfiles, including those added by UMD to
more closely match the stock DSpace 8 files, while preserving
UMD customizations for local development builds.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
In DSpace 8, the stock DSpace Dockerfiles were modified to use a
Spring Boot "embedded Tomcat" runnable jar for running the DSpace
back-end.

This method of running ignores the UMD customizations in the
"dspace/modules/additions" and "dspace/modules/server" directories
(see DSpace Issue 9987).

In this pull request, updated the Dockerfiles (and POM files)
to use the "tomcat" Docker image for running the application,
as in DSpace 7.6.2. This ensures that the ensure that UM
 customizations in the "dspace/modules/additions" and
"dspace/modules/server" directory are available.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Modified the Dockerfiles and POMs to be more similar to the stock
DSpace 8 Dockerfiles, which use a Spring Boot "embedded Tomcat" runnable
jar for running the DSpace back-end.

This commit includes customizations to the POM files sent to DSpace
in DSpace#10043, so that customizations
in the "additions" and "server" modules will be incorporated into the
embedded Tomcat build.

Updated "DrumConfigurationCustomization" to provide links to the
"fix" for the embedded Tomcat server.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
Commented out the "codecov" GitHub action that is part of the build
process because UMD does not have an appropriate key for uploading
the results to codecov.io.

Commenting out the action enables the builds to be marked as
successful (as long as they pass the unit and integration tests).

https://umd-dit.atlassian.net/browse/LIBDRUM-892
This file was removed from stock DSpace in DSpace 7.2 (see
<DSpace@618aed6>)
and no longer appears to be necessary.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
@dsteelma-umd dsteelma-umd changed the base branch from main to drum-main December 17, 2024 13:50
Removed most references to DSpace 7, as the documents also now apply
to DSpace 8. Updated the local development setup instructions.

https://umd-dit.atlassian.net/browse/LIBDRUM-892
@dsteelma-umd dsteelma-umd merged commit 38bed53 into umd-lib:drum-main Dec 17, 2024
10 of 11 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.