~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/views/tests/test_api.py

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2014-04-02 18:25:54 UTC
  • mfrom: (497.1.1 add-maintainers)
  • Revision ID: tarmac-20140402182554-h4fo6e0qnroitzni
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://codereview.appspot.com/83620043/

R=rharding.

Approved by Juju Gui Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
                    'name': 'John Doe',
517
517
                    'email': 'jdoe@example.com',
518
518
                },
 
519
                'maintainers': [{
 
520
                    'name': 'John Doe',
 
521
                    'email': 'jdoe@example.com',
 
522
                }],
519
523
                'id': one_url[3:],
520
524
                'categories': [],
521
525
                'date_created': '1997-10-29T12:10:09',
593
597
                    'name': 'J. Random Hacker',
594
598
                    'email': 'jrandom@example.com',
595
599
                },
 
600
                'maintainers': [{
 
601
                    'name': 'J. Random Hacker',
 
602
                    'email': 'jrandom@example.com',
 
603
                }],
596
604
                'id': two_url[3:],
597
605
                'categories': ['cache-proxy'],
598
606
                'date_created': '1996-09-28T11:09:08',