Skip to content

Add adapter logic that calls spanner to delete user saved search#1264

Merged
jcscottiii merged 1 commit intomainfrom
jcscottiii/adapter-delete-saved-search
Mar 11, 2025
Merged

Add adapter logic that calls spanner to delete user saved search#1264
jcscottiii merged 1 commit intomainfrom
jcscottiii/adapter-delete-saved-search

Conversation

@jcscottiii
Copy link
Collaborator

This is the layer between the httpserver and spanner.

It parses out the error if the:

  • The user does not have access, or
  • The entity does not exist

Other changes

  • Modify the spanner logic to check if the entity exists in the same transaction

This is the layer between the httpserver and spanner.

It parses out the error if the:
- The user does not have access, or
- The entity does not exist

Other changes
- Modify the spanner logic to check if the entity exists in the same transaction
@jcscottiii jcscottiii requested review from KyleJu and jrobbins March 10, 2025 23:55
@jcscottiii jcscottiii added this pull request to the merge queue Mar 11, 2025
Merged via the queue into main with commit 6e07349 Mar 11, 2025
6 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/adapter-delete-saved-search branch March 11, 2025 01:26
jcscottiii added a commit that referenced this pull request Mar 11, 2025
This change implements the http handler for removing a user saved search.

After calling the adapter layer (which is implemented in #1264), we:
- Check the error type to distinguish between:
  - A missing saved search
  - A saved search that the user does not have access to delete
  - A generic error
github-merge-queue bot pushed a commit that referenced this pull request Mar 11, 2025
This change implements the http handler for removing a user saved search.

After calling the adapter layer (which is implemented in #1264), we:
- Check the error type to distinguish between:
  - A missing saved search
  - A saved search that the user does not have access to delete
  - A generic error
@jcscottiii jcscottiii mentioned this pull request Mar 12, 2025
@jcscottiii jcscottiii linked an issue Mar 13, 2025 that may be closed by this pull request
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.

[ENHANCEMENT] Backend has piping to create and delete saved searches

2 participants