Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2329)

Issue 13884044: Tar widget with hints

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by sunu0000
Modified:
10 years, 7 months ago
Reviewers:
s.z.w.lip
Visibility:
Public.

Description

Tar widget with hints

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -43 lines) Patch
M data/explorations/tar.yaml View 2 chunks +74 lines, -10 lines 0 comments Download
A data/files/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A data/files/hello.c View 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/objects/models/objects.py View 2 chunks +21 lines, -0 lines 0 comments Download
M extensions/rules/base.py View 1 chunk +4 lines, -0 lines 0 comments Download
A extensions/rules/tar_file_string.py View 1 1 chunk +101 lines, -0 lines 3 comments Download
A extensions/rules/tar_file_string_test.py View 1 1 chunk +125 lines, -0 lines 3 comments Download
A extensions/rules/testdata/apple-double.tar.gz View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/rules/testdata/good.tar.gz View 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/rules/testdata/incorrect-contents.tar.gz View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/rules/testdata/missing-expected-file.tar.gz View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/rules/testdata/myproject-0.1/Makefile View 1 1 chunk +1 line, -0 lines 0 comments Download
A extensions/rules/testdata/no-wrapper-dir.tar.gz View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/rules/testdata/unexpected-file.tar.gz View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/rules/testdata/wrong-wrapper-name.tar.gz View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/widgets/interactive/FileReadInputWithHints/FileReadInputWithHints.html View 1 1 chunk +54 lines, -0 lines 0 comments Download
A + extensions/widgets/interactive/FileReadInputWithHints/FileReadInputWithHints.py View 1 3 chunks +26 lines, -17 lines 0 comments Download
A + extensions/widgets/interactive/FileReadInputWithHints/response.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + extensions/widgets/interactive/FileReadInputWithHints/static/js/FileReadInputWithHints.js View 1 4 chunks +12 lines, -3 lines 3 comments Download
A extensions/widgets/interactive/TarFileReadInputWithHints/TarFileReadInputWithHints.html View 1 1 chunk +53 lines, -0 lines 0 comments Download
A + extensions/widgets/interactive/TarFileReadInputWithHints/TarFileReadInputWithHints.py View 1 3 chunks +26 lines, -17 lines 0 comments Download
A + extensions/widgets/interactive/TarFileReadInputWithHints/response.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + extensions/widgets/interactive/TarFileReadInputWithHints/static/js/TarFileReadInputWithHints.js View 1 3 chunks +13 lines, -4 lines 0 comments Download
M feconf.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
s.z.w.lip
Hi Sunu, I think there were a bunch of comments I made in the previous ...
10 years, 7 months ago (2013-09-26 07:48:30 UTC) #1
sunu0000
Hi Sean! Updated the review. Fixed things I had missed before(sorry!). See if I missed ...
10 years, 7 months ago (2013-09-26 16:39:35 UTC) #2
s.z.w.lip
Hi Sunu! Thanks, I think this looks good. After you address all the comments, please ...
10 years, 7 months ago (2013-09-27 05:38:16 UTC) #3
sunu0000
https://codereview.appspot.com/13884044/diff/9001/extensions/rules/tar_file_string_test.py File extensions/rules/tar_file_string_test.py (right): https://codereview.appspot.com/13884044/diff/9001/extensions/rules/tar_file_string_test.py#newcode29 extensions/rules/tar_file_string_test.py:29: class TarFileStringRuleUnitTests(unittest.TestCase): On 2013/09/27 05:38:17, s.z.w.lip wrote: > Did ...
10 years, 7 months ago (2013-09-28 06:13:22 UTC) #4
s.z.w.lip
10 years, 7 months ago (2013-09-28 06:53:39 UTC) #5
https://codereview.appspot.com/13884044/diff/9001/extensions/rules/tar_file_s...
File extensions/rules/tar_file_string_test.py (right):

https://codereview.appspot.com/13884044/diff/9001/extensions/rules/tar_file_s...
extensions/rules/tar_file_string_test.py:29: class
TarFileStringRuleUnitTests(unittest.TestCase):
Ah. Yes, I think we can allow '_'.

On 2013/09/28 06:13:22, sunu0000 wrote:
> On 2013/09/27 05:38:17, s.z.w.lip wrote:
> > Did you change the number of tests in the test suite?
> > 
> > (Please make sure that every test passes before submitting your code.)
> 
> Err... one test is failing. The name of the parameter in widget doesn't allow
> '_'. Should I change the name or should we include '_' as well?

https://codereview.appspot.com/13884044/diff/9001/extensions/widgets/interact...
File
extensions/widgets/interactive/FileReadInputWithHints/static/js/FileReadInputWithHints.js
(right):

https://codereview.appspot.com/13884044/diff/9001/extensions/widgets/interact...
extensions/widgets/interactive/FileReadInputWithHints/static/js/FileReadInputWithHints.js:33:
$scope.$apply();
Thanks for explaining! Hmm, that is actually unexpected. Can you put a comment
in this and the other JS file explaining this:

   // The call to $scope.$apply() is needed because $scope.filename does not
   // update automatically in the HTML template.

Then, one day in the future, I'll look into it :-)

Thanks!

On 2013/09/28 06:13:22, sunu0000 wrote:
> On 2013/09/27 05:38:17, s.z.w.lip wrote:
> > Just checking: why do you need this? (What does not work?)
> > 
> > Please add a comment to the file explaining this -- we are trying to remove
> > $scope.$apply()'s in various places so it would help to have the context.he 
> 
> The filename originally is an empty string. When the filename gets updated,
the
> updated value doesn't show up in the browser. So I'm doing $scope.$apply()  
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b