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

Issue 21370044: Update bundle user url to be /bundle/$id-bits.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by rharding
Modified:
10 years, 6 months ago
Reviewers:
mp+193851, benji
Visibility:
Public.

Description

Update bundle user url to be /bundle/$id-bits. - Update the api to provide that url as part of the bundle metadata so the gui can link to it as a valid quickstart end point. - Drive by to skip the test that fails with the known bug issue. - Rename the TestApi2 and 3 back to not have the Z since we're just skipping vs working around the issue. https://code.launchpad.net/~rharding/charmworld/move-bundle-url/+merge/193851 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Update bundle user url to be /bundle/$id-bits. #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -22 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/routes.py View 1 chunk +4 lines, -4 lines 2 comments Download
M charmworld/views/api/__init__.py View 1 4 chunks +15 lines, -5 lines 2 comments Download
M charmworld/views/tests/test_api.py View 1 10 chunks +14 lines, -7 lines 8 comments Download
M charmworld/views/tests/test_bundles.py View 6 chunks +6 lines, -6 lines 0 comments Download
M charmworld/views/tests/test_misc.py View 1 1 chunk +6 lines, -0 lines 1 comment Download

Messages

Total messages: 5
rharding
Please take a look.
10 years, 6 months ago (2013-11-04 21:28:53 UTC) #1
rharding
Please take a look.
10 years, 6 months ago (2013-11-04 21:43:46 UTC) #2
rharding
Reviewer comments added. https://codereview.appspot.com/21370044/diff/20001/charmworld/routes.py File charmworld/routes.py (right): https://codereview.appspot.com/21370044/diff/20001/charmworld/routes.py#newcode57 charmworld/routes.py:57: "/bundle/~{owner}/{basket}/{rev}/{bundle}/json") this could probably go into ...
10 years, 6 months ago (2013-11-04 21:46:33 UTC) #3
benji
LGTM https://codereview.appspot.com/21370044/diff/20001/charmworld/routes.py File charmworld/routes.py (right): https://codereview.appspot.com/21370044/diff/20001/charmworld/routes.py#newcode57 charmworld/routes.py:57: "/bundle/~{owner}/{basket}/{rev}/{bundle}/json") On 2013/11/04 21:46:34, rharding wrote: > this ...
10 years, 6 months ago (2013-11-05 12:55:45 UTC) #4
rharding
10 years, 6 months ago (2013-11-05 13:12:54 UTC) #5
Thanks for the review. I made a couple of small updates.

https://codereview.appspot.com/21370044/diff/20001/charmworld/views/tests/tes...
File charmworld/views/tests/test_api.py (right):

https://codereview.appspot.com/21370044/diff/20001/charmworld/views/tests/tes...
charmworld/views/tests/test_api.py:841:
u'http://example.com/bundle/%7Ebac/bat/4/byobu/json',
On 2013/11/05 12:55:46, benji wrote:
> On 2013/11/04 21:46:34, rharding wrote:
> > I'm so sorry, but the linter...he hates me.
> 
> Eww.  That is bad.
> 
> It wouldn't accept the value being indented four more spaces?

No, it yelled about bad indentation. I was trapped between the line length and
the indentation fussing. I moved the string out into a variable. I thought about
it yesterday but it seemed ugly to me. Now looking at it, it's much more sane.

https://codereview.appspot.com/21370044/diff/20001/charmworld/views/tests/tes...
charmworld/views/tests/test_api.py:1585: class TestAPI3(TestAPI, API3Mixin):
On 2013/11/05 12:55:46, benji wrote:
> On 2013/11/04 21:46:34, rharding wrote:
> > remove the stupid Z. Just skipping the bad test for now. See later files.
> 
> I like the explicitness of the new approach better.

Thanks, removed the comments above as well. Missed that :/
Sign in to reply to this message.

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