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

Issue 2253044: Update GadgetHandlerApi and improve error handling

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

Description

The change include improving error handling by the GadgetHandler and don't fail the all batch request if only one item fails. Support filtering of the rul (it is already the key in the reply so no need to put twice in result) Also Updated API: - Update error to include a message and an error code - Move url to specific request (js request will not have url) - Add duration to token requests (TODO actually use it...) - Add Expiration time and response time so cache in CC can be implemented correctly (TODO actually provide correct time) And to support the change it also update the CC JS code

Patch Set 1 #

Total comments: 18

Patch Set 2 : Update patch according to Mike comments #

Total comments: 1

Messages

Total messages: 6
zhoresh
15 years, 4 months ago (2010-09-24 02:17:19 UTC) #1
mhermanto
http://codereview.appspot.com/2253044/diff/1/features/src/main/javascript/features/container/service.js File features/src/main/javascript/features/container/service.js (right): http://codereview.appspot.com/2253044/diff/1/features/src/main/javascript/features/container/service.js#newcode143 features/src/main/javascript/features/container/service.js:143: var message = [ 'Server failure to fetch token ...
15 years, 4 months ago (2010-09-24 22:34:57 UTC) #2
zhoresh
Mike thanks for the review, reply below, new patch next. http://codereview.appspot.com/2253044/diff/1/features/src/main/javascript/features/container/service.js File features/src/main/javascript/features/container/service.js (right): http://codereview.appspot.com/2253044/diff/1/features/src/main/javascript/features/container/service.js#newcode143 ...
15 years, 4 months ago (2010-09-25 00:20:48 UTC) #3
zhoresh
Update patch according to Mike comments
15 years, 4 months ago (2010-09-25 00:21:21 UTC) #4
mhermanto
Fix that and LGTM++. http://codereview.appspot.com/2253044/diff/14001/features/src/main/javascript/features/container/service.js File features/src/main/javascript/features/container/service.js (right): http://codereview.appspot.com/2253044/diff/14001/features/src/main/javascript/features/container/service.js#newcode106 features/src/main/javascript/features/container/service.js:106: finalResponse[id] = { 'error' : ...
15 years, 4 months ago (2010-09-25 00:46:48 UTC) #5
zhoresh
15 years, 4 months ago (2010-09-25 01:00:26 UTC) #6
On 2010/09/25 00:46:48, mhermanto wrote:
> Fix that and LGTM++.
> 
>
http://codereview.appspot.com/2253044/diff/14001/features/src/main/javascript...
> File features/src/main/javascript/features/container/service.js (right):
> 
>
http://codereview.appspot.com/2253044/diff/14001/features/src/main/javascript...
> features/src/main/javascript/features/container/service.js:106:
> finalResponse[id] = { 'error' : error };
> You'll want response.error.

Good catch, thanks!

Fixed and committed as 1001115
Sign in to reply to this message.

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