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 how hashlog entries are handled during deletes #34

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

johncmerfeld
Copy link
Contributor

Update the behavior of lightbeam delete so that hashlog entries are only removed after a confirmed successful delete. Fixes a bug where the hash variable was used in a scope for which it was not defined.

Also alter instances where hash is used as a variable name. I don't think it's a good idea to use Python builtins as variable names in general, and in this particular case I think it may have contributed to this bug not being found -- to a code editor, hash is always defined, so there was no problem to highlight in the delete.py file

@johncmerfeld johncmerfeld added the bug Something isn't working label May 29, 2024
@johncmerfeld johncmerfeld requested a review from tomreitz May 29, 2024 20:16
@johncmerfeld johncmerfeld self-assigned this May 29, 2024
@tomreitz tomreitz merged commit 3579abf into main Jun 3, 2024
@tomreitz tomreitz deleted the fix/delete-hashlog branch June 3, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants