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

[NotificationService] Change exchange rate stored format (group by pair) #2132

Conversation

jeanregisser
Copy link
Contributor

@jeanregisser jeanregisser commented Dec 9, 2019

Description

Follow up to #1945

Firebase RTDB querying capabilities are quite limited, once we query a specific time range using orderByChild, we can't then filter on a specific pair.
So here we workaround that problem by storing exchange rates under their pair.

Tested

Deployed on integration.

Before

Screenshot 2019-11-27 at 16 27 40

After

Screenshot 2019-12-09 at 17 04 15

Other changes

Speed up jest tests, similar to what's been done in #2005

Related issues

Backwards compatibility

No. I'm deleting existing stored exchange rates in firebase when deploying this.
This is safe to do at this point since there's no consumer of this data yet.

@codecov
Copy link

codecov bot commented Dec 9, 2019

Codecov Report

Merging #2132 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2132   +/-   ##
=======================================
  Coverage   74.88%   74.88%           
=======================================
  Files         281      281           
  Lines        7807     7807           
  Branches      686      686           
=======================================
  Hits         5846     5846           
  Misses       1845     1845           
  Partials      116      116
Flag Coverage Δ
#mobile 74.88% <ø> (ø) ⬆️

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 fee7500...640d066. Read the comment docs.

Copy link
Contributor

@annakaz annakaz left a comment

Choose a reason for hiding this comment

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

LGTM!

@jeanregisser jeanregisser added the automerge Have PR merge automatically when checks pass label Dec 10, 2019
@celo-ci-bot-user celo-ci-bot-user merged commit 74b7737 into master Dec 10, 2019
@celo-ci-bot-user celo-ci-bot-user deleted the jeanregisser/group-stored-exchange-rate-under-currency-pair branch December 10, 2019 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants