Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CouchDB datasource. #15584

Merged
merged 2 commits into from
Feb 19, 2025
Merged

Fix CouchDB datasource. #15584

merged 2 commits into from
Feb 19, 2025

Conversation

samwho
Copy link
Collaborator

@samwho samwho commented Feb 19, 2025

Description

This started out as some mock removal in couchdb.spec.ts but after removing the mock I found that a couple of things about this integration were broken.

  1. testConnection would fail if the DB specified did not exist. I suspect this used to rely on us creating a DB for pretty much every CouchDB call we made, but we changed that a little while back. I changed how it worked to query documents and if that call succeeds, we're connected.
  2. Deleting records never passed in a _rev, and so can never have worked. This has been fixed.

Launchcontrol

  • Several fixes to the CouchDB datasource: fixed testing connection, fixed delete queries.

@samwho samwho requested a review from a team as a code owner February 19, 2025 15:26
@samwho samwho requested review from adrinr and removed request for a team February 19, 2025 15:26
Copy link

qa-wolf bot commented Feb 19, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/m labels Feb 19, 2025
Copy link
Collaborator

@mike12345567 mike12345567 left a comment

Choose a reason for hiding this comment

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

LGTM!

@samwho samwho merged commit 0ecb4bf into master Feb 19, 2025
20 checks passed
@samwho samwho deleted the remove-mocks-2 branch February 19, 2025 16:54
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants