drodil / backstage-plugin-qeta

Backstage.io plugin for Q&A
https://www.npmjs.com/package/@drodil/backstage-plugin-qeta
MIT License
81 stars 25 forks source link

Pre-filtering questions with selected tag is not working #141

Closed kedaroh-bh closed 5 months ago

kedaroh-bh commented 5 months ago

Issue: Pre-filtering questions with selected tag is not working when user choose tag from tag list page to see issues tagged with selected tag.

Expected: When user choose to see all questions tagged with selected tag from tags page, the question list should be pre-filtered with the selected tag.

Steps to reproduce:

  1. Create some questions with specific tag eg test tag and few without tags.
  2. Go to tags list page http://localhost:3000/qeta/tags.
  3. Selected chip with tag name 'test' from the list of tags.
  4. It will redirect to http://localhost:3000/qeta/tags/test.
  5. On this page it is showing all questions.
  6. Check filter panel and it do not have selected tag in tag autocomplete.

Findings: In plugins\qeta\src\components\QuestionsContainer\QuestionsContainer.tsx, tags prop is not set into the filter initial state if exist.

Screenshot: Question q2 don't have tag 'test', still it is displayed.

image

kedaroh-bh commented 5 months ago

Fixed in PR #142 and available in version v1.24.5