Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve parse error when result is empty #10846

Open
Sebastiaan127001 opened this issue Feb 17, 2025 · 0 comments
Open

Improve parse error when result is empty #10846

Sebastiaan127001 opened this issue Feb 17, 2025 · 0 comments

Comments

@Sebastiaan127001
Copy link
Contributor

Describe the bug
It would be useful if Quality-time gives more information when an API does not give the desired result.
For instance, if the user enters the wrong values in a source field, the API returns an empty list, but Quality-time still shows a parse error.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to a metric 'source up-to-dateness' with Dependency-Track as source
  2. Enter 'latests' in the version field
  3. Enter to refresh the measurement
  4. See parse error

Expected behaviour
Two bits of information would better help the end-user.

  • Show the full URL and path that has been used for this call.
  • In this particular case, when an empty list is returned by the API, tell the user that an empty list was returned, instead of showing a parse error. Consider showing (part of) the data the Quality-time tried to parse so the user better understands why this did not work.

Screenshots

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To be refined
Development

No branches or pull requests

1 participant