Improve error handling related to Drupal.org endpoint

Created on 18 December 2024, 4 months ago

Problem/Motivation

Right now, we don't handle the difference between "there are no results for your query" and "you have given me an invalid query." If there's a bad query (for example because you have an outdated PB client), it will just appear that you have 0 results.

Steps to reproduce

Using these links, you can get different results.

The API if there are truly 0 results:
https://drupalorg.prod.cluster.drupalsystems.org/jsonapi/index/project_m...

The API returns a 400 if you issue a bad request:
https://drupalorg.prod.cluster.drupalsystems.org/jsonapi/index/project_m...

An example good request:
https://drupalorg.prod.cluster.drupalsystems.org/jsonapi/index/project_m...

Proposed resolution

I THINK this is somewhere around here:
https://git.drupalcode.org/project/project_browser/-/blob/2.0.x/src/Plug... - someone please correct me if I'm wrong.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chrisfromredfin Portland, Maine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024