-
Notifications
You must be signed in to change notification settings - Fork 439
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
Migration to standalone components #2750
Conversation
…aServiceFor decorator
…taServiceFor decorator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atarix83 and @AndreaBarbasso : Overall this looks good and mostly works. However, I've found a number of pages which are slightly broken while testing this. All my tests are done in production mode (yarn build:prod; yarn serve:ssr)
- Request a withdrawal feature no longer works.
- Enable it via
qaevents.enabled = true
andqaevents.withdraw-reinstate.group = Anonymous
- Login, and attempt to request a withdrawal on any Item
- The popup modal will not appear and you will not be able to complete the request.
- Enable it via
- Select Collection popup broken in batch import
- Login as Admin
- Go to Import > Batch Import (Zip)
- Click "Select Collection". Popup is empty
- Publication Claim feature no longer loads from Admin Menu
- Ensure this feature is enabled, and at least one publication claim exists
- Login as an Admin and go to "Notifications" > "Publication Claim"
- Page will not load and you'll see errors in your Browser DevTools
- Admin Workflow page no longer loads
- Login as an Admin and go to "Administer Workflow"
- Results will show but titles/authors are missing. You can only see the buttons
- You'll also see errors in your Browser DevTools
- LDN Services page no longer loads
- Login as an Admin and go to "COAR Notify -> LDN Services"
- No services will load. Errors will apepar in your Browser DevTools
- Item Preview after import no longer loads properly
- Login as someone with submit privileges
- Go to MyDSpace, click the Import from external sources button
- Select an external source and perform a search.
- Click on import next to a result. The "Item Preview" popup will appear but all information will be missing from this popup.
- (NOTE: it's still possible to complete the import. The only bug is that the Item Preview page doesn't show its preview)
Overall, this is looking great and most features appear to be working (at least everything else I've tried). These are the only ones where I've noticed larger bugs/failures.
thanks @tdonohue for your feedback we'll take a look |
point 1, 2, 4 and 6 should be fixed, still working on point 3 and 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @atarix83!
Everything mostly works, but I noticed a few issues, on top of the ones @tdonohue already mentioned:
- On community and collection homepages the active tab is no longer highlighted
- In search results and list items, the "metadata only" and "open access" badges are no longer shown (e.g. see the publications section on https://sandbox.dspace.org/entities/project/3329a278-2719-4bae-a5d5-d2039afc2fe2, or the results at: https://sandbox.dspace.org/search?query=test)
- The edit relationships tab crashes on items that have relationships (e.g. https://sandbox.dspace.org/entities/publication/8dfe7be1-77d3-440f-8b67-003dd6e7d90e/edit/relationships)
- The console shows the error: Cannot read properties of null (reading 'getRenderTypes')
all issues should be fixed now.
regarding this point, by default the badges are not show https://github.com/DSpace/dspace-angular/blob/main/src/config/default-app-config.ts#L324 if you enable that option it works properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @atarix83!
regarding this point, by default the badges are not show https://github.com/DSpace/dspace-angular/blob/main/src/config/default-app-config.ts#L324 if you enable that option it works properly
You're right, my mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
References
Description
The goal of this document is to migrate the DSpace Angular application to a standalone components approach.
Instructions for Reviewers
From a code review perspective the best approach to review this PR is to refer to the dedicated wiki page mentioned below.
From a functional perspective the best approach it to review this PR by running the application (against sandbox rest server) to verify everything works properly as the current sandbox environment.
List of changes in this PR:
See wiki page https://wiki.lyrasis.org/display/DSPACE/Migration+to+Standalone+Components
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.