WeblateOrg / WeblateOrg/weblate

Allow to set arbitrary priority for components through REST API

Open
#6,840 5 comments 0 reactions 0 assignees View on GitHub
enhancement Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the problem

I want to force order of components using priority (by settings different priority for each component). I tried to use REST API to change these values, but it looks like API accepts only [5 predefined values](https://github.com/WeblateOrg/weblate/blob/ebc31818eea4e82efa4e588693579d9c60c23dd3/weblate/trans/util.py#L43-L49) (I have over 250 components, so it is not even close). Is there any particular reason for this limitation? Priority is stored in database as INT, which allows to store over 4kkk values.

### Describe the solution you'd like

Allow any integer to be set as priority.

### Describe alternatives you've considered

_No response_

### Screenshots

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.