Preparation work for modularization / library-based approach#4629
Conversation
… inside core, fix paths with /src/app/core
…nvironment import to injection token in core
…utils in config folder
…ACOM-327 # Conflicts: # src/app/core/provide-core.ts # src/app/submission/sections/section-coar-notify/submission-coar-notify-workspaceitem.model.ts
|
Hi @atarix83, |
…ACOM-327 # Conflicts: # src/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component.spec.ts # src/app/shared/dso-selector/modal-wrappers/create-collection-parent-selector/create-collection-parent-selector.component.ts # src/app/shared/dso-selector/modal-wrappers/create-community-parent-selector/create-community-parent-selector.component.spec.ts # src/app/shared/dso-selector/modal-wrappers/create-community-parent-selector/create-community-parent-selector.component.ts # src/app/shared/dso-selector/modal-wrappers/edit-collection-selector/edit-collection-selector.component.spec.ts # src/app/shared/dso-selector/modal-wrappers/edit-collection-selector/edit-collection-selector.component.ts # src/app/shared/dso-selector/modal-wrappers/edit-community-selector/edit-community-selector.component.spec.ts # src/app/shared/dso-selector/modal-wrappers/edit-community-selector/edit-community-selector.component.ts
|
@atarix83 My feedback, as discussed in today's meeting:
|
|
Hi @atarix83, |
…ACOM-327 # Conflicts: # src/app/shared/form/builder/parsers/field-parser.ts
|
I noticed this PR isn't working in dev mode. It seems to impact |
|
@atarix83 : Could you or someone on your team look into @alexandrevryghem 's report above? I can verify that it appears |
|
@alexandrevryghem @tdonohue we'll take a look |
|
@alexandrevryghem, @tdonohue, I opened #4809 and the linked #4810 PR to fix the issue. |
References
Description
This PR refactors and reorganizes the codebase to support a future migration to NX. The migration itself is not included in this PR—this is a preparatory step to make the transition smoother and more maintainable.
Instructions for Reviewers
This PR focuses on architectural improvements and code cleanup. The goal is to isolate core logic and reduce inter-module dependencies, paving the way for a modular NX-based structure.
Although the PR may appear large, most of the changes are due to updated import paths for core, config, and utils, which have been simplified to reflect how these modules will be used as libraries after the NX migration.
The guiding principle behind this refactoring is that each library (core, config, utils) should be fully isolated, with no dependencies on other parts of the application. This ensures a clean separation of concerns and aligns with NX architectural best practices.
List of changes in this PR:
core,config, andutilsfolders by removing dependencies between those "modules" and other parts of the applicationnotificationsandcorrelationIdstate into thecorestatecore,config, andutilsto reflect how they will be used as libraries after the NX migrationHow to test this PR:
notificationsandcorrelationIdfunctionalities are still working as expectedChecklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.