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

Issue 1997041: Fixing ConcatVisitor for cases where media type is "all", no media type and having title attribute. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by satya3656
Modified:
15 years, 4 months ago
Reviewers:
satya3656
CC:
dev-remailer_shindig.apache.org
Base URL:
http://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

ConcatVisitor Fixes for CSS. CSS Styles getting reordered due to following issues. 1) specifying no media type is equivalent to media type "screen" and so they should not be batched into different batch. 2) css link tags should not be batched across media type 'all'. 3) css link tags should not be batched across link's with title attribute. (as browsers support choice to select among preferred css stylesheets)

Patch Set 1 #

Total comments: 7

Patch Set 2 : Made the changes #

Patch Set 3 : Add one more small fix if there is a title attribute set. #

Total comments: 4

Patch Set 4 : Sync to head(r 986246) . #

Total comments: 14

Patch Set 5 : Fixing comments #

Patch Set 6 : Made minor refactoring #

Total comments: 7

Patch Set 7 : Addressing the comments #

Patch Set 8 : Few more comment chnages to make it more readable. #

Patch Set 9 : Small change in comment. #

Total comments: 2

Patch Set 10 : Addressed the comment. #

Total comments: 10

Patch Set 11 : Addressing the comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -40 lines) Patch
java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java View 1 2 3 4 5 6 7 8 9 10 4 chunks +86 lines, -21 lines 0 comments Download
java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java View 1 2 3 4 5 6 7 8 chunks +134 lines, -19 lines 0 comments Download

Messages

