Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Drop sent_transactions #4244

Merged
merged 2 commits into from
Dec 4, 2018
Merged

Conversation

aaronraimist
Copy link
Contributor

Fixes #2930 (maybe, I have no idea what I'm doing 😅)

Signed-off-by: Aaron Raimist <aaron@raim.ist>
Signed-off-by: Aaron Raimist <aaron@raim.ist>
@codecov-io
Copy link

codecov-io commented Dec 2, 2018

Codecov Report

Merging #4244 into develop will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4244      +/-   ##
===========================================
- Coverage    73.55%   73.54%   -0.01%     
===========================================
  Files          299      298       -1     
  Lines        29806    29796      -10     
  Branches      4872     4871       -1     
===========================================
- Hits         21923    21913      -10     
+ Misses        6456     6453       -3     
- Partials      1427     1430       +3
Impacted Files Coverage Δ
synapse/storage/prepare_database.py 74.67% <100%> (ø) ⬆️
synapse/util/file_consumer.py 80.7% <0%> (-1.76%) ⬇️
synapse/handlers/search.py 81.25% <0%> (ø) ⬆️
synapse/handlers/federation.py 61.72% <0%> (ø) ⬆️

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 7039ece...44dc4c3. Read the comment docs.

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

Yup so this lgtm. I've added a few notes below for future reference but none of them are big enough concerns for me to hold this back.

@@ -25,7 +25,7 @@

# Remember to update this number every time a change is made to database
# schema files, so the users will be informed on server restarts.
SCHEMA_VERSION = 52
SCHEMA_VERSION = 53
Copy link
Member

Choose a reason for hiding this comment

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

It's not always necessary to bump this - you can just keep adding more delta files into the current delta directory.

@@ -1,4 +1,4 @@
/* Copyright 2015, 2016 OpenMarket Ltd
/* Copyright 2018 New Vector Ltd
Copy link
Member

Choose a reason for hiding this comment

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

New Vector didn't write it, so this isn't really true.

You wrote it (all six words of it), so it's copyright yourself (with a license for us to use it via the DCO), either implicitly or explicitly. So either: Copyright 2018 Aaron Raimist, or just omit it.

DROP TABLE IF EXISTS sent_transactions;
Copy link
Member

Choose a reason for hiding this comment

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

It would be useful to have a comment here explaining why this is a useful thing to do and some of the history

@richvdh
Copy link
Member

richvdh commented Dec 4, 2018

(thanks!)

@richvdh richvdh merged commit f144c0a into matrix-org:develop Dec 4, 2018
@aaronraimist aaronraimist deleted the drop-sent-txt branch March 13, 2019 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants