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

Issue 302240043: UI Metadata Implementation

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 9 months ago by michelzel
Modified:
7 years, 8 months ago
Reviewers:
yarbrough, thobrla
CC:
gsutil-crs_google.com
Visibility:
Public.

Description

UI Metadata Implementation

Patch Set 1 #

Total comments: 30

Patch Set 2 : CR feedback round 1 thobrla #

Total comments: 20

Patch Set 3 : CR feedback round 2 thobrla #

Total comments: 2

Patch Set 4 : CR feedback round 3 thobrla #

Total comments: 16

Patch Set 5 : CR feedback round 4 thobrla + metadata tests #

Total comments: 8

Patch Set 6 : CR feedback round 5 thobrla #

Total comments: 15

Patch Set 7 : CR feedback round 6 thobrla + round 1 yarbrough #

Total comments: 2

Patch Set 8 : CR feedback round 7 thobrla #

Patch Set 9 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+978 lines, -326 lines) Patch
M gslib/command.py View 1 2 3 6 7 8 6 chunks +20 lines, -22 lines 0 comments Download
M gslib/commands/rm.py View 6 7 8 3 chunks +6 lines, -1 line 0 comments Download
M gslib/commands/setmeta.py View 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
M gslib/tests/test_cp.py View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M gslib/tests/test_rm.py View 1 6 7 8 2 chunks +32 lines, -1 line 0 comments Download
M gslib/tests/test_ui.py View 1 2 3 4 5 6 7 8 24 chunks +282 lines, -71 lines 2 comments Download
M gslib/tests/test_util.py View 1 6 7 8 1 chunk +12 lines, -5 lines 0 comments Download
M gslib/thread_message.py View 1 2 3 4 6 7 8 1 chunk +13 lines, -0 lines 2 comments Download
M gslib/ui_controller.py View 1 2 3 4 5 6 7 8 13 chunks +595 lines, -210 lines 0 comments Download
M gslib/util.py View 1 6 7 8 2 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 21
michelzel
UI Metadata Implementation
7 years, 9 months ago (2016-07-22 23:25:09 UTC) #1
thobrla
More review comments to come later. https://codereview.appspot.com/302240043/diff/1/gslib/command.py File gslib/command.py (right): https://codereview.appspot.com/302240043/diff/1/gslib/command.py#newcode1829 gslib/command.py:1829: try: # NameExpansionResult ...
7 years, 9 months ago (2016-07-22 23:54:30 UTC) #2
michelzel
https://codereview.appspot.com/302240043/diff/1/gslib/command.py File gslib/command.py (right): https://codereview.appspot.com/302240043/diff/1/gslib/command.py#newcode1829 gslib/command.py:1829: try: # NameExpansionResult with size field on data commands. ...
7 years, 9 months ago (2016-07-23 00:29:59 UTC) #3
thobrla
https://codereview.appspot.com/302240043/diff/1/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/1/gslib/ui_controller.py#newcode73 gslib/ui_controller.py:73: class MetadataManager(object): There seems to be a lot of ...
7 years, 9 months ago (2016-07-25 16:53:45 UTC) #4
michelzel
https://codereview.appspot.com/302240043/diff/1/gslib/command.py File gslib/command.py (right): https://codereview.appspot.com/302240043/diff/1/gslib/command.py#newcode1829 gslib/command.py:1829: try: # NameExpansionResult with size field on data commands. ...
7 years, 9 months ago (2016-07-25 21:16:45 UTC) #5
thobrla
https://codereview.appspot.com/302240043/diff/1/gslib/command.py File gslib/command.py (right): https://codereview.appspot.com/302240043/diff/1/gslib/command.py#newcode1829 gslib/command.py:1829: try: # NameExpansionResult with size field on data commands. ...
7 years, 8 months ago (2016-07-25 22:16:51 UTC) #6
michelzel
https://codereview.appspot.com/302240043/diff/40001/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/40001/gslib/ui_controller.py#newcode73 gslib/ui_controller.py:73: class Manager(object): On 2016/07/25 22:16:50, thobrla wrote: > Can ...
7 years, 8 months ago (2016-07-25 23:36:05 UTC) #7
thobrla
There are still some unaddressed comments, particularly around the ordering of instantiation of managers. https://codereview.appspot.com/302240043/diff/60001/gslib/ui_controller.py ...
7 years, 8 months ago (2016-07-25 23:46:49 UTC) #8
michelzel
Besides those comments, I also realized that we might need two sources on DataManagers: one ...
7 years, 8 months ago (2016-07-26 07:42:46 UTC) #9
thobrla
https://codereview.appspot.com/302240043/diff/1/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/1/gslib/ui_controller.py#newcode897 gslib/ui_controller.py:897: # Should not process a MetadataMessage with a DataManager ...
7 years, 8 months ago (2016-07-26 16:54:08 UTC) #10
michelzel
https://codereview.appspot.com/302240043/diff/1/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/1/gslib/ui_controller.py#newcode897 gslib/ui_controller.py:897: # Should not process a MetadataMessage with a DataManager ...
7 years, 8 months ago (2016-07-26 19:14:29 UTC) #11
thobrla
https://codereview.appspot.com/302240043/diff/80001/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/80001/gslib/ui_controller.py#newcode354 gslib/ui_controller.py:354: string_to_print = (char_to_print + objects_completed + On 2016/07/26 19:14:29, ...
7 years, 8 months ago (2016-07-26 19:47:42 UTC) #12
michelzel
https://codereview.appspot.com/302240043/diff/80001/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/80001/gslib/ui_controller.py#newcode354 gslib/ui_controller.py:354: string_to_print = (char_to_print + objects_completed + On 2016/07/26 19:47:41, ...
7 years, 8 months ago (2016-07-27 07:18:21 UTC) #13
yarbrough
https://codereview.appspot.com/302240043/diff/180001/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/180001/gslib/ui_controller.py#newcode74 gslib/ui_controller.py:74: """Adjusts proper width for UI output. Based on this ...
7 years, 8 months ago (2016-07-27 16:09:35 UTC) #14
thobrla
https://codereview.appspot.com/302240043/diff/180001/gslib/tests/test_ui.py File gslib/tests/test_ui.py (right): https://codereview.appspot.com/302240043/diff/180001/gslib/tests/test_ui.py#newcode1033 gslib/tests/test_ui.py:1033: Unit tests for AdjustWidth? https://codereview.appspot.com/302240043/diff/180001/gslib/tests/test_ui.py#newcode1074 gslib/tests/test_ui.py:1074: # We should ...
7 years, 8 months ago (2016-07-27 17:21:34 UTC) #15
michelzel
https://codereview.appspot.com/302240043/diff/180001/gslib/tests/test_ui.py File gslib/tests/test_ui.py (right): https://codereview.appspot.com/302240043/diff/180001/gslib/tests/test_ui.py#newcode1033 gslib/tests/test_ui.py:1033: On 2016/07/27 17:21:34, thobrla wrote: > Unit tests for ...
7 years, 8 months ago (2016-07-27 20:17:07 UTC) #16
thobrla
https://codereview.appspot.com/302240043/diff/220001/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/220001/gslib/ui_controller.py#newcode396 gslib/ui_controller.py:396: if (isinstance(status_message, FileMessage) or This seems brittle if we ...
7 years, 8 months ago (2016-07-27 20:30:09 UTC) #17
michelzel
https://codereview.appspot.com/302240043/diff/220001/gslib/ui_controller.py File gslib/ui_controller.py (right): https://codereview.appspot.com/302240043/diff/220001/gslib/ui_controller.py#newcode396 gslib/ui_controller.py:396: if (isinstance(status_message, FileMessage) or On 2016/07/27 20:30:09, thobrla wrote: ...
7 years, 8 months ago (2016-07-28 17:12:21 UTC) #18
thobrla
LGTM
7 years, 8 months ago (2016-07-28 18:12:43 UTC) #19
yarbrough
LGTM I had just a couple of small nitpicks. https://codereview.appspot.com/302240043/diff/280001/gslib/tests/test_ui.py File gslib/tests/test_ui.py (right): https://codereview.appspot.com/302240043/diff/280001/gslib/tests/test_ui.py#newcode90 gslib/tests/test_ui.py:90: ...
7 years, 8 months ago (2016-07-28 19:49:07 UTC) #20
michelzel
7 years, 8 months ago (2016-07-28 19:57:08 UTC) #21
Awesome, I made the changes as described below. If there's something else to
change in the description, let me know and I can add that after merging.

https://codereview.appspot.com/302240043/diff/280001/gslib/tests/test_ui.py
File gslib/tests/test_ui.py (right):

https://codereview.appspot.com/302240043/diff/280001/gslib/tests/test_ui.py#n...
gslib/tests/test_ui.py:90: def _FindAppropriateComplement(metadata):
On 2016/07/28 19:49:07, yarbrough wrote:
> Maybe use a more descriptive word than 'complement'? Maybe 'descriptionString'
> or 'typeDescriptorSuffix'?

Changed for _FindAppropriateDescriptionString.

https://codereview.appspot.com/302240043/diff/280001/gslib/thread_message.py
File gslib/thread_message.py (right):

https://codereview.appspot.com/302240043/diff/280001/gslib/thread_message.py#...
gslib/thread_message.py:42: """Creates a MetadataMessage.
On 2016/07/28 19:49:07, yarbrough wrote:
> This line should describe MetadataMessage.

Added "A MetadataMessage simply indicates that a metadata operation on a given
object has been successfully done. The only passed argument is the time when
such operation has finished."
Sign in to reply to this message.

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