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

Issue 83620043: Add a 'maintainer's field.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by bac
Modified:
10 years, 1 month ago
Reviewers:
rharding, mp+213858
Visibility:
Public.

Description

Add a 'maintainer's field. It was decided on the mailing list that the 'maintainer' field should be renamed to 'maintainers' to make it clear that there can be more than one. Note the old 'maintainer' field was capable of being a single entity or a list just fine. So for backward compatability, 'maintainer' is preserved, 'maintainers' is added and the actual value used is the union of the two, with duplicates removed. On the charm page the heading has been changed to 'Maintainer(s)" and an unordered list is used to present the names. https://code.launchpad.net/~bac/charmworld/add-maintainers/+merge/213858 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -22 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M charmworld/models.py View 2 chunks +15 lines, -4 lines 2 comments Download
M charmworld/templates/charm.pt View 1 chunk +6 lines, -3 lines 0 comments Download
M charmworld/testing/factory.py View 3 chunks +4 lines, -1 line 4 comments Download
M charmworld/tests/test_models.py View 1 chunk +53 lines, -6 lines 4 comments Download
M charmworld/tests/test_search.py View 1 chunk +3 lines, -1 line 0 comments Download
M charmworld/views/api/__init__.py View 2 chunks +3 lines, -1 line 0 comments Download
M charmworld/views/charms.py View 2 chunks +11 lines, -6 lines 0 comments Download
M charmworld/views/tests/test_api.py View 2 chunks +8 lines, -0 lines 0 comments Download
M charmworld/views/tests/test_charms.py View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3
bac
Please take a look.
10 years, 1 month ago (2014-04-02 14:32:32 UTC) #1
rharding
LGTM with a couple of comments. Thanks for the update. https://codereview.appspot.com/83620043/diff/1/charmworld/models.py File charmworld/models.py (right): https://codereview.appspot.com/83620043/diff/1/charmworld/models.py#newcode680 ...
10 years, 1 month ago (2014-04-02 16:38:02 UTC) #2
bac
10 years, 1 month ago (2014-04-02 18:15:26 UTC) #3
Thanks for the review

https://codereview.appspot.com/83620043/diff/1/charmworld/models.py
File charmworld/models.py (right):

https://codereview.appspot.com/83620043/diff/1/charmworld/models.py#newcode680
charmworld/models.py:680: # The 'maintainer' field is deprecated but not yet
phased out.
We aren't the drivers for it getting removed and I suspect the replacement will
be up before then.

https://codereview.appspot.com/83620043/diff/1/charmworld/testing/factory.py
File charmworld/testing/factory.py (right):

https://codereview.appspot.com/83620043/diff/1/charmworld/testing/factory.py#...
charmworld/testing/factory.py:184: store_revision=1, maintainers=None):
Good point.  I'm in the habit of adding new params to the end of the list but
since they are all kwargs it shouldn't matter.

https://codereview.appspot.com/83620043/diff/1/charmworld/testing/factory.py#...
charmworld/testing/factory.py:203: if maintainers is None:
Perhaps.  Let me see if there is fallout.

https://codereview.appspot.com/83620043/diff/1/charmworld/tests/test_models.py
File charmworld/tests/test_models.py (right):

https://codereview.appspot.com/83620043/diff/1/charmworld/tests/test_models.p...
charmworld/tests/test_models.py:490: def test_maintainer_single(self):
The test name refers to the input.  Kind of confusing but I needed a way to
distinguish between the next set.

https://codereview.appspot.com/83620043/diff/1/charmworld/tests/test_models.p...
charmworld/tests/test_models.py:497: self.assertEqual([maintainer],
charm.maintainers)
No, charm.maintainer, the derived property, no long exists.  It is the plural
version now.

maintainer and maintainers are the inputs from metadata.yaml and are kept in the
_representation dict but the property only exists as charm.maintainers.
Sign in to reply to this message.

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