Skip to content

Add plumbing between spanner & http for missing one impl feature list#1277

Merged
KyleJu merged 3 commits intomainfrom
mis-impl-adap
Mar 17, 2025
Merged

Add plumbing between spanner & http for missing one impl feature list#1277
KyleJu merged 3 commits intomainfrom
mis-impl-adap

Conversation

@KyleJu
Copy link
Contributor

@KyleJu KyleJu commented Mar 14, 2025

#1181. This change adds the spanner adapter conversion layer for the missing one implementation feature list endpoint. This change is drawn from #904

@KyleJu KyleJu marked this pull request as ready for review March 14, 2025 23:13
@KyleJu KyleJu changed the title Add plumbing between spanner & http for missing one implementation Add plumbing between spanner & http for missing one impl feature list Mar 14, 2025
@KyleJu KyleJu requested a review from jcscottiii March 14, 2025 23:13
jcscottiii
jcscottiii previously approved these changes Mar 17, 2025
Copy link
Collaborator

@jcscottiii jcscottiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a suggestion to use the valuePtr helper. This will prevent us from accidentally using == for pointer comparisons (which only checks addresses) and encourage the use of reflect.DeepEqual for reliable value comparisons.

Copy link
Collaborator

@jcscottiii jcscottiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the last minute change. You should send the raw requests and check the responses. The other tests for backend/pkg/httpserver do that now.

Also, you are missing the 400 case for the ErrInvalidPageToken.

Take a look at this file for an example of both: https://github.com/GoogleChrome/webstatus.dev/blob/dd082e1045062e143754509026c44b53cf12180c/backend/pkg/httpserver/list_chromium_usage_test.go

@jcscottiii jcscottiii self-requested a review March 17, 2025 18:37
@jcscottiii jcscottiii dismissed their stale review March 17, 2025 18:43

Apologies. I missed that the tests should send raw requests like others. You'll see that the test code in #904 has been updated to follow that pattern: https://github.com/GoogleChrome/webstatus.dev/blob/main/backend/pkg/httpserver/list_aggregated_feature_support_test.go

@KyleJu KyleJu enabled auto-merge March 17, 2025 23:38
@KyleJu KyleJu added this pull request to the merge queue Mar 17, 2025
Merged via the queue into main with commit a686d4c Mar 17, 2025
6 checks passed
@KyleJu KyleJu deleted the mis-impl-adap branch March 17, 2025 23:56
@jcscottiii jcscottiii mentioned this pull request Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants