Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose linked component info in the API #10926

Closed
nijel opened this issue Feb 1, 2024 · 1 comment · Fixed by #10992
Closed

Expose linked component info in the API #10926

nijel opened this issue Feb 1, 2024 · 1 comment · Fixed by #10992
Assignees
Labels
enhancement Adding or requesting a new feature.
Milestone

Comments

@nijel
Copy link
Member

nijel commented Feb 1, 2024

Describe the problem

Presently the API hides linked components by exposing real repository URL. This was done to make the repo URL usable outside Weblate, but this also complicates editing of the component as the actual setting is not shown.

Describe the solution you would like

Expose real repo (and related) field with the value as is stored in the database. This can break compatibility if somebody relied on the real URL, but will make the API more consistent.

Additionally, add linked_component read-only field so that the actual repo can be easily obtained.

Describe alternatives you have considered

Adding only linked_component field would allow detecting this is a linked component, without breaking existing repo uses. On the other side, there are other fields which are masked this way what makes editing of the linked component via API really tricky.

Screenshots

No response

Additional context

No response

@nijel nijel added the enhancement Adding or requesting a new feature. label Feb 1, 2024
@nijel nijel added this to the 5.4 milestone Feb 1, 2024
@nijel nijel self-assigned this Feb 13, 2024
nijel added a commit to nijel/weblate that referenced this issue Feb 13, 2024
nijel added a commit to nijel/weblate that referenced this issue Feb 13, 2024
nijel added a commit that referenced this issue Feb 13, 2024
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant