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

Add DisableGC option to document #644

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Add DisableGC option to document #644

merged 1 commit into from
Sep 15, 2023

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Sep 14, 2023

What this PR does / why we need it?

Add DisableGC option to document

Recently we have implemented multi-user undo/redo feature and added
inverse operation for Text.edit. While implementing, we noticed that
the inverse operation accessed the removed node by GC. To address this
issue, we've added the disableGC option to skip GC temporarily.

Any background context you want to provide?

What are the relevant tickets?

Related to #635

Checklist

  • Added relevant tests or not required
  • Didn't break anything

Recently we have implemented multi-user undo/redo feature and added
inverse operation for Text.edit. While implementing, we noticed that
the inverse operation accessed the removed node by GC. To address this
issue, we've added the disableGC option to skip GC temporarily.
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.04% 🎉

Comparison is base (1594345) 88.83% compared to head (f9c4da3) 88.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #644      +/-   ##
==========================================
+ Coverage   88.83%   88.88%   +0.04%     
==========================================
  Files          80       80              
  Lines        8942     8958      +16     
  Branches      823      825       +2     
==========================================
+ Hits         7944     7962      +18     
+ Misses        689      688       -1     
+ Partials      309      308       -1     
Files Changed Coverage Δ
src/document/document.ts 76.60% <100.00%> (+1.25%) ⬆️
test/integration/gc_test.ts 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hackerwins hackerwins merged commit 2a49cfc into main Sep 15, 2023
@hackerwins hackerwins deleted the disable-gc-option branch September 15, 2023 00:31
hyemmie pushed a commit that referenced this pull request Sep 18, 2023
Recently we have implemented multi-user undo/redo feature and added
inverse operation for Text.edit. While implementing, we noticed that
the inverse operation accessed the removed node by GC. To address this
issue, we've added the disableGC option to skip GC temporarily.
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