Repository navigation
CLARIN-DSpace v9/Specs for the Share submission button - #1603
Open
milanmajchrak wants to merge 2 commits into
Open
milanmajchrak wants to merge 2 commits into
milanmajchrak wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Fable 5.1 <[email protected]>
The success spec now checks that a GET is sent, that its id is used to read the response, and that the spinner is on until the response arrives. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
References
No dtq-dev source: the Share button and
shareSubmission()were ported earlier, and the dtq-dev spec has no test for them either.Overlaps the dspace-angular PR from
93/fe-share-link-mail-warning, which edits the same spec. They merge cleanly in either order, and this spec passes on the merged code.Description
Specs for the Share button of
WorkspaceitemActionsComponent. No production code changes.Instructions for Reviewers
List of changes in this PR:
workspaceitem-actions.component.spec.ts: the button#share_<id>is rendered.GETto<rest>/submission/share?workspaceitemid=<id>and reads the response by that request's id. The spinner is on until the response arrives. Then the success notification shows and the router opens/share-submissionwithchangeSubmitterLink.HALEndpointServiceStub: newgetRootHref()that returns the stub URL.How to test:
npm run test -- --include=src/app/shared/mydspace-actions/workspaceitem/workspaceitem-actions.component.spec.ts: 16 specs pass (13 old, 3 new).Codex review (gpt-6.2-sol, high), 2 rounds: 2 findings fixed (check the GET and its request id, check the spinner while the request is pending), the last round found nothing.
Checklist
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.🤖 Generated with Claude Code