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

🚀 Remove redundant updates to modified_on #306

Merged
merged 5 commits into from
Jul 1, 2020
Merged

Conversation

rowanseymour
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 23, 2020

Codecov Report

Merging #306 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #306      +/-   ##
==========================================
- Coverage   53.22%   53.20%   -0.03%     
==========================================
  Files          99       99              
  Lines        8638     8625      -13     
==========================================
- Hits         4598     4589       -9     
+ Misses       3347     3345       -2     
+ Partials      693      691       -2     
Impacted Files Coverage Δ
hooks/contact_groups_changed.go 76.11% <ø> (+0.44%) ⬆️
web/contact/contact.go 70.80% <ø> (+0.17%) ⬆️

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 185fc09...9643d8f. Read the comment docs.

@@ -356,12 +356,6 @@ func handleModify(ctx context.Context, s *web.Server, r *http.Request) (interfac
return nil, http.StatusInternalServerError, errors.Wrapf(err, "error applying pre commit hooks")
}

// apply modified_by
err = models.UpdateContactModifiedBy(ctx, tx, modifiedContactIDs, request.UserID)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove modifiedContactIDs too above it is not used anymore

if err != nil {
return errors.Wrapf(err, "error updating contacts modified_on")
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

done via the contactModifiedHook

@rowanseymour rowanseymour requested a review from nicpottier July 1, 2020 17:16
@rowanseymour rowanseymour changed the title 🧪 Remove redundant updates to modified_on 🚀 Remove redundant updates to modified_on Jul 1, 2020
@rowanseymour rowanseymour merged commit 168a481 into master Jul 1, 2020
@rowanseymour rowanseymour deleted the less_modified_on branch July 1, 2020 17:57
rasoro pushed a commit to Ilhasoft/mailroom that referenced this pull request Mar 10, 2023
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.

3 participants