-
Notifications
You must be signed in to change notification settings - Fork 35
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
Obsolete text field "attachment name..." #979
Conversation
@jhyle Thanks, let me find someone who can review this pull request |
@krzyk review it |
* @param dst File | ||
* @throws IOException If fails | ||
*/ | ||
private void copy(final Request src, final File dst) throws IOException { |
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.
@jhyle instead of creating this method you can reuse Files.copy(src.body, dst.toPath())
@jhyle please see my comments above and also a test would be nice |
@@ -54,6 +55,7 @@ | |||
import org.takes.facets.forward.RsForward; | |||
import org.takes.rq.RqHeaders; | |||
import org.takes.rq.RqMultipart; | |||
import org.takes.rq.RqMultipart.Smart; |
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.
@jhyle don't use such imports, the correct class name should be RqMultipart.Smart
, not just Smart
@krzyk Ok, I did the changes and added a puzzle for the missing test. |
@jhyle unfortunately we need to have the test first, implementation (or a part of it) could be in |
@karato ping |
@karato Please give an answer. |
@jhyle I haven't seen a case where the budget was extended, you could try with Yegor. But basically, when you take a task you accept http://at.teamed.io/policy.html and specifically:
and this http://www.yegor256.com/2015/07/16/fools-dont-write-unit-tests.html |
@krzyk I added a test, but it fails with
Can it be that the RqMultipart.Fake does not handle multiple dispositions correctly?
|
@jhyle sorry I don't know, you would have to look at the code of this class |
@karato @krzyk waiting for yegor256/takes#577 |
@jhyle OK, take your time |
@jhyle maybe you could find another way to test this without use this class? |
@krzyk Sorry, but I already invested a lot of time in this task. @karato Maybe it is possible to assign the task yegor256/takes#577 to me, so I can find out what is not working? |
@jhyle Are you planning to finish this? Generally tasks should be closed in under 10 days, if you can't do it in such time you should ask for reassignment. |
@jhyle Please close this PR if you are not planning to finish. |
@jhyle ping |
@jhyle please close this issue |
@dmzaytsev what should I do when @jhyle is not responding? |
@jhyle ping |
@dmzaytsev what do you think? |
@dmzaytsev @krzyk I'm closing |
@ypshenychka please, check this issue for QA compliance, as per par.24 |
According to our QA Rules:
Please correct your message by indicating an addressee in the beginning. |
@ypshenychka fixed |
@dmzaytsev Thank you. |
@karato Quality is acceptable. |
@ypshenychka thanks, got it. everybody, please try to make it good next time |
@krzyk I added 10 mins to @ypshenychka (for QA review) in transaction 82738942. 32 mins added to your account (payment number |
See #865. This patch adds a js function that fills the attachement name field when a file is selected for upload. The user can change the name then. At upload, the name is taken for the attachement if given, the name of the uploaded file otherwise.
I had to add to suppress the ExcessiveImports warning, maybe create a puzzle for it?