Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

EthanDawes
Copy link

I added some test cases for the issue. I implemented the solution by storing the prototype of PouchDB at the start of the constructor, and then redeclaring the plugin methods from the stored prototype at the end of the constructor.

This resolves #8594

This is the continuation of #8631 which was accidently closed when I rebased. I rebased from a commit that didn't have CI errors. However, local npm test still throws errors when running from master. 🤷

@garethbowen
Copy link
Member

@funblaster22 The build is failing consistently with this change. Can you have another look?

@louwers
Copy link
Contributor

louwers commented Aug 28, 2023

@garethbowen The problem is probably that the plugin override is globally registered.

Let me open a new PR with another test.

@garethbowen
Copy link
Member

@louwers That'd be my guess too. It may need an after/aftereach to unregister the plugin after the test.

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.

Cannot override bulkDocs anymore in custom Plugin with version 8.0.0

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.