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

Issue 6132056: Add Map support to RequestFactory

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by james.horsley
Modified:
12 years, 4 months ago
CC:
google-web-toolkit-contributors_googlegroups.com
Base URL:
http://google-web-toolkit.googlecode.com/svn/trunk/user/
Visibility:
Public.

Description

Add Map support to RequestFactory (Issue 5524) I tested it with a simple requestfactory web app in the same eclipse workspace.

Patch Set 1 : Add Map support to RequestFactory #

Total comments: 16

Patch Set 2 : Incorporated review feedback from t.broyer #

Patch Set 3 : Fixed handling of nested entities in the map #

Unified diffs Side-by-side diffs Delta from patch set Stats (+911 lines, -60 lines) Patch
M src/com/google/web/bindery/requestfactory/apt/ClientToDomainMapper.java View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M src/com/google/web/bindery/requestfactory/server/Resolver.java View 1 2 12 chunks +97 lines, -11 lines 0 comments Download
M src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java View 1 2 2 chunks +22 lines, -9 lines 0 comments Download
M src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java View 1 2 5 chunks +19 lines, -9 lines 0 comments Download
M src/com/google/web/bindery/requestfactory/shared/impl/EntityCodex.java View 1 2 4 chunks +103 lines, -0 lines 0 comments Download
M src/com/google/web/bindery/requestfactory/shared/impl/ProxySerializerImpl.java View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
M test/com/google/web/bindery/requestfactory/gwt/client/FindServiceTest.java View 1 2 6 chunks +131 lines, -6 lines 0 comments Download
M test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java View 1 2 13 chunks +33 lines, -18 lines 0 comments Download
A test/com/google/web/bindery/requestfactory/server/MapKey.java View 1 2 1 chunk +131 lines, -0 lines 0 comments Download
A test/com/google/web/bindery/requestfactory/server/MapValue.java View 1 2 1 chunk +131 lines, -0 lines 0 comments Download
M test/com/google/web/bindery/requestfactory/server/SimpleFoo.java View 1 2 10 chunks +58 lines, -7 lines 0 comments Download
M test/com/google/web/bindery/requestfactory/shared/BaseFooProxy.java View 1 2 3 chunks +18 lines, -0 lines 0 comments Download
A test/com/google/web/bindery/requestfactory/shared/MapKeyProxy.java View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A test/com/google/web/bindery/requestfactory/shared/MapKeyRequest.java View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A test/com/google/web/bindery/requestfactory/shared/MapValueProxy.java View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A test/com/google/web/bindery/requestfactory/shared/MapValueRequest.java View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M test/com/google/web/bindery/requestfactory/shared/SimpleBarProxy.java View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M test/com/google/web/bindery/requestfactory/shared/SimpleRequestFactory.java View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 30
james.horsley
Thomas, I put you as the reviewer as I believe bobv, whose name was on ...
13 years, 7 months ago (2012-05-01 22:54:26 UTC) #1
t.broyer
Adding Rajeev as a reviewer. http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java File src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java (right): http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java#newcode86 src/com/google/web/bindery/requestfactory/apt/TransportableTypeVisitor.java:86: DeclaredType asCollection = Rename ...
13 years, 7 months ago (2012-05-02 13:59:05 UTC) #2
james.horsley
Will follow shortly with a patch taking into account the following feedback but wanted to ...
13 years, 7 months ago (2012-05-02 21:12:20 UTC) #3
t.broyer
http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java File src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java (right): http://codereview.appspot.com/6132056/diff/5012/src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java#newcode523 src/com/google/web/bindery/requestfactory/server/SimpleRequestProcessor.java:523: if (ctx instanceof MapPropertyContext && ((MapPropertyContext)ctx).getKeyType() != null) { ...
13 years, 7 months ago (2012-05-03 00:10:56 UTC) #4
james.horsley
The latest patch should incorporate all relevant feedback. Including adding suggested tests and fixing where ...
13 years, 7 months ago (2012-05-03 23:13:16 UTC) #5
james.horsley
The instructions at https://developers.google.com/web-toolkit/makinggwtbetter#submittingpatches say to add this patch to the issue (http://code.google.com/p/google-web-toolkit/issues/detail?id=5524) but I ...
13 years, 7 months ago (2012-05-07 20:28:44 UTC) #6
james.horsley
Rajeev, did you get a chance to look the patch over? I have no clue ...
13 years, 7 months ago (2012-05-10 20:15:15 UTC) #7
rdayal
Hey James, Sorry, I have not had a chance to look this one over, but ...
13 years, 7 months ago (2012-05-14 17:04:47 UTC) #8
james.horsley
Thanks for the update Rajeev. Look forward to hearing back on the patch. Cheers, James ...
13 years, 7 months ago (2012-05-15 22:19:51 UTC) #9
alexisnouvel
Hello With your patch, does the function .with() works for a map for example in ...
13 years, 7 months ago (2012-05-25 16:01:32 UTC) #10
james.horsley
I added tests for complex keys and complex values which're passing so it should do ...
13 years, 7 months ago (2012-05-25 17:09:32 UTC) #11
t.broyer
On 2012/05/25 17:09:32, james.horsley wrote: > I added tests for complex keys and complex values ...
13 years, 7 months ago (2012-05-25 18:38:45 UTC) #12
james.horsley
I read Alexis's email too hastily and hadn't noted he was asking about nested complex ...
13 years, 7 months ago (2012-05-25 19:06:50 UTC) #13
t.broyer
AutoBean has no equivalent to these "partial loading"; just like a POJO has no notion ...
13 years, 7 months ago (2012-05-25 21:06:27 UTC) #14
james.horsley
I finally managed to get time to look at this. I added tests to answer ...
13 years, 6 months ago (2012-06-04 12:08:34 UTC) #15
james.horsley
Adding the ".keys." and ".values." disambiguation was much much simpler than I'd thought thanks to ...
13 years, 6 months ago (2012-06-04 12:19:00 UTC) #16
james.horsley
Based on the email thread with Alexis and Thomas I've fixed the handling of nested ...
13 years, 6 months ago (2012-06-05 10:50:18 UTC) #17
james.horsley
Rajeev, get a chance to look at this yet? On 2012/06/05 10:50:18, james.horsley wrote: > ...
13 years, 6 months ago (2012-06-07 08:20:34 UTC) #18
t.broyer
On 2012/06/07 08:20:34, james.horsley wrote: > Rajeev, get a chance to look at this yet? ...
13 years, 6 months ago (2012-06-07 09:04:23 UTC) #19
james.horsley
Thanks for all your help with the patch Thomas. Sad to hear it won't make ...
13 years, 6 months ago (2012-06-07 09:22:24 UTC) #20
james.horsley
Thomas, I've created http://gwt-code-reviews.appspot.com/1735803/ as you requested. Everything look okay with how I set the ...
13 years, 6 months ago (2012-06-07 09:55:00 UTC) #21
t.broyer
On 2012/06/07 09:22:24, james.horsley wrote: > Thanks for all your help with the patch Thomas. ...
13 years, 6 months ago (2012-06-07 09:56:52 UTC) #22
james.horsley
Totally agree on this needing another round. Also, hearing about the plans for a 2.5.1 ...
13 years, 6 months ago (2012-06-07 10:23:58 UTC) #23
rdayal
Thomas, thanks for jumping in. James, as Thomas said, we'll defer this to 2.5.1, but ...
13 years, 6 months ago (2012-06-07 15:18:26 UTC) #24
james.horsley
Thanks Rajeev. Let me know if there's anything else you need with it. On 7 ...
13 years, 6 months ago (2012-06-07 15:57:17 UTC) #25
james.horsley
Just to check, was everything okay with the CLA I signed? On 7 June 2012 ...
13 years, 6 months ago (2012-06-08 09:16:26 UTC) #26
rdayal
Yep, you're on the CLA list. On Fri Jun 08 05:15:45 GMT-400 2012, James Horsley ...
13 years, 6 months ago (2012-06-08 17:20:06 UTC) #27
james.horsley
On 2012/06/08 17:20:06, rdayal wrote: > Yep, you're on the CLA list. > > On ...
13 years, 1 month ago (2012-10-30 08:28:07 UTC) #28
mfetzer
On 2012/10/30 08:28:07, james.horsley wrote: > On 2012/06/08 17:20:06, rdayal wrote: > > Yep, you're ...
12 years, 4 months ago (2013-07-29 15:27:33 UTC) #29
james.horsley
12 years, 4 months ago (2013-07-29 16:09:04 UTC) #30
I ported the CR to gerrit a couple of months back
https://gwt-review.googlesource.com/#/c/3186/