Total messages: 30
satya3656
15 years, 5 months ago (2010-08-13 04:58:08 UTC) #1
anupama.dutta
Some very initial comments below. http://codereview.appspot.com/1997041/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/1/3#newcode148 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:148: elemConcat.setAttribute(type.getSrcAttrib(), concatUri.getUri().toString()); Please either ...
15 years, 5 months ago (2010-08-13 05:17:06 UTC) #2
Kuntal Loya
http://codereview.appspot.com/1997041/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/1/3#newcode148 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:148: elemConcat.setAttribute(type.getSrcAttrib(), concatUri.getUri().toString()); On 2010/08/13 05:17:07, anupama.dutta wrote: > Please ...
15 years, 5 months ago (2010-08-13 06:01:09 UTC) #3
satya3656
http://codereview.appspot.com/1997041/diff/1/3 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/1/3#newcode148 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:148: elemConcat.setAttribute(type.getSrcAttrib(), concatUri.getUri().toString()); Changed a url to have '&' in ...
15 years, 5 months ago (2010-08-13 08:55:24 UTC) #4
satya3656
Made the changes
15 years, 5 months ago (2010-08-13 08:56:01 UTC) #5
satya3656
Add one more small fix if there is a title attribute set.
15 years, 5 months ago (2010-08-16 12:39:28 UTC) #6
Kuntal Loya
Good fix. LGTM++ http://codereview.appspot.com/1997041/diff/16001/17001 File java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java (right): http://codereview.appspot.com/1997041/diff/16001/17001#newcode45 java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java:45: private static final String JS1_URL_STR = ...
15 years, 5 months ago (2010-08-17 08:28:59 UTC) #7
satya3656
Sync to head(r 986246) .
15 years, 5 months ago (2010-08-17 10:08:38 UTC) #8
satya3656
http://codereview.appspot.com/1997041/diff/16001/17001 File java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java (right): http://codereview.appspot.com/1997041/diff/16001/17001#newcode45 java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java:45: private static final String JS1_URL_STR = "http://one.com/foo.js"; On 2010/08/17 ...
15 years, 5 months ago (2010-08-17 10:08:47 UTC) #9
Kuntal Loya
LGTM
15 years, 5 months ago (2010-08-18 06:11:58 UTC) #10
Paul Lindner
does this handle the case where one link specifies the default media (screen) and the ...
15 years, 5 months ago (2010-08-18 19:23:43 UTC) #11
zhoresh
http://codereview.appspot.com/1997041/diff/27001/28002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (left): http://codereview.appspot.com/1997041/diff/27001/28002#oldcode147 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:147: elemConcat.setAttribute(type.getSrcAttrib(), concatUri.getUri().toString().replace("&", "&")); I think there was a discussion ...
15 years, 5 months ago (2010-08-18 20:33:22 UTC) #12
gagan.goku
http://codereview.appspot.com/1997041/diff/27001/28002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/27001/28002#newcode88 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:88: List<List<Element>> concatBatches = Lists.newLinkedList(); This function is pretty contrived. ...
15 years, 5 months ago (2010-08-19 13:52:34 UTC) #13
satya3656
Hi, Added more comments and changed few variables name to make the code more readable. ...
15 years, 5 months ago (2010-08-19 19:31:21 UTC) #14
zhoresh
lgtm, Thanks! Some minor comments, change and I will commit. http://codereview.appspot.com/1997041/diff/38001/32003 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/38001/32003#newcode110 ...
15 years, 4 months ago (2010-08-20 18:41:03 UTC) #15
gagan.goku
http://codereview.appspot.com/1997041/diff/38001/32003 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/38001/32003#newcode110 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:110: * <link href="7.css" rel="stylesheet" type="text/css" media="screen"> -- Node12 On ...
15 years, 4 months ago (2010-08-20 19:39:54 UTC) #16
satya3656
Addressing the comments
15 years, 4 months ago (2010-08-24 09:47:13 UTC) #17
satya3656
http://codereview.appspot.com/1997041/diff/38001/32003 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/38001/32003#newcode273 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:273: * Checks if the adjacent siblings can be put ...
15 years, 4 months ago (2010-08-24 09:50:13 UTC) #18
satya3656
Few more comment chnages to make it more readable.
15 years, 4 months ago (2010-08-24 11:51:34 UTC) #19
satya3656
Small change in comment.
15 years, 4 months ago (2010-08-24 11:55:39 UTC) #20
gagan.goku
LGTM. Very small nitpick: http://codereview.appspot.com/1997041/diff/51001/52002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/51001/52002#newcode102 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:102: * Example: Assume we have ...
15 years, 4 months ago (2010-08-24 12:13:08 UTC) #21
satya3656
Addressed the comment.
15 years, 4 months ago (2010-08-24 12:39:41 UTC) #22
satya3656
http://codereview.appspot.com/1997041/diff/51001/52002 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/51001/52002#newcode102 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:102: * Example: Assume we have the following node list. ...
15 years, 4 months ago (2010-08-24 12:40:25 UTC) #23
satya3656
Sma
15 years, 4 months ago (2010-08-24 12:41:52 UTC) #24
satya3656
Addressed the comment.
15 years, 4 months ago (2010-08-24 12:43:13 UTC) #25
Kuntal Loya
minor documentation comments - http://codereview.appspot.com/1997041/diff/59001/35003 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/59001/35003#newcode123 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:123: */ Good job with the ...
15 years, 4 months ago (2010-08-25 08:50:52 UTC) #26
satya3656
Done http://codereview.appspot.com/1997041/diff/59001/35003 File java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java (right): http://codereview.appspot.com/1997041/diff/59001/35003#newcode123 java/gadgets/src/main/java/org/apache/shindig/gadgets/rewrite/ConcatVisitor.java:123: */ On 2010/08/25 08:50:52, Kuntal Loya wrote: > ...
15 years, 4 months ago (2010-08-25 09:35:07 UTC) #27
satya3656
Addressing the comments
15 years, 4 months ago (2010-08-25 09:35:46 UTC) #28
zhoresh
lgtm, committed at r989253
15 years, 4 months ago (2010-08-25 17:48:24 UTC) #29
gagan.goku
15 years, 4 months ago (2010-08-27 15:43:45 UTC) #30
You should close this issue now that it has been submitted.
Sign in to reply to this message.

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