ProfessionalWiki / ProfessionalWiki/Rules

Improve category search

Open
#59 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
PHP
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Description

At the moment it seems to be doing only prefix search. If a category is Foo Bar Baz, it should show up in the suggestions when the user types Bar

Changing https://github.com/ProfessionalWiki/Rules/blob/0ab4c6fae6cb0ea9acc15f5cccd8cf56e58bfaa4/modules/ext.rules/utils/api.js#L48-L58

Using the search API might be better (https://github.com/ProfessionalWiki/Rules/pull/56#event-18950488486)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in modules/ext.rules/utils/api.js at lines 48-58 and inspect how category suggestions currently perform prefix matching. Review the linked pull request event for the search API option. Done means typing “Bar” returns the category “Foo Bar Baz” in suggestions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
search
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.