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

[1.x] Delete Firebase nodes for stale topics #205

Merged
merged 4 commits into from
Oct 6, 2023

Conversation

armiol
Copy link
Contributor

@armiol armiol commented Oct 6, 2023

Prior to 1.9.0 release, all Topics that were detected as "stale" (meaning there was no active subscription for a topic), were forcefully removed from Firebase RDB by deleting their corresponding nodes.

In 1.9.0, this behaviour was changed, and such a forceful removal became no longer the case.

This PR addresses the issue, as it turns out, there are no other convenient means to clear outdated Firebase nodes.

Also, due to a critical vulnerability in protobuf-js, its parent NPM dependency firebase was updated to the latest available 9.x release. We don't use the latest 10.x branch of NPM firebase artifact, as it may not be fully compatible with our library code in spine-web 1.9.0.

The library version is set to 1.9.1.

@armiol armiol self-assigned this Oct 6, 2023
@armiol armiol requested a review from dmitrykuzmin October 6, 2023 12:31
@armiol
Copy link
Contributor Author

armiol commented Oct 6, 2023

@dmitrykuzmin PTAL.

Copy link
Contributor

@dmitrykuzmin dmitrykuzmin left a comment

Choose a reason for hiding this comment

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

LGTM.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #205 (4b75cec) into v1 (a55fd2d) will decrease coverage by 0.25%.
Report is 1 commits behind head on v1.
The diff coverage is 0.00%.

Additional details and impacted files
@@             Coverage Diff              @@
##                 v1     #205      +/-   ##
============================================
- Coverage     62.13%   61.89%   -0.25%     
  Complexity      215      215              
============================================
  Files            96       96              
  Lines          2773     2758      -15     
  Branches         48       48              
============================================
- Hits           1723     1707      -16     
- Misses         1039     1040       +1     
  Partials         11       11              

@armiol armiol merged commit 6b24f1f into v1 Oct 6, 2023
5 of 6 checks passed
@armiol armiol deleted the address-stale-subscription-cancellation branch October 6, 2023 12:41
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.

2 participants