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

Issue 880801: Simplifies the RequestObject api: (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
2 years, 8 months ago by rjrjr
Modified:
2 years, 5 months ago
Reviewers:
amitmanjhi
CC:
google-web-toolkit-contributors_googlegroups.com
Base URL:
http://google-web-toolkit.googlecode.com/svn/
Visibility:
Public.

Description

Simplifies the RequestObject api:
* No more clearUsed(). Requests are always usable
* No more reset(), it was basically unused, and untested
* RequestData move to an impl package

Also fixes violation reporting in AbstractProxyEditActivity,
and simplifies its last remaining echo of future ids

Patch Set 1

Patch Set 2 : don't fall apart on server error

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java View 1 5 chunks +20 lines, -26 lines 4 comments Download
M user/src/com/google/gwt/requestfactory/client/impl/AbstractRequest.java View 4 chunks +3 lines, -9 lines 0 comments Download
M user/src/com/google/gwt/requestfactory/client/impl/DeltaValueStoreJsonImpl.java View 5 chunks +2 lines, -14 lines 0 comments Download
M user/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java View 1 4 chunks +50 lines, -47 lines 0 comments Download
M user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java View 1 chunk +1 line, -1 line 0 comments Download
M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java View 1 chunk +1 line, -1 line 0 comments Download
M user/src/com/google/gwt/requestfactory/server/SampleDataPopulator.java View 1 chunk +1 line, -1 line 0 comments Download
D user/src/com/google/gwt/requestfactory/shared/RequestData.java View 1 chunk +0 lines, -90 lines 0 comments Download
M user/src/com/google/gwt/requestfactory/shared/RequestObject.java View 3 chunks +7 lines, -13 lines 0 comments Download
A user/src/com/google/gwt/requestfactory/shared/impl/RequestData.java View 1 chunk +88 lines, -0 lines 0 comments Download
M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java View 25 chunks +32 lines, -0 lines 0 comments Download
M user/test/com/google/gwt/requestfactory/client/impl/DeltaValueStoreJsonImplTest.java View 5 chunks +17 lines, -27 lines 0 comments Download
M user/test/com/google/gwt/requestfactory/server/JsonRequestProcessorTest.java View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
rjrjr
2 years, 8 months ago #1
rjrjr
2 years, 8 months ago #2
amitmanjhi
The patch is missing a test that we discussed -- the test posts a sequence ...
2 years, 8 months ago #3
rjrjr
Fair enough re: the test. http://gwt-code-reviews.appspot.com/880801/diff/3001/4001 File user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java (left): http://gwt-code-reviews.appspot.com/880801/diff/3001/4001#oldcode149 user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java:149: } Because we can ...
2 years, 8 months ago #4
rjrjr
2 years, 8 months ago #5
Test added, submitted r8799

On 2010/09/15 17:25:21, rjrjr wrote:
> Fair enough re: the test.
> 
> http://gwt-code-reviews.appspot.com/880801/diff/3001/4001
> File user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java (left):
> 
> http://gwt-code-reviews.appspot.com/880801/diff/3001/4001#oldcode149
> user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java:149: }
> Because we can receive no errors that are not related to our request, and
> because stableId is only set for creates.
> 
> On 2010/09/15 08:15:53, amitmanjhi wrote:
> > Why was this conditional removed?
> 
> http://gwt-code-reviews.appspot.com/880801/diff/3001/4001#oldcode156
> user/src/com/google/gwt/app/place/AbstractProxyEditActivity.java:156:
> toCommit.fire(receiver);
> On 2010/09/15 08:15:53, amitmanjhi wrote:
> > where is the fire call now?
> 
> Line 114. The receiver variable was inlined, it served no purpose.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld revision f51cb906c4ad+