X Tutup
Skip to content

Add support for Project badges#507

Merged
gpocentek merged 1 commit intopython-gitlab:masterfrom
Miouge1:badges
May 29, 2018
Merged

Add support for Project badges#507
gpocentek merged 1 commit intopython-gitlab:masterfrom
Miouge1:badges

Conversation

@Miouge1
Copy link
Contributor

@Miouge1 Miouge1 commented May 23, 2018

@Miouge1 Miouge1 changed the title Add support for Proejct badges Add support for Project badges May 23, 2018
@Miouge1 Miouge1 force-pushed the badges branch 2 times, most recently from ae24fa9 to 802b2d4 Compare May 23, 2018 13:06
Copy link
Contributor

@gpocentek gpocentek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this patch!

It would be great to have some functional testing in tools/python_test_v4.py.

And extra points if you can add some documentation.

_path = '/projects/%(project_id)s/badges'
_obj_cls = ProjectBadge
_from_parent_attrs = {'project_id': 'id'}
_create_attrs = (('link_url', 'image_url'), tuple())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is also possible to update the badge objects, so could you define the _update_attrs variable as well?

('triggers', 'ProjectTriggerManager'),
('variables', 'ProjectVariableManager'),
('wikis', 'ProjectWikiManager'),
('badges', 'ProjectBadgeManager'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this line to keep the list sorted?

@Miouge1
Copy link
Contributor Author

Miouge1 commented May 29, 2018

@gpocentek thanks for the feedback. Can you review the latest commit, it should add tests, the update_attrs etc... ?

@gpocentek gpocentek merged commit 01a41ef into python-gitlab:master May 29, 2018
@gpocentek
Copy link
Contributor

Thanks!

@Miouge1
Copy link
Contributor Author

Miouge1 commented Jun 14, 2018

@gpocentek I would love to see this release in a v1.5.0 to start using it in production from PyPi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup