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: Mark docs as deleted when querying in delete mut #2298

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #1846

Description

Marks docs as deleted when querying _deleted in delete mutation.

We could refetch them like we do in update queries, but that seems unnecessary for deletes (updates needs to watch out for impact on aggregates, relations, etc)

@AndrewSisley AndrewSisley added bug Something isn't working area/query Related to the query component labels Feb 8, 2024
@AndrewSisley AndrewSisley added this to the DefraDB v0.10 milestone Feb 8, 2024
@AndrewSisley AndrewSisley requested a review from a team February 8, 2024 18:42
@AndrewSisley AndrewSisley self-assigned this Feb 8, 2024
@AndrewSisley AndrewSisley changed the title fix: Mark docs as deleted when querying _deleted in delete mutation fix: Mark docs as deleted when querying in delete mut Feb 8, 2024
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (89efbc4) 73.85% compared to head (38a8748) 73.94%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2298      +/-   ##
===========================================
+ Coverage    73.85%   73.94%   +0.09%     
===========================================
  Files          256      256              
  Lines        25587    25590       +3     
===========================================
+ Hits         18896    18920      +24     
+ Misses        5369     5353      -16     
+ Partials      1322     1317       -5     
Flag Coverage Δ
all-tests 73.94% <100.00%> (+0.09%) ⬆️

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

Files Coverage Δ
planner/delete.go 74.67% <100.00%> (+1.06%) ⬆️

... and 14 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 89efbc4...38a8748. Read the comment docs.

Copy link
Member

@nasdf nasdf left a comment

Choose a reason for hiding this comment

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

Nice find!

@AndrewSisley AndrewSisley merged commit ea511f0 into sourcenetwork:develop Feb 8, 2024
31 of 34 checks passed
@AndrewSisley AndrewSisley deleted the 1846-del branch February 8, 2024 21:26
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 (Ops reviewed late)

shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
…2298)

## Relevant issue(s)

Resolves sourcenetwork#1846

## Description

Marks docs as deleted when querying _deleted in delete mutation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

_deleted field returns false for records in delete mutation
3 participants