Adding a new Resource requires an Author, but can't list them all yet
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- backend
调研方向
该 issue 未指明文件、测试或入口点。首先查看链接的 Discord Select Menu 和 Autocomplete Interaction 文档,然后检查现有的 /add-resource 作者选择流程。Done 应提供一个确定的方案,使用户能够选择超过当前 25 个选项限制的 Authors。
由索引模型根据 Issue 内容生成。
描述
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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Developer-DAO/devie-bot 的其他 Issue
-
难度 5/5 一周以上 新手友好度 30/100
Developer-DAO/devie-bot#21 ·
-
难度 5/5 一周以上 新手友好度 25/100
Developer-DAO/devie-bot#19 ·
-
bug
难度 3/5 1-2 天 新手友好度 35/100
Developer-DAO/devie-bot#15 ·
查看 Developer-DAO/devie-bot 的全部 Issue
相似的 Issue
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)可能已有人在做 @Jxxunnn 今天认领。 未关闭Browser Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 82/100
getsentry/sentry-javascript#25497 · 1 条评论 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 77/100
redhat-developer/rhdh-plugin-export-overlays#4438 · 1 条评论 ·
维护者通常 1 天内回复
-
resource: destroying a resource calls AbortController.abort() without a reason, creating an AbortError with a stack trace each time可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area: core
难度 2/5 1-3 小时 新手友好度 75/100
angular/angular#71422 · 1 条评论 ·
维护者通常 1 天内回复
-
bug status: needs triage
难度 2/5 1-3 小时 新手友好度 72/100
facebook/docusaurus#12739 · 1 条评论 ·
维护者通常 1 天内回复
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
难度 1/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复