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

Issue 308860044: Add group push info (text only) to logs and dashboard (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 9 months ago by myk
Modified:
7 years, 8 months ago
Reviewers:
sfruhwald, pjo
CC:
connector-cr_google.com
Visibility:
Public.

Description

Add group push info (text only) to logs and dashboard

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed Szabi's concerns from Patch Set 1 #

Total comments: 18

Patch Set 3 : Addressed PJ's comments on Patch Set 2 #

Total comments: 2

Patch Set 4 : Addressed Szabi's comment on Patch Set 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -3 lines) Patch
M resources/com/google/enterprise/adaptor/resources/dashboard.js View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M resources/com/google/enterprise/adaptor/resources/index.html View 1 chunk +12 lines, -0 lines 0 comments Download
M src/com/google/enterprise/adaptor/DocIdSender.java View 1 2 4 chunks +28 lines, -3 lines 0 comments Download
M src/com/google/enterprise/adaptor/Journal.java View 1 2 3 8 chunks +100 lines, -0 lines 0 comments Download
M src/com/google/enterprise/adaptor/StatRpcMethod.java View 2 chunks +9 lines, -0 lines 0 comments Download
M test/com/google/enterprise/adaptor/JournalTest.java View 1 5 chunks +87 lines, -0 lines 0 comments Download
M test/com/google/enterprise/adaptor/StatRpcMethodTest.java View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11
myk
7 years, 9 months ago (2016-07-30 02:47:43 UTC) #1
myk
Friendly reminder - thank you. On 2016/07/30 02:47:43, myk wrote:
7 years, 8 months ago (2016-08-04 00:11:04 UTC) #2
sfruhwald
Thank you, just a few slight comments from my side. LGTM otherwise. https://codereview.appspot.com/308860044/diff/1/resources/com/google/enterprise/adaptor/resources/dashboard.js File resources/com/google/enterprise/adaptor/resources/dashboard.js ...
7 years, 8 months ago (2016-08-04 01:07:29 UTC) #3
myk
Tried to explain "Boolean" in the dashboard.js; made all changes suggested by Szabi. https://codereview.appspot.com/308860044/diff/1/resources/com/google/enterprise/adaptor/resources/dashboard.js File ...
7 years, 8 months ago (2016-08-04 18:02:51 UTC) #4
sfruhwald
LGTM
7 years, 8 months ago (2016-08-04 18:13:21 UTC) #5
pjo
THank you. https://codereview.appspot.com/308860044/diff/20001/resources/com/google/enterprise/adaptor/resources/dashboard.js File resources/com/google/enterprise/adaptor/resources/dashboard.js (right): https://codereview.appspot.com/308860044/diff/20001/resources/com/google/enterprise/adaptor/resources/dashboard.js#newcode174 resources/com/google/enterprise/adaptor/resources/dashboard.js:174: data.simpleStats.lastSuccessfulGroupPushStart); Does successfulGroupPushStart imply an entire push ...
7 years, 8 months ago (2016-08-04 20:45:50 UTC) #6
myk
Answered questions / made all requested changes. https://codereview.appspot.com/308860044/diff/20001/resources/com/google/enterprise/adaptor/resources/dashboard.js File resources/com/google/enterprise/adaptor/resources/dashboard.js (right): https://codereview.appspot.com/308860044/diff/20001/resources/com/google/enterprise/adaptor/resources/dashboard.js#newcode174 resources/com/google/enterprise/adaptor/resources/dashboard.js:174: data.simpleStats.lastSuccessfulGroupPushStart); On ...
7 years, 8 months ago (2016-08-04 22:45:38 UTC) #7
sfruhwald
https://codereview.appspot.com/308860044/diff/40001/src/com/google/enterprise/adaptor/Journal.java File src/com/google/enterprise/adaptor/Journal.java (right): https://codereview.appspot.com/308860044/diff/40001/src/com/google/enterprise/adaptor/Journal.java#newcode500 src/com/google/enterprise/adaptor/Journal.java:500: synchronized (journal) { Maybe it would be more elegant ...
7 years, 8 months ago (2016-08-05 00:07:55 UTC) #8
myk
PTAL (both of you). Reverting the change to add "synchronized" around the JournalSnapshot constructor (with ...
7 years, 8 months ago (2016-08-05 17:29:13 UTC) #9
sfruhwald
On 2016/08/05 17:29:13, myk wrote: > PTAL (both of you). Reverting the change to add ...
7 years, 8 months ago (2016-08-05 17:51:11 UTC) #10
pjo
7 years, 8 months ago (2016-08-08 23:45:14 UTC) #11
LGTM

-
- technology's compounding interest

On Fri, Aug 5, 2016 at 10:51 AM, <sfruhwald@google.com> wrote:

> On 2016/08/05 17:29:13, myk wrote:
>
>> PTAL (both of you).  Reverting the change to add "synchronized" around
>>
> the
>
>> JournalSnapshot constructor (with explanation below).
>>
>
>
> https://codereview.appspot.com/308860044/diff/40001/src/com/
> google/enterprise/adaptor/Journal.java
>
>> File src/com/google/enterprise/adaptor/Journal.java (right):
>>
>
>
> https://codereview.appspot.com/308860044/diff/40001/src/com/
> google/enterprise/adaptor/Journal.java#newcode500
>
>> src/com/google/enterprise/adaptor/Journal.java:500: synchronized
>>
> (journal) {
>
>> On 2016/08/05 00:07:55, sfruhwald wrote:
>> > Maybe it would be more elegant to just make this constructor private
>>
> and
>
>> having
>> > a synchronized createSnapshot method on Journal that returns with a
>>
> Snapshot
>
>> > instance?
>>
>
> I took a closer look after your comment, and it turns out that the
>>
> constructor
>
>> is only called from two places: from Journal.getSnapshot() -- which is
>>
> already
>
>> synchronized, so the most recent change of wrapping the whole method
>>
> with
>
>> "synchronized" doesn't achieve anything -- and from
>>
> StatRpcMethodTest.java
>
>> (where it's called from SnapshotMockJournal -- and there's only a
>>
> single
>
>> instance of that class used in the tests, so that use doesn't need the
>> "synchronized" either).  I'm reverting the "synchronized (journal) {
>>
> ... }"
>
>> wrapper, and adding @VisibleForTesting (as I would have made it
>>
> private were it
>
>> not used in StatRpcMethodTest.class.
>>
>
> Voila - the constructor is once again "elegant."
>>
>
> That's perfect, thank you! LGTM again.
>
> https://codereview.appspot.com/308860044/
>
Sign in to reply to this message.

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