Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Adding a new Resource requires an Author, but can't list them all yet

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
typescript
領域
backend

調査の方向性

このissueではファイル、テスト、エントリポイントのいずれも指定されていません。まず、リンクされているDiscord Select MenuおよびAutocomplete Interactionのドキュメントを確認し、その後、既存の/add-resourceのauthor-selectionフローを調査してください。Doneでは、ユーザーが現在の25個の選択肢の上限を超えてAuthorsを選択できるようにする、決定済みのアプローチが提示されている必要があります。

索引モデルが issue の本文から書いたものです。

説明

enhancement help wanted

Problem

When adding a new Resource the Author field is currently required. Currently the list of Authors is restricted to 25 as this is the maximum number of options that can be listed in a Select Menu for discord. Discord documentation

We need a new approach for selecting Authors as part of the /add-resource command.

I have thought about a few approaches that could be taken, but other ideas are welcome.

1) Make Author Optional

This would make it possible to add Resources without an Author and therefore allow submissions to continue.
Pros
Simple change
Immediately allows submissions of articles where the Authors are currently not listed
Cons
Data quality is reduced
Authors should be searchable

2) Add Paging Options

Change the first (apart from the first page) and last options in the Select Menu to be paging selections
Pros
Allows all Authors to be listed (eventually)
Possibly a simple code change
Cons
Finding an Author near the end of the list will take a long time

3) Create an index strategy

Sort all of the Authors into buckets, with a maximum of 25 entries at each level, e.g.

A-B
|-> Aa - Ag
  |-> Aaron Aardvaark
      Aaron Smith
      Abbey Mills
      ...
      Agatha Doe

Pros
Potentially faster average time to find authors
Should be possible to list all authors
Cons
Relies on consistent naming of Authors to make sense to users. e.g. Firstname, Surname or Surname, Firstname

4) Autocomplete Interaction

It should be possible to create an Autocomplete Message Interaction to allow searching for Authors.
Pros
Makes it possible to search for an Author
Cons
This does not seem to be supported by discord.js at this time

主要言語
TypeScript
スター
29
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

Developer-DAO/devie-bot のほかの issue

Developer-DAO/devie-bot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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