Last update I got was that it's pending further review by Thomas Broyer
who's currently tied up with modularization and mavenization. I'm seeing
other RF changes going on though so hopefully it won't require too much
reworking of my original commit.

<rant>
I totally understand there are limited resources for reviewing this stuff
but it would be quite frustrating if many changes were necessary to my
patch due to underlying changes. I submitted the patch over a year ago and
it's the 6th highest starred issue on the issue tracker from what I can
tell.
</rant>


On 29 July 2013 16:27, <mfetzer@tchepa.com> wrote:

> On 2012/10/30 08:28:07, james.horsley wrote:
>
>> On 2012/06/08 17:20:06, rdayal wrote:
>> > Yep, you're on the CLA list.
>> >
>> > On Fri Jun 08 05:15:45 GMT-400 2012, James Horsley
>> <mailto:james.horsley@gmail.**com <james.horsley@gmail.com>>
>> > wrote:
>> >
>> > > Just to check, was everything okay with the CLA I signed?
>> > >
>> > > On 7 June 2012 16:56, James Horsley
>>
> <mailto:james.horsley@gmail.**com <james.horsley@gmail.com>> wrote:
>
>> > >
>> > > Thanks Rajeev. Let me know if there's anything else you need with
>>
> it.
>
>> > >
>> > >
>> > > On 7 June 2012 16:18, Rajeev Dayal <mailto:rdayal@google.com>
>>
> wrote:
>
>> > >
>> > > Thomas, thanks for jumping in.
>> > >
>> > > James, as Thomas said, we'll defer this to 2.5.1, but we'd
>>
> definitely like
>
>> > > to get it in there, as it's an important patch. We just didn't
>>
> want to
>
>> > > force this patch in 2.5.0, which is what we would have to do with
>>
> the
>
>> > > current workload.
>> > >
>> > > Thanks so much for working on this.
>> > >
>> > >
>> > > On Thu Jun 07 06:23:58 GMT-400 2012,
>>
> <mailto:james.horsley@gmail.**com <james.horsley@gmail.com>> wrote:
>
>> > >
>> > > Totally agree on this needing another round. Also, hearing about
>>
> the
>
>> > > plans for a 2.5.1 release which this could potentially be a
>>
> candidate
>
>> > > for is great.
>> > >
>> > > Thanks again.
>> > >
>> > > On 2012/06/07 09:56:52, t.broyer wrote:
>> > > > On 2012/06/07 09:22:24, james.horsley wrote:
>> > > > > Thanks for all your help with the patch Thomas. Sad to hear it
>>
> won't
>
>> > > make it
>> > > > > into GWT 2.5 as we were really looking to use RF with Maps
>>
> without
>
>> > > having to
>> > > > use
>> > > > > a patched version of GWT built from source internally.
>> > >
>> > > > We're planning a 2.5.1 soon after 2.5.
>> > > > There are also several issues with Map support in AutoBeans
>>
> (reported
>
>> > > only
>> > > > recently) which I'd like to get fixed at the same time (some of
>>
> them
>
>> > > are related
>> > > > to how maps are encoded/decoded, so I'd like to have it the same
>>
> in
>
>> > > both
>> > > > AutoBeans and RF; see
>> > > >
>>
>
http://code.google.com/p/**google-web-toolkit/issues/**detail?id=7395<http://...
>
>> > > instance,
>> > > > which you seem to have avoided by using a slightly different
>> > > serialization path
>> > > > for keys, where String keys are encoded as "\"foo\"", vs. "foo"
>>
> in
>
>> > > AutoBean's
>> > > > serialization).
>> > > > Finally, to be honest, I think we need at least one more round
>>
> here: I
>
>> > > need some
>> > > > more time to wrap my head around it.
>> > >
>> > >
>> > >
>> > >
>> >
>>
>
> http://codereview.appspot.com/**6132056/%253Chttps://www.**
>
google.com/url?sa=D&q=http://**codereview.appspot.com/**6132056/<http://codereview.appspot.com/6132056/%253Chttps://www.google.com/url?sa=D&q=http://codereview.appspot.com/6132056/>
> >
>
>> > >
>> > >
>> > >
>> > >
>>
>
>  I'm possibly being a bit eager given 2.5 GA only just went out but
>>
> thought I'd
>
>> just ping on this with regards to the 2.5.1 release that had been
>>
> mentioned.
>
> Anything new on this?
>
>
https://codereview.appspot.**com/6132056/<https://codereview.appspot.com/6132...
>
Sign in to reply to this message.

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