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: Do not commit if errors have been returned #1390

Merged
merged 2 commits into from
Apr 24, 2023

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #1382

Description

Does not commit if errors have been returned. This allowed changes to be persisted on error.

Note: First commit documents the error, second commit fixes it.

@AndrewSisley AndrewSisley added bug Something isn't working area/query Related to the query component action/no-benchmark Skips the action that runs the benchmark. labels Apr 21, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.5.1 milestone Apr 21, 2023
@AndrewSisley AndrewSisley requested a review from a team April 21, 2023 20:20
@AndrewSisley AndrewSisley self-assigned this Apr 21, 2023
Copy link
Member

@shahzadlone shahzadlone 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
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!

@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Merging #1390 (3118d36) into develop (670cca8) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1390      +/-   ##
===========================================
+ Coverage    70.56%   70.66%   +0.09%     
===========================================
  Files          184      184              
  Lines        17836    17838       +2     
===========================================
+ Hits         12586    12605      +19     
+ Misses        4293     4281      -12     
+ Partials       957      952       -5     
Impacted Files Coverage Δ
db/txn_db.go 51.82% <100.00%> (+0.59%) ⬆️

... and 4 files with indirect coverage changes

@AndrewSisley AndrewSisley merged commit 2380ec9 into sourcenetwork:develop Apr 24, 2023
12 checks passed
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
* Add test for create with non-existant field

* Do not commit if errors have been returned
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/query Related to the query component bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Odd behavior on document creation with extra fields
3 participants