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

Issue 696041: Allow the base URL to be a free-form string.

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 9 months ago by evan
Modified:
15 years, 9 months ago
Reviewers:
Andi Albrecht, GvR
Visibility:
Public.

Description

Allow the base URL to be a free-form string. We will still fail with a bad URL if we go down the "fetch base" codepath, but as review metadata, we no longer require a valid URL. This is because db.Link() only allows a small set of URL schemes (svn:, http:) and importantly not other valid URLs, such as git: or svn+ssh:. For people who upload from projects where we don't fetch base files, it's nice to use the base URL metadata to show which project the code comes from.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -13 lines) Patch
M codereview/engine.py View 1 chunk +5 lines, -1 line 0 comments Download
M codereview/views.py View 2 chunks +0 lines, -12 lines 1 comment Download

Messages

Total messages: 4
evan
Not sure how to test this, but it seems to work.
15 years, 9 months ago (2010-03-23 19:32:17 UTC) #1
Andi Albrecht
http://codereview.appspot.com/696041/diff/1/3 File codereview/views.py (left): http://codereview.appspot.com/696041/diff/1/3#oldcode162 codereview/views.py:162: else: Are you sure that you want to remove ...
15 years, 9 months ago (2010-03-24 06:16:57 UTC) #2
evan
Sorry, I realized I didn't give you enough context. I updated the review description with ...
15 years, 9 months ago (2010-03-24 16:50:46 UTC) #3
Andi Albrecht
15 years, 9 months ago (2010-03-24 18:04:11 UTC) #4
I was just wondering if we should keep the db.Link validation when a new
issue is created using the web form (but not when it's edited). However, the
URL validation isn't sufficient either way if we need to download the base
files. It should somehow verify that the computed URLs for base files are
fine. But this should go into a different patch :)

LGTM

On Wed, Mar 24, 2010 at 5:50 PM, <evan@chromium.org> wrote:

> Sorry, I realized I didn't give you enough context.  I updated the
> review description with another paragraph...
>
>
> http://codereview.appspot.com/696041/show
>
Sign in to reply to this message.

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