Show More
@@ -2,6 +2,7 b' List of contributors to Kallithea projec' | |||
|
2 | 2 | |
|
3 | 3 | Mads Kiilerich <mads@kiilerich.com> 2016-2022 |
|
4 | 4 | Manuel Jacob <me@manueljacob.de> 2019-2020 2022 |
|
5 | toras9000 <toras9000@gmail.com> 2022 | |
|
5 | 6 | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> 2014-2021 |
|
6 | 7 | ssantos <ssantos@web.de> 2018-2021 |
|
7 | 8 | Private <adamantine.sword@gmail.com> 2019-2021 |
@@ -1791,13 +1791,14 b' class ApiController(JSONRPCController):' | |||
|
1791 | 1791 | owner=None, |
|
1792 | 1792 | parent=None): |
|
1793 | 1793 | repo_group = get_repo_group_or_error(repogroupid) |
|
1794 | parent_repo_group_id = None if parent is None else get_repo_group_or_error(parent).group_id | |
|
1794 | 1795 | |
|
1795 | 1796 | updates = {} |
|
1796 | 1797 | try: |
|
1797 | 1798 | store_update(updates, group_name, 'group_name') |
|
1798 | 1799 | store_update(updates, description, 'group_description') |
|
1799 | 1800 | store_update(updates, owner, 'owner') |
|
1800 | store_update(updates, parent, 'parent_group') | |
|
1801 | store_update(updates, parent_repo_group_id, 'parent_group_id') | |
|
1801 | 1802 | repo_group = RepoGroupModel().update(repo_group, updates) |
|
1802 | 1803 | meta.Session().commit() |
|
1803 | 1804 | return dict( |
@@ -26,6 +26,7 b'' | |||
|
26 | 26 | |
|
27 | 27 | <li>Copyright © 2012–2022, Mads Kiilerich</li> |
|
28 | 28 | <li>Copyright © 2019–2020, 2022, Manuel Jacob</li> |
|
29 | <li>Copyright © 2022, toras9000</li> | |
|
29 | 30 | <li>Copyright © 2014–2021, Thomas De Schampheleire</li> |
|
30 | 31 | <li>Copyright © 2015–2017, 2019–2021, Étienne Gilli</li> |
|
31 | 32 | <li>Copyright © 2018–2021, ssantos</li> |
@@ -1854,7 +1854,7 b' class _BaseTestApi(object):' | |||
|
1854 | 1854 | #('owner', {'owner': base.TEST_USER_REGULAR_LOGIN}), # currently broken |
|
1855 | 1855 | ('description', {'description': 'new description'}), |
|
1856 | 1856 | ('group_name', {'group_name': 'new_repo_name'}), |
|
1857 |
|
|
|
1857 | ('parent', {'parent': 'test_group_for_update'}), | |
|
1858 | 1858 | ]) |
|
1859 | 1859 | def test_api_update_repo_group(self, changing_attr, updates): |
|
1860 | 1860 | group_name = 'lololo' |
General Comments 0
You need to be logged in to leave comments.
Login now