Cannot search for KVs or tags

オープン
#270 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@duckduckgrayduck がすでに取り組んでいます。

2025年4月3日 から。

  • #309 @duckduckgrayduck による — マージされずにクローズ
  • #314 @mitchelljkotler による — マージされずにクローズ

評価

この issue はまだ評価されていません。

説明

feature request
Challenge

Right now, there's no way to provide users with an index of tags/keys/values they've used (or explore tags across DocumentCloud independent of documents). If we want to provide tags as a search facet, we'll need a way to search against them.

Proposed solution

One way to implement this would be to add an endpoint that supports searching against keys and their values.

  • We could then use that endpoint from the frontend to present a tag search UI that searches KVs with key=_tag&value={x}; would expect the results to conform to the type Array<{key: "_tag"; value: string[]}>.
  • We could allow users to search KVs with key={x}; would expect the results to conform to the type Array<{key: string; value: string[]}>.
  • We could allow users to find a specific KV pair by value, like key={x}&value={y}; would expect the results to conform to the type Array<{key: string; value: string[]}>.
  • Filter by project, so I can get a list of available keys for a single project
  • Implicitly limit to documents a user can see
主要言語
Python
スター
55
フォーク
10
平均マージ
1日 13時間
マージ済み PR(30日)
22

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MuckRock/documentcloud のほかの issue

MuckRock/documentcloud の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。