-
Notifications
You must be signed in to change notification settings - Fork 436
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-4514 start a new submission via file #724
Conversation
…ry cache was expired
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.
@ddinuzzo Thank you for work on this PR. This PR looks good to me.
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.
@ddinuzzo : Overall, this looks good. It works when tested with DSpace/DSpace#2791. However, I've noticed a few odd things that I wanted to ask about.
- First off, it looks like this is blocking the ability to upload more than one file at a time from the MyDSpace page. I don't think we decided to do that. See the inline comment below. If there's a reason for this change in behavior though, I'd like to understand why we decided to change it.
- Second, I'm finding that anytime I cause an error to occur (e.g. upload two files at once, or upload a BibTex with multiple entries), the MyDSpace page become "unusable" until I reload the entire browser window. It's possible this is my own testing environment playing tricks on me. But, it seems to happen every time an error occurs. Here's what I see:
- First, I cause an error. For example, upload a Bibtex file with two entries. I get the proper error message. All seems fine so far.
- Then, if I click on the "New Submission" button I see the Select a Collection popup, but it loads forever. It never completes. I'm forced to hit reload in my browser to get the page to work again.
- Similarly, if I go back and cause the same error & then click on "Edit" next to an in progress item, the same thing occurs. It loads forever. It never completes. I'm forced to hit reload in my browser to get the page to work again.
I'm not yet certain whether the second issue is specific to this PR. If we find it isn't, we can always log a bug ticket and fix it later. But, I'd like more information on the first issue -- why we've chosen to limit the upload to only one file at a time. Thanks!
templateUrl: './collection-selector.component.html', | ||
styleUrls: ['./collection-selector.component.scss'] | ||
}) | ||
export class CollectionSelectorComponent { |
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.
Please add a TypeDocs description to this class.
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.
done
src/app/+my-dspace-page/my-dspace-new-submission/my-dspace-new-submission.component.ts
Show resolved
Hide resolved
this problem should be due to this issue #819 and should not related this PR.
This is a limit of the library that our uploader use that doesn't allow to make a POST with multiple file. To allow multiple simultaneous upload we have two options :
in both case further complicated developments are needed, and we think it'd be better to have a follow-up PR to solve it |
@atarix83 : Thanks for the explanations there. I've created a new bug ticket about the multiple file upload issue (and tentatively scheduled for beta5, though we could fix it earlier if a volunteer came up): #820 I also agree with you that the MyDSpace page error issue is a separate bug. So, this PR can mostly move ahead as-is. I had a minor request for TypeDocs & it looks like there's a new (hopefully minor) merge conflict to resolve. |
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.
👍 Retested today and this works as described (and based on the scope of this PR as discussed in previous comments). Thanks @ddinuzzo !
This can be merged as soon as the backend PR (DSpace/DSpace#2791) is fully approved & merged. It's also very close & I think that should be approved sometime this week.
References
DS-4514
Related REST PR (but not fully dependent on REST PR)
Description
This PR include the following:
Instructions for Reviewers
This PR must have to testing with REST API presents in another PR (PR - 2791)
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.