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

[core] Expose dbPromise in StateStore #1171

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

confused-Techie
Copy link
Member

The getter method of dbPromise within StateStore is relied on by the community package project-plus, but with the release of Pulsar v1.122.0 and specifically the introduction of the new StateStore database in #917 that method has been hidden away within each database's own code.

But because both database's still have this method, it seems entirely possible we could just expose this the same way we expose their other methods.

Closes #1169

Copy link
Contributor

@savetheclocktower savetheclocktower left a comment

Choose a reason for hiding this comment

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

Looks great, but can we add a quick spec to state-store-spec.js? If this is going to be (informally) part of the contract, we should protect against future regressions.

@confused-Techie
Copy link
Member Author

@savetheclocktower Thanks for giving this a review, I've added the specs and that lead to me finding out this was still somewhat broken, so I've also gone ahead and fixed it. We should be good to go now

@confused-Techie
Copy link
Member Author

Just wanting to add it looks like the only failure in CI is due to the issues resolved in #1173 so they shouldn't be considered here on this PR.

@confused-Techie
Copy link
Member Author

Thanks @mauricioszabo

@confused-Techie confused-Techie merged commit e46ba9a into master Dec 30, 2024
102 of 103 checks passed
@confused-Techie confused-Techie deleted the expose-database-dbPromise-method branch December 30, 2024 23:31
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.

Pulsar Regular Release 1.122.0 and later break Project Plus package's features
3 participants