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

Followup on removing last chart price overrides #4506

Merged
merged 6 commits into from Jan 7, 2023

Conversation

jinchung
Copy link
Member

@jinchung jinchung commented Dec 30, 2022

Follow up on Fixes APP-301

@jinchung jinchung force-pushed the @jin/followup-last-chart-price branch from fe29023 to 4fbf335 Compare December 30, 2022 01:02
@jinchung jinchung force-pushed the @jin/remove-last-chart-price-override branch from 944a8d9 to 86ab846 Compare January 4, 2023 01:02
@jinchung jinchung marked this pull request as ready for review January 5, 2023 22:52
@linear
Copy link

linear bot commented Jan 5, 2023

APP-301 Remove the override of the last price in chart data

Commits can be read in order.

We had an override of the last price point in chart data to match it with the "current price" of an asset. However, sometimes the last price point we have is stale data, and it caused weird inconsistent issues with charts.

This PR removes that manual override and just uses the default chart data as is.

In the course of doing this PR, I noticed quite a few other params that were unused or unnecessary.

In order to test this PR, charts should behave as expected, and we should no longer see any stale price chart data or weird lines on charts.

src/components/value-chart/Chart.js Outdated Show resolved Hide resolved
fetchingCharts: false,
fetchingCharts2: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

🙃

@jinchung jinchung force-pushed the @jin/followup-last-chart-price branch from 4fbf335 to bef893a Compare January 6, 2023 16:39
Base automatically changed from @jin/remove-last-chart-price-override to develop January 7, 2023 01:54
The relevant hooks and components use chartType passed along in
params when necessary - they do not read the redux state for it.
This is just to help simplify as there is another
useChartData from the reanimated chart package.
@jinchung jinchung force-pushed the @jin/followup-last-chart-price branch from bef893a to bbdd3d5 Compare January 7, 2023 02:05
@jinchung jinchung merged commit efaab9b into develop Jan 7, 2023
@jinchung jinchung deleted the @jin/followup-last-chart-price branch January 7, 2023 04:58
estrattonbailey added a commit that referenced this pull request Jan 17, 2023
…cations-onboarding-improvements

* origin/develop: (102 commits)
  Ledger: Match "Looking for devices" screen to spec + animated device image (#4222)
  feat: add logger.log, send log/warn to Sentry (#4544)
  Remove generic asset fallback (#4527)
  Remove optimism explorer redux (#4524)
  Fix L2 transaction badges in transactions history (#4539)
  Change copy from View Contact to Edit Contact to avoid confusion (#4538)
  Fix ENS transactions bug, missing network parameter in RainbowTransaction (#4543)
  Update original asset address (#4540)
  Update remote config (#4535)
  rc v1.8.6 fixes (#4523)
  ledger: init ledgerSigner + logger context (#4515)
  load the correct provider (#4536)
  audit: ignore debug (#4531)
  feat: add walletconnect debug context, use new logger (#4514)
  ledger: holdToAuthorizeButton (#4516)
  feat: align approval sheet navigation params (#4517)
  chore: remove com.polidea.reactnativeble.BlePackage import (#4518)
  Remove transaction details playground from dev menu (#4519)
  Add scroll enabled back and disable status icon for short phones (#4521)
  Followup on removing last chart price overrides (#4506)
  ...
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.

None yet

3 participants