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: merge new vertices when drp is missing #460

Merged
merged 2 commits into from
Feb 19, 2025
Merged

Conversation

trungnotchung
Copy link
Member

@trungnotchung trungnotchung commented Feb 12, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

  • remove function mergeWithoutDrp
  • update logic when store drp state and acl state to make code more readable
  • check if the drp exists before apply operation and store/update drp state
  • update _checkWriterPermission because we still have the acl state even if the drp is missing

Related Issues and PRs

Added/updated tests?

  • Yes
  • No, because why: just merged two functions. current tests covered all the cases
  • I need help with writing tests

Additional Info

add instructions or screenshots on what you might think is relevant or instructions on how to manually test it

[optional] Do we need to perform any post-deployment tasks?

Copy link

github-actions bot commented Feb 12, 2025

Flamegraph.com report

flamegraph.pprof
See in flamegraph.com

Created by Flamegraph.com Github Action

@trungnotchung trungnotchung changed the title remove mergeWithoutDrp fix: remove mergeWithoutDrp Feb 12, 2025
@trungnotchung trungnotchung changed the title fix: remove mergeWithoutDrp fix: merge new vertices when drp is missing Feb 12, 2025
@trungnotchung trungnotchung marked this pull request as ready for review February 12, 2025 17:19
Copy link
Contributor

@winprn winprn left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@anhnd350309 anhnd350309 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@hoangquocvietuet hoangquocvietuet left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@JanLewDev JanLewDev left a comment

Choose a reason for hiding this comment

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

lgtm

@sfroment sfroment force-pushed the fix/merge-without-drp branch from d6bbb18 to 62cee3b Compare February 18, 2025 15:16
@sfroment sfroment force-pushed the fix/merge-without-drp branch from 62cee3b to aede814 Compare February 19, 2025 15:38
@sfroment sfroment merged commit 2c51957 into main Feb 19, 2025
14 checks passed
@sfroment sfroment deleted the fix/merge-without-drp branch February 28, 2025 13:20
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.

update ACL and ACL State when drp is missing
6 participants