weblate icon indicating copy to clipboard operation
weblate copied to clipboard

Cannot assign a team/group administrator using the REST API

Open joubu opened this issue 2 years ago • 6 comments

Describe the problem

It's not possible to grant administration to a group/team using the REST API

Describe the solution you'd like

It does not seem easy to implement, but just logging the problem in an issue to report the problem.

Describe alternatives you've considered

No response

Screenshots

No response

Additional context

No response

joubu avatar Oct 17 '23 19:10 joubu

@joubu Can you describe the problem please

rawatsushil avatar Oct 18 '23 04:10 rawatsushil

Using the UI you can "Grant administration" or "Revoke administration" on the following view: http://localhost:8888/teams/GROUP_ID/#users image

I have not found a way to do that using the REST API.

joubu avatar Oct 18 '23 06:10 joubu

This issue seems to be a good fit for newbie contributors. You are welcome to contribute to Weblate! Don't hesitate to ask any questions you would have while implementing this.

You can learn about how to get started in our contributors documentation.

github-actions[bot] avatar Oct 18 '23 13:10 github-actions[bot]

Indeed it is not exposed in the API. Adding that should be pretty easy to the existing API endpoints: https://docs.weblate.org/en/latest/api.html#groups

nijel avatar Oct 18 '23 13:10 nijel

@nijel hey! I would like to work on this. I'll add a new endpoint to the GroupViewSet in the api. Is there a preference for name of the endpoint?

nidhi-kala avatar Oct 23 '23 23:10 nidhi-kala

Sorry for missing your question. See how components endpoint works at GroupViewSet, this should be similar.

nijel avatar Nov 06 '23 13:11 nijel

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

github-actions[bot] avatar Mar 27 '24 10:03 github-actions[bot]