Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Issue 2641583002: [Cuprit-finder] Add MetaDict class. (Closed)

Created:
3 years, 11 months ago by Sharu Jiang
Modified:
3 years, 11 months ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org, wrengr, inferno
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Cuprit-finder] Add MetaDict class. MetaDict class is the base class that MetaWeight and MetaFeature will inherit. A simple example is {'a': e(1), 'b': {'c': e(2), 'd': e(3)}}, ``MetaDictSerializer`` can serialize it to [e(1), e(2), e(3)] and de-serialize it back to {'a': e(1), 'b': {'c': e(2), 'd': e(3)}} BUG=679097 TBR=wrengr@chromium.org Review-Url: https://codereview.chromium.org/2641583002 Committed: https://chromium.googlesource.com/infra/infra/+/0ad9be3160f568da7c068d4e569e2f999f7cad75

Patch Set 1 : . #

Total comments: 17

Patch Set 2 : Fix nits. #

Total comments: 6

Patch Set 3 : Fix nits. #

Total comments: 2

Patch Set 4 : Address comment. #

Total comments: 5

Patch Set 5 : Add module docs. #

Patch Set 6 : Update doc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -0 lines) Patch
A appengine/findit/libs/meta_dict_serializer.py View 1 2 3 4 1 chunk +185 lines, -0 lines 0 comments Download
A appengine/findit/libs/meta_object.py View 1 2 3 4 5 1 chunk +89 lines, -0 lines 0 comments Download
A appengine/findit/libs/test/meta_dict_serializer_test.py View 1 2 1 chunk +106 lines, -0 lines 0 comments Download
A appengine/findit/libs/test/meta_object_test.py View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (13 generated)
Sharu Jiang
PTAL :)
3 years, 11 months ago (2017-01-17 22:13:23 UTC) #3
Sharu Jiang
PTAL.
3 years, 11 months ago (2017-01-18 19:55:06 UTC) #8
Martin Barbella
At a glance this seems a bit more complicated than it has to be. Is ...
3 years, 11 months ago (2017-01-18 20:08:03 UTC) #9
chanli
https://codereview.chromium.org/2641583002/diff/20001/appengine/findit/libs/meta_dict_serializer.py File appengine/findit/libs/meta_dict_serializer.py (right): https://codereview.chromium.org/2641583002/diff/20001/appengine/findit/libs/meta_dict_serializer.py#newcode113 appengine/findit/libs/meta_dict_serializer.py:113: # Trucate the segment in the element list to ...
3 years, 11 months ago (2017-01-18 22:14:24 UTC) #10
Sharu Jiang
On 2017/01/18 20:08:03, Martin Barbella wrote: > At a glance this seems a bit more ...
3 years, 11 months ago (2017-01-18 23:28:35 UTC) #11
Sharu Jiang
On 2017/01/18 20:08:03, Martin Barbella wrote: > At a glance this seems a bit more ...
3 years, 11 months ago (2017-01-19 00:00:14 UTC) #12
Sharu Jiang
https://codereview.chromium.org/2641583002/diff/20001/appengine/findit/libs/meta_dict_serializer.py File appengine/findit/libs/meta_dict_serializer.py (right): https://codereview.chromium.org/2641583002/diff/20001/appengine/findit/libs/meta_dict_serializer.py#newcode113 appengine/findit/libs/meta_dict_serializer.py:113: # Trucate the segment in the element list to ...
3 years, 11 months ago (2017-01-19 00:00:53 UTC) #13
chanli
https://codereview.chromium.org/2641583002/diff/20001/appengine/findit/libs/meta_dict_serializer.py File appengine/findit/libs/meta_dict_serializer.py (right): https://codereview.chromium.org/2641583002/diff/20001/appengine/findit/libs/meta_dict_serializer.py#newcode117 appengine/findit/libs/meta_dict_serializer.py:117: meta_objs[key] = serializer.FromList(segment, element_constructor) On 2017/01/19 00:00:52, Sharu Jiang ...
3 years, 11 months ago (2017-01-19 02:10:58 UTC) #14
lijeffrey
https://codereview.chromium.org/2641583002/diff/40001/appengine/findit/libs/test/meta_dict_serializer_test.py File appengine/findit/libs/test/meta_dict_serializer_test.py (right): https://codereview.chromium.org/2641583002/diff/40001/appengine/findit/libs/test/meta_dict_serializer_test.py#newcode59 appengine/findit/libs/test/meta_dict_serializer_test.py:59: if meta_object != other[key]: is key guaranteed to be ...
3 years, 11 months ago (2017-01-19 20:07:15 UTC) #15
Sharu Jiang
https://codereview.chromium.org/2641583002/diff/40001/appengine/findit/libs/meta_dict_serializer.py File appengine/findit/libs/meta_dict_serializer.py (right): https://codereview.chromium.org/2641583002/diff/40001/appengine/findit/libs/meta_dict_serializer.py#newcode92 appengine/findit/libs/meta_dict_serializer.py:92: element_constructor=None): On 2017/01/19 02:10:58, chanli wrote: > Nit: The ...
3 years, 11 months ago (2017-01-19 21:00:46 UTC) #16
chanli
https://codereview.chromium.org/2641583002/diff/60001/appengine/findit/libs/meta_object.py File appengine/findit/libs/meta_object.py (right): https://codereview.chromium.org/2641583002/diff/60001/appengine/findit/libs/meta_object.py#newcode30 appengine/findit/libs/meta_object.py:30: self._value = value So what I meant in meta_object_test.py ...
3 years, 11 months ago (2017-01-22 00:07:20 UTC) #18
Sharu Jiang
https://codereview.chromium.org/2641583002/diff/60001/appengine/findit/libs/meta_object.py File appengine/findit/libs/meta_object.py (right): https://codereview.chromium.org/2641583002/diff/60001/appengine/findit/libs/meta_object.py#newcode30 appengine/findit/libs/meta_object.py:30: self._value = value On 2017/01/22 00:07:20, chanli wrote: > ...
3 years, 11 months ago (2017-01-23 20:45:40 UTC) #19
chanli
lgtm
3 years, 11 months ago (2017-01-23 21:33:18 UTC) #20
Martin Barbella
https://codereview.chromium.org/2641583002/diff/80001/appengine/findit/libs/meta_dict_serializer.py File appengine/findit/libs/meta_dict_serializer.py (right): https://codereview.chromium.org/2641583002/diff/80001/appengine/findit/libs/meta_dict_serializer.py#newcode11 appengine/findit/libs/meta_dict_serializer.py:11: class ElementSerializer(Element): To leave some more specific feedback building ...
3 years, 11 months ago (2017-01-23 22:21:16 UTC) #21
Martin Barbella
lgtm https://codereview.chromium.org/2641583002/diff/80001/appengine/findit/libs/meta_dict_serializer.py File appengine/findit/libs/meta_dict_serializer.py (right): https://codereview.chromium.org/2641583002/diff/80001/appengine/findit/libs/meta_dict_serializer.py#newcode11 appengine/findit/libs/meta_dict_serializer.py:11: class ElementSerializer(Element): On 2017/01/23 22:21:16, Martin Barbella wrote: ...
3 years, 11 months ago (2017-01-23 23:30:11 UTC) #23
Sharu Jiang
https://codereview.chromium.org/2641583002/diff/80001/appengine/findit/libs/meta_dict_serializer.py File appengine/findit/libs/meta_dict_serializer.py (right): https://codereview.chromium.org/2641583002/diff/80001/appengine/findit/libs/meta_dict_serializer.py#newcode11 appengine/findit/libs/meta_dict_serializer.py:11: class ElementSerializer(Element): On 2017/01/23 23:30:11, Martin Barbella wrote: > ...
3 years, 11 months ago (2017-01-24 00:55:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641583002/140001
3 years, 11 months ago (2017-01-24 01:18:27 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 01:28:28 UTC) #31
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://chromium.googlesource.com/infra/infra/+/0ad9be3160f568da7c068d4e569e2...

Powered by Google App Engine
This is Rietveld 408576698