Problem/Motivation

Users were confused when testing the Mock API plugin because Best Match uses the relevance score, which the mock does not provide. The Drupal 9 real JSON:API endpoint does work and functions (Fran has demo'd it to me), so I think it _might_ make sense to remove this from the mock api plugin as an option, once https://www.drupal.org/project/project_browser/issues/3307512 goes in.

Steps to reproduce

Using the Mock API source plugin, sort by best match. Note no change.

Proposed resolution

Remove from the mock api plugin.

Remaining tasks

  • ✅ File an issue about this project
  • ☐ Manual Testing
  • ☐ Code Review
  • ☐ Accessibility Review
  • ☐ Automated tests needed/written?
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

chrisfromredfin created an issue. See original summary.

chrisfromredfin’s picture

Category: Bug report » Plan

I am not 100% convinced that this is the _right_ approach, so open to discussion here.

fjgarlin’s picture

If we decide to alter it, once #3307512: Alter default sorting options in plugins goes in, it's literally just a few lines of code.

tim.plunkett’s picture

Category: Plan » Task
narendrar’s picture

Assigned: Unassigned » narendrar

Utkarsh_33 made their first commit to this issue’s fork.

narendrar’s picture

Assigned: narendrar » utkarsh_33
Status: Active » Needs work
utkarsh_33’s picture

Status: Needs work » Needs review
fjgarlin’s picture

Status: Needs review » Reviewed & tested by the community

Tested via drupalpod and reviewed the code. All looks good, marking RTBC.

utkarsh_33’s picture

Assigned: utkarsh_33 » Unassigned
tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

This can have test coverage

utkarsh_33’s picture

Status: Needs work » Needs review
narendrar’s picture

Status: Needs review » Needs work
Issue tags: -Needs tests

Just a small nit to address 👍

utkarsh_33’s picture

Status: Needs work » Needs review
narendrar’s picture

Status: Needs review » Reviewed & tested by the community
tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs work

Fixing the case on Project Usage is out-of-scope, and made redundant by #3315867: Change the label for the sort by option Project Usage

utkarsh_33’s picture

Status: Needs work » Needs review
narendrar’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: +#3315867: Change the label for the sort by option Project Usage

Changes in this issue or related issue needs to be done once one of the issue is committed.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs work

Needs rebase after committing the other label issue.

utkarsh_33’s picture

Status: Needs work » Needs review
narendrar’s picture

Status: Needs review » Reviewed & tested by the community
bnjmnm’s picture

Status: Reviewed & tested by the community » Needs work

Small MR feedback

utkarsh_33’s picture

Status: Needs work » Needs review

  • bnjmnm committed 526b7ab on 1.0.x authored by Utkarsh_33
    Issue #3310903 by Utkarsh_33, bnjmnm, narendraR, tim.plunkett,...
bnjmnm’s picture

Status: Needs review » Fixed

Looking good, this gets a merge! Who knows how long the Mock will be used, but it's worth removing from it 🙂

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

tim.plunkett’s picture

Issue tags: +core-mvp