google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.23k stars 286 forks source link

Dashboard search should support URIs that don't resolve to individual posts #1592

Closed ryanwelcher closed 2 years ago

ryanwelcher commented 4 years ago

Currently, any URIs that are entered to the input must resolve to a related piece of content, or "No results found" are displayed. In the case of directly entering valid URIs that don't resolve such as tag archive or the homepage when there is no Page assigned.

The was discovered while working on #1434 and will be more pronounced with the work done there, as now the View Data button is not enabled unless there is a matched piece of content.

We should be able to submit valid URIs directly as long as they match the site domain.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

Test Coverage

Visual Regression Changes

QA Brief

Changelog entry

aaemnnosttv commented 3 years ago

Related to #174, the dashboard details view already supports these kind of "virtual" entities like archive pages - we only need to update the search endpoint to support it 👍

image

aaemnnosttv commented 3 years ago

Thanks @ivankruchkoff ! The IB looks good, but we should add tests for the new endpoint via the controller class as we have for others (see REST_*_ControllerTests).

aaemnnosttv commented 3 years ago

Thanks @ivankruchkoff – I think we should bump the estimate for the added tests but otherwise

IB ✅

asvinb commented 2 years ago

QA: ✅