-
Notifications
You must be signed in to change notification settings - Fork 447
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
DS-4515: Start new submission via Search or ID Lookup (i.e. submit external source) #715
DS-4515: Start new submission via Search or ID Lookup (i.e. submit external source) #715
Conversation
…dspace-angular into DS-4515_submit-external-source
@sourcedump and/or @atarix83 : Can we provide additional testing instructions for this PR? It looks like our PR template was not followed in the description above. Does this PR require any changes to the REST API, or is this able to run on latest master? |
@tdonohue, sorry, my bad, for some reason I've missed the 'template' for the pull request. I'll write the instruction asap. |
This pull request introduces 4 alerts and fixes 1 when merging 9ada61d into 5cef15e - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 3 alerts and fixes 1 when merging 97b4b90 into bb70591 - view on LGTM.com new alerts:
fixed alerts:
|
@tdonohue I fixed merge with main branch, now it should work, could you try? |
This pull request introduces 1 alert when merging 4779dd2 into 1a46031 - view on LGTM.com new alerts:
|
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 @sourcedump : I've retested this today. The build now works (with no errors) when using yarn start
. However, when testing with DSpace/DSpace#2824 as the backend, I cannot get any of the providers (including ORCID) to return results to the UI.
It's worth noting though that the REST API in #2824 works fine, so making ORCID REST requests like http://localhost:8080/server/api/integration/externalsources/orcidV2/entries?query=Donohue
or even PubMed REST requests like http://localhost:8080/server/api/integration/externalsources/pubmed/entries?query=mathematics
work perfectly OK. It's just that the UI doesn't seem to be making that same request?
Hello @tdonohue, I've made a new sync with the main branch to resolve conflicts and tested again the external import. I don't find any problem with the queries to the REST's endpoints. Ex.: for ORCID: As you can see the requests are well formed. |
This pull request introduces 1 alert when merging 25d912b into f1db0c0 - view on LGTM.com new alerts:
|
@sourcedump : It looks like recent changes to this PR have decreased the Code Coverage by over 52%? I'm not sure why that would be, as it almost sounds like it's now skipping a large number of tests. Any ideas from you or maybe @artlowel perhaps? We cannot merge this until we determine how to correct the code coverage. |
src/app/+my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.spec.ts
Outdated
Show resolved
Hide resolved
This pull request introduces 1 alert when merging 94b4115 into cc618eb - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 67bd19a into cc618eb - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ee2f11f into cc618eb - view on LGTM.com new alerts:
|
NOTE FOR REVIEWERS: As noted in today's meeting, this PR is actually passing Travis CI tests (even though it displays a red ❌). Travis attempted to run its tests twice & the successful tests can be seen at https://github.com/DSpace/dspace-angular/pull/715/checks?check_run_id=1032397599 |
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.
👍 @sourcedump and @atarix83 : Retested this today, and it now works properly (with the DSpace/DSpace#2824 backend). I'm not able to reproduce past errors. While some external providers (Sherpa Journals/Publishes primarily) are not returning results, it looks like a backend issue...as the REST request is correct overall.
ONE MINOR ISSUE: I did notice in looking at the REST requests, that the query
param is always sent twice in each request, as the first and last querystring param. So, the REST requests look like this: http://localhost:8080/server/api/integration/externalsources/[source]/entries?query=&sort=score,DESC&page=0&size=10&query=[actual query]
If you look closely, the first param is an empty query
...and the last is the actual query
. This doesn't seem to cause behavior issues, but it does make the requests look odd. So, ideally, if this is easy to fix, we may want to solve it before merging.
@tdonohue the
I think it should be resolved on rest side, do you agree? |
@atarix83 : Yes, I agree with you. Let's resolve that extra |
Merging with 3 approvals. (NOTE: The red ❌ on this PR is not accurate. Travis strangely built this PR twice...it succeeded once, and then the second time GitHub thinks there was an error, even though clicking through the links shows it also succeeded). |
References
Description
Pull request to merge the item submission from external source into the master branch. This feature includes the ability to search and submit an item whose metadata comes from an external source such as Pubmed.
Instructions for Reviewers
List of changes in this PR:
NB: from the -collection choice modal- onwards, the features are part of the Pull 708.
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn run lint
package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.