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: Error when saving a deleted document #1806

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #1787

Description

Error when saving a deleted document, instead of doing nothing.

Previous behaviour documented in the commit history.

@AndrewSisley AndrewSisley added bug Something isn't working area/collections Related to the collections system action/no-benchmark Skips the action that runs the benchmark. labels Aug 21, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.7 milestone Aug 21, 2023
@AndrewSisley AndrewSisley requested a review from a team August 21, 2023 19:55
@AndrewSisley AndrewSisley self-assigned this Aug 21, 2023
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

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

Comparison is base (0e213a5) 75.70% compared to head (03f9a81) 75.76%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1806      +/-   ##
===========================================
+ Coverage    75.70%   75.76%   +0.05%     
===========================================
  Files          209      209              
  Lines        22213    22215       +2     
===========================================
+ Hits         16816    16829      +13     
+ Misses        4231     4222       -9     
+ Partials      1166     1164       -2     
Flag Coverage Δ
all-tests 75.76% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
db/collection.go 72.23% <100.00%> (+0.36%) ⬆️

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley AndrewSisley merged commit 26570ac into sourcenetwork:develop Aug 22, 2023
12 checks passed
@AndrewSisley AndrewSisley deleted the 1787-save-deleted branch August 22, 2023 15:04
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
## Relevant issue(s)

Resolves sourcenetwork#1787

## Description

Error when saving a deleted document, instead of doing nothing.

Previous behaviour documented in the commit history.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/collections Related to the collections system bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collection.Save does nothing if the doc was deleted
2 participants