Add Maintenance State field

Fixes #160
This commit is contained in:
rubenwardy
2021-12-20 21:07:12 +00:00
parent a800685947
commit 5d32d7922f
12 changed files with 156 additions and 10 deletions

View File

@@ -61,6 +61,8 @@ Tokens can be attained by visiting [Settings > API Tokens](/user/tokens/).
* `title`: Human-readable title.
* `name`: Technical name (needs permission if already approved).
* `short_description`
* `dev_state`: One of `WIP`, `BETA`, `ACTIVELY_DEVELOPED`, `MAINTENANCE_ONLY`, `AS_IS`, `DEPRECATED`,
`LOOKING_FOR_MAINTAINER`.
* `tags`: List of [tag](#tags) names.
* `content_warnings`: List of [content warning](#content-warnings) names.
* `license`: A [license](#licenses) name.

View File

@@ -16,10 +16,15 @@ contentdb_flag_blacklist = nonfree, bad_language, drugs
A flag can be:
* `nonfree` - can be used to hide packages which do not qualify as
'free software', as defined by the Free Software Foundation.
'free software', as defined by the Free Software Foundation.
* `wip` - packages marked as Work in Progress
* `deprecated` - packages marked as Deprecated
* A content warning, given below.
* `android_default` - meta-flag that filters out any content with a content warning.
* `desktop_default` - meta-flag that doesn't filter anything out for now.
* `android_default` - meta-flag that filters out any content with a content warning and WIP packages
* `desktop_default` - meta-flag that filters out WIP packages.
The `_default` flags are designed so that we can change how different platforms filter the package list
based on
## Content Warnings

View File

@@ -50,6 +50,8 @@ It should be a JSON dictionary with one or more of the following optional keys:
* `title`: Human-readable title.
* `name`: Technical name (needs permission if already approved).
* `short_description`
* `dev_state`: One of `WIP`, `BETA`, `ACTIVELY_DEVELOPED`, `MAINTENANCE_ONLY`, `AS_IS`, `DEPRECATED`,
`LOOKING_FOR_MAINTAINER`.
* `tags`: List of tag names, see [/api/tags/](/api/tags/).
* `content_warnings`: List of content warning names, see [/api/content_warnings/](/api/content_warnings/).
* `license`: A license name, see [/api/licenses/](/api/licenses/).