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

Issue 24095007: GTTF: Add ReadOnlyRietveld similar to one currently in CQ codebase. (Closed)

Created:
7 years, 3 months ago by Paweł Hajdan Jr.
Modified:
7 years, 3 months ago
Reviewers:
Isaac (away), M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

GTTF: Add ReadOnlyRietveld similar to one currently in CQ codebase. This will replace the CQ one and allow it to stay in sync with Rietveld. For now I've only covered methods that CQ seems to touch. BUG=291335 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=224455

Patch Set 1 #

Total comments: 3

Patch Set 2 : fixes #

Total comments: 2

Patch Set 3 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -0 lines) Patch
M rietveld.py View 1 2 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Paweł Hajdan Jr.
7 years, 3 months ago (2013-09-14 01:09:15 UTC) #1
Isaac (away)
https://codereview.chromium.org/24095007/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/24095007/diff/1/rietveld.py#newcode450 rietveld.py:450: class ReadOnlyRietveld(Rietveld): I think maybe this should not extend ...
7 years, 3 months ago (2013-09-14 07:48:08 UTC) #2
Paweł Hajdan Jr.
https://codereview.chromium.org/24095007/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/24095007/diff/1/rietveld.py#newcode450 rietveld.py:450: class ReadOnlyRietveld(Rietveld): On 2013/09/14 07:48:08, Isaac wrote: > I ...
7 years, 3 months ago (2013-09-16 14:33:52 UTC) #3
M-A Ruel
https://codereview.chromium.org/24095007/diff/1/rietveld.py File rietveld.py (right): https://codereview.chromium.org/24095007/diff/1/rietveld.py#newcode450 rietveld.py:450: class ReadOnlyRietveld(Rietveld): On 2013/09/16 14:33:52, Paweł Hajdan Jr. wrote: ...
7 years, 3 months ago (2013-09-16 14:53:04 UTC) #4
iannucci
On 2013/09/14 07:48:08, Isaac wrote: > https://codereview.chromium.org/24095007/diff/1/rietveld.py > File rietveld.py (right): > > https://codereview.chromium.org/24095007/diff/1/rietveld.py#newcode450 > ...
7 years, 3 months ago (2013-09-16 17:18:14 UTC) #5
Paweł Hajdan Jr.
PTAL
7 years, 3 months ago (2013-09-19 22:02:39 UTC) #6
M-A Ruel
lgtm https://codereview.chromium.org/24095007/diff/8001/rietveld.py File rietveld.py (right): https://codereview.chromium.org/24095007/diff/8001/rietveld.py#newcode451 rietveld.py:451: # logic to be invoked accidentally. put that ...
7 years, 3 months ago (2013-09-19 22:20:27 UTC) #7
Paweł Hajdan Jr.
https://codereview.chromium.org/24095007/diff/8001/rietveld.py File rietveld.py (right): https://codereview.chromium.org/24095007/diff/8001/rietveld.py#newcode451 rietveld.py:451: # logic to be invoked accidentally. On 2013/09/19 22:20:27, ...
7 years, 3 months ago (2013-09-20 19:30:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phajdan.jr@chromium.org/24095007/13001
7 years, 3 months ago (2013-09-20 19:30:46 UTC) #9
commit-bot: I haz the power
Presubmit check for 24095007-13001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 3 months ago (2013-09-20 19:33:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/phajdan.jr@chromium.org/24095007/13001
7 years, 3 months ago (2013-09-20 19:36:44 UTC) #11
commit-bot: I haz the power
Change committed as 224455
7 years, 3 months ago (2013-09-20 19:38:49 UTC) #12
Isaac (away)
7 years, 3 months ago (2013-09-20 19:39:17 UTC) #13
Message was sent while issue was closed.
On 2013/09/16 17:18:14, iannucci wrote:
> On 2013/09/14 07:48:08, Isaac wrote:
> > https://codereview.chromium.org/24095007/diff/1/rietveld.py
> > File rietveld.py (right):
> > 
> > https://codereview.chromium.org/24095007/diff/1/rietveld.py#newcode450
> > rietveld.py:450: class ReadOnlyRietveld(Rietveld):
> > I think maybe this should not extend rietveld -- that seems like a recipe
for
> > failure, if we accidentally use a base method which is not read only. 
Perhaps
> > we could instantiate a private rietveld instance instead.
> 
> I think running a private rietveld instance is a valid approach sometimes.
There
> could be a PrivateRietveld class to do this. I think that as much as possible,
> ReadOnlyRietveld should really be a read-only connection to rietveld.
> 
> Zapping POST requests as M-A mentions would probably work fine, and then
> implementing a copy-on-write layer for apis which are meant to be persistent
> (i.e. setting flags on a CL).

Sorry for being unclear. I meant ReadOnlyRietveld could have a instance variable
pointing to an instantiation of the Rietveld class, instead of subclassing it.
I didn't mean we needed to launch Rietveld on dev_appserver.

Looks like everything got sorted out in the end.

Powered by Google App Engine
This is Rietveld 408576698