SAP / guided-answers-extension

Enable community collaboration to jointly promote, develop and consume a VSCode extension which provides a simple interactive way to show the developers how to troubleshoot issues, navigate processes and guide through tasks via the content published to SAP's Guided Answers (https://ga.support.sap.com/dtp/viewer/).
Apache License 2.0
9 stars 4 forks source link

BUG - Search results seems duplicated #535

Closed theStiggySpd closed 1 year ago

theStiggySpd commented 1 year ago

Related Feature

Feature request: issue number

Description

A clear description of what the bug is.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Launch Guided Asnwers
  2. Search for SAP Fiori tools

Expected results

Trees are noot duplicated

Actual results

Trees are duplicated

Screenshots

image

Version/Components/Environment

Add any other context about the problem here OS:

Root Cause Analysis

Problem

{describe the problem}

Fix

{describe the fix}

Why was it missed

{Some explanation why this issue might have been missed during normal development/testing cycle}

How can we avoid this

{if we don’t want to see this type of issues anymore what we should do to prevent}

Klaus-Keller commented 1 year ago

When I'm accessing the API directly I do not see duplicate entries: https://ga.support.sap.com/dtp/api/v5/trees/%22SAP%20Fiori%20tools%22?product=&component=&responseSize=18&offset=0

{
  "resultSize": 3,
  "trees": [
    {
      "SCORE": 0.94,
      "TREE_ID": 3046,
      "TITLE": "SAP Fiori tools",
      "DESCRIPTION": "This is a troubleshooting guide to solve the issues while using SAP Fiori tools",
      "AVAILABILITY": "PUBLIC",
      "FIRST_NODE_ID": 45995,
      "PRODUCT": "SAP Fiori tools",
      "COMPONENT": "CA-UX-IDE"
    },
    {
      "SCORE": 0.82,
      "TREE_ID": 3337,
      "TITLE": "SAP Fiori tools - Application Preview",
      "DESCRIPTION": "This is a troubleshooting guide to solve the issues related to application preview while using SAP Fiori tools",
      "AVAILABILITY": "PUBLIC",
      "FIRST_NODE_ID": 52881,
      "PRODUCT": "SAP Fiori tools",
      "COMPONENT": "CA-UX-IDE"
    },
    {
      "SCORE": 0.36,
      "TREE_ID": 3348,
      "TITLE": "Configuration of SAP Fiori Application",
      "DESCRIPTION": "Maintaining and Adding annotations",
      "AVAILABILITY": "PUBLIC",
      "FIRST_NODE_ID": 53055,
      "PRODUCT": "SAP Fiori tools",
      "COMPONENT": "CA-UX-IDE"
    }
  ],
  "productFilters": [
    {
      "PRODUCT": "SAP Fiori tools",
      "COUNT": 3
    }
  ],
  "componentFilters": [
    {
      "COMPONENT": "CA-UX-IDE",
      "COUNT": 3
    }
  ]
}

Also in Guided Answers extension I do not see duplicates anymore: image

Temporary API issue?

Klaus-Keller commented 1 year ago

Ok, I think I found the issue. Prepared PR https://github.com/SAP/guided-answers-extension/pull/537

theStiggySpd commented 1 year ago

Fix validated. Works well. Thanks much.