Skip to content

Fix: quickly adding and removing a page crashed the server#351

Merged
TrueBrain merged 1 commit intomainfrom
harden-git
Aug 1, 2022
Merged

Fix: quickly adding and removing a page crashed the server#351
TrueBrain merged 1 commit intomainfrom
harden-git

Conversation

@TrueBrain
Copy link
Copy Markdown
Owner

Because commits are queued, and if remotes are slow, they can
stack up. This makes it possible to add a page and remove one,
before it is committed. In result, when the commit is actually
being executed, it tried to add (or remove) a file that no longer
exists.

Solve this by simply ignoring these events, are they will be
fixed by the next commit in the queue. Sadly, it does mean we
lose a bit of history, but .. yeah, not much we can do about
that.

Because commits are queued, and if remotes are slow, they can
stack up. This makes it possible to add a page and remove one,
before it is committed. In result, when the commit is actually
being executed, it tried to add (or remove) a file that no longer
exists.

Solve this by simply ignoring these events, are they will be
fixed by the next commit in the queue. Sadly, it does mean we
lose a bit of history, but .. yeah, not much we can do about
that.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #351 (5034e92) into main (2630741) will decrease coverage by 0.17%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #351      +/-   ##
==========================================
- Coverage   80.53%   80.35%   -0.18%     
==========================================
  Files          51       51              
  Lines        2682     2688       +6     
  Branches      436      436              
==========================================
  Hits         2160     2160              
- Misses        427      433       +6     
  Partials       95       95              
Impacted Files Coverage Δ
truewiki/storage/git.py 32.17% <0.00%> (-1.78%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2630741...5034e92. Read the comment docs.

@TrueBrain TrueBrain merged commit f65f52a into main Aug 1, 2022
@TrueBrain TrueBrain deleted the harden-git branch August 1, 2022 13: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