Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: migrate route info to expiring table #1079

Closed
wants to merge 1 commit into from
Closed

Conversation

jrconlin
Copy link
Member

Closes: #1051

@codecov-io
Copy link

Codecov Report

Merging #1079 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1079      +/-   ##
==========================================
+ Coverage   99.71%   99.74%   +0.03%     
==========================================
  Files          58       58              
  Lines        9131     9441     +310     
==========================================
+ Hits         9105     9417     +312     
+ Misses         26       24       -2
Impacted Files Coverage Δ
autopush/tests/test_main.py 100% <100%> (ø) ⬆️
autopush/config.py 100% <100%> (ø) ⬆️
autopush/tests/test_db.py 100% <100%> (ø) ⬆️
autopush/main_argparse.py 100% <100%> (ø) ⬆️
autopush/db.py 100% <100%> (+0.56%) ⬆️
autopush/tests/test_router.py 100% <0%> (ø) ⬆️
autopush/tests/test_integration.py 100% <0%> (ø) ⬆️
autopush/router/apnsrouter.py 100% <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 7289761...989138f. Read the comment docs.

Copy link
Member

@pjenvey pjenvey left a comment

Choose a reason for hiding this comment

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

I'm a bit confused on the last_connect changes. I should probably clarify the migration plans in my head first.

When do we plan to enable a migrate_tablename value, during the December deploy or possibly later? How long until we drop the old router table?

write_throughput=5):
# type: (str, int, int) -> Table
write_throughput=5, expires=False,
migrate_tablename=None):
Copy link
Member

Choose a reason for hiding this comment

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

migrate_tablename isn't used

# type: (Callable[[str, int, int], Table], str, int, int) -> Table
def _make_table(table_func, tablename, read_throughput, write_throughput,
expires=True):
# type: (Callable[[str, int, int, bool], Table], str, int, int, bool) -> Table # noqa
Copy link
Member

@pjenvey pjenvey Nov 15, 2017

Choose a reason for hiding this comment

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

was this # noqa intended here (is it doing something for mypy? isn't it just for flake8 which ignores this comment?)

tempted to kill this func entirely since it's only used once, but maybe we'll want to use it for the new message table later. we could also assume table_func takes kwargs (they do) and make it pass through **kwargs to it

@jrconlin
Copy link
Member Author

jrconlin commented Dec 7, 2017

Closing this PR due to age and OBE.

@jrconlin jrconlin closed this Dec 7, 2017
@jrconlin jrconlin deleted the feat/1051.3 branch April 16, 2018 15:35
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