grafana/mimir

Ensure list of deprecated and experimental flags in docs remains in sync with deprecated / experimental status in code

Open

#6,344 建立於 2023年10月11日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Go (808 fork)auto 404
good first issue

倉庫指標

Star
 (5,181 star)
PR 合併指標
 (PR 指標待抓取)

描述

Is your feature request related to a problem? Please describe.

From https://github.com/grafana/mimir/pull/5765#discussion_r1300813177

We mark configuration flags as deprecated and experimental in code (with the category:"experimental" tag), and maintain a list of deprecated and experimental features in the docs.

Nothing enforces that the list of deprecated and experimental flags in the docs are kept in sync, so it's very easy to forget to update the docs when changing the status of a flag in code.

Describe the solution you'd like

Either:

  • a test or other check fails if the docs and code are out of sync
  • the docs are autogenerated from the code (ie. marking a flag as deprecated in code automatically updates the docs to include that flag in the list of deprecated flags)

Describe alternatives you've considered

Continue manually maintaining this and continue forgetting to update the docs

貢獻者指南