Skip to content

[DSpace-CRIS] Bulk Import from Excel File (Frontend)#5135

Open
FrancescoMolinaro wants to merge 6 commits into
DSpace:mainfrom
4Science:task/main/DURACOM-456
Open

[DSpace-CRIS] Bulk Import from Excel File (Frontend)#5135
FrancescoMolinaro wants to merge 6 commits into
DSpace:mainfrom
4Science:task/main/DURACOM-456

Conversation

@FrancescoMolinaro

@FrancescoMolinaro FrancescoMolinaro commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

References

Description

Add new /bulk-import path under the collection route, to execute an import in bulk from file directly into the
collection.
The new page is accessible from the collection edit menu:

image image

Instructions for Reviewers

The bulk import script allows to add, update or delete multiple items by uploading an excel file with a specific structure. All the items involved in a single import run must refer to a single collection: the updated and deleted objects must therefore be contained in that collection and the added items will be placed within the same collection.

List of changes in this PR:

Add new collection subroute and related page component.
Add new collection edit menu.

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

  • My PR is created against the main branch of code (unless it is a backport or is fixing an issue specific to an older branch).
  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using npm run lint
  • My PR doesn't introduce circular dependencies (verified via npm run check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • My PR aligns with Accessibility guidelines if it makes changes to the user interface.
  • My PR uses i18n (internationalization) keys instead of hardcoded English text, to allow for translations.
  • My PR includes details on how to test it. I've provided clear instructions to reviewers on how to successfully test this fix or feature.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

@tdonohue

Copy link
Copy Markdown
Member

Same here, @FrancescoMolinaro . Please specify in the description which features/differences this PR relates to.

@tdonohue tdonohue added new feature DSpace-CRIS merger This ticket/PR relates to the merger of DSpace-CRIS into DSpace. labels Feb 20, 2026
@tdonohue tdonohue moved this to 🙋 Needs Reviewers Assigned in DSpace 10.0 Release Feb 20, 2026
@FrancescoMolinaro FrancescoMolinaro marked this pull request as ready for review March 4, 2026 17:11
@artlowel artlowel requested a review from aprilherron March 12, 2026 17:02
@github-actions

Copy link
Copy Markdown

Hi @FrancescoMolinaro,
Conflicts have been detected against the base branch.
Please resolve these conflicts as soon as you can. Thanks!

@tdonohue

Copy link
Copy Markdown
Member

I believe this requires backend PR DSpace/DSpace#11968. So, I've updated the description to note that

@tdonohue tdonohue changed the title [DSpace-CRIS] Porting of Bulk Import functionality [DSpace-CRIS] Bulk Import from Excel File (Frontend) Mar 13, 2026
@lgeggleston lgeggleston moved this from 🙋 Needs Reviewers Assigned to 👀 Under Review in DSpace 10.0 Release Mar 19, 2026
@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown

Hi @FrancescoMolinaro,
Conflicts have been detected against the base branch.
Please resolve these conflicts as soon as you can. Thanks!

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

Hi @FrancescoMolinaro,
Conflicts have been detected against the base branch.
Please resolve these conflicts as soon as you can. Thanks!

@Dawnkai

Dawnkai commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@tdonohue My colleague from PCG, @Emil-Domagala-pcg would like to perform a code review for this PR. Can you please add him as a reviewer to this task?

@tdonohue

Copy link
Copy Markdown
Member

@Dawnkai : Unfortunately, because of limitations with GitHub, I can only assign someone to a code review if they are a member of our "developer" team in GitHub or they comment on the PR directly. So, I've sent an invite to @Emil-Domagala-pcg to be added to the "developer" team for DSpace.

In the meantime, @Emil-Domagala-pcg is welcome to review this PR (and the backend one) even if they are not formally assigned.

* A boolean representing if a create delete operation is pending
* @type {BehaviorSubject<boolean>}
*/
processingImport$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this defined if its never updated?

i cant see anywhere in the file any change for it

* Validates the form, sets the parameters to correct values and invokes the script with the correct parameters
* @param form
*/
submit() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method never checks if this.selectedFile is not null. In such cases this will throw error when trying to access .name

or form validity

*/
submit() {

const values: any = this.form.value;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why :any?


this.scriptService.invoke('bulk-import', stringParameters, [this.selectedFile])
.pipe(getFirstCompletedRemoteData())
.subscribe((rd: RemoteData<Process>) => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would prefer instead of using if to use something like:

.subscribe({
next: (rd) => { ... },
error: () => {this.notificationsService.error(...);}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DSpace-CRIS merger This ticket/PR relates to the merger of DSpace-CRIS into DSpace. new feature

Projects

Status: 👀 Under Review

Development

Successfully merging this pull request may close these issues.

[DSpace-CRIS] Bulk Import from Excel File

5 participants