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: PouchStorageTable using incorrect $ne operator #2011

Merged

Conversation

AkshatJawne
Copy link
Contributor

@AkshatJawne AkshatJawne commented May 14, 2024

Resolves #1505

Changes:

  • Modified PouchFilter type to use $ne instead of $neq
  • Modified $regex prop to be able to accept RegExp and string, rather than just string by default

Steps Moving Forward:

  • Code change is implemented, having difficulty with imports when trying to run Unit Tests (did not commit the file yet)

Update: Apparently, there are some issues with PouchDB and jest tests, since it has not been updated to an ES6 module. (https://stackoverflow.com/questions/64905287/import-error-when-running-jest-tests-that-use-the-pouchdb-asyncstorage-adapter). Could create a babel.config.js, but not sure if we want to do that just for a function that is never used beyond an internal scope. Thus, going to omit unit tests for now.

@AkshatJawne AkshatJawne self-assigned this May 14, 2024
@AkshatJawne AkshatJawne marked this pull request as draft May 14, 2024 13:44
@AkshatJawne AkshatJawne marked this pull request as ready for review May 14, 2024 13:51
@dsmmcken
Copy link
Contributor

Re-ran your failed e2e and it passed. I think it was just webkit timeouts, we are working to fix that.

@AkshatJawne AkshatJawne requested a review from bmingles May 14, 2024 17:15
@AkshatJawne AkshatJawne requested a review from mofojed May 14, 2024 19:41
@AkshatJawne AkshatJawne requested a review from bmingles May 15, 2024 13:31
@AkshatJawne
Copy link
Contributor Author

@bmingles Have added the test cases for the regex types, however,a fter adding them I kept getting this error:
image

Figured that there was an issue with our old regex (but may have never been picked up given the any type), so I modified it. Let me know what you think about this

@AkshatJawne AkshatJawne requested a review from bmingles May 15, 2024 14:55
Copy link
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

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

LGTM

@AkshatJawne AkshatJawne merged commit 6cf1240 into deephaven:main May 15, 2024
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PouchStorageTable using incorrect $ne operator
4 participants