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

[Coin Fmk] Batcher moving to Network #6819

Merged
merged 4 commits into from
May 22, 2024

Conversation

sprohaszka-ledger
Copy link
Contributor

@sprohaszka-ledger sprohaszka-ledger commented May 7, 2024

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

📝 Description

Move Batcher from coin-framework to live-network.
Might need to consider to expands this concept.

Also propose a new network function to get rid of Axios type (this is a good practice to partition types of external libraries). This method is compatible with the old one.

OLD implementation

import network from `@ledgerhq/live-network/network`

NEW implementation

import network from `@ledgerhq/live-network`

❓ Context

  • JIRA or GitHub link:

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 4:41pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 4:41pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 4:41pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 4:41pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview May 21, 2024 4:41pm

lvndry
lvndry previously approved these changes May 15, 2024
Copy link
Contributor

@lvndry lvndry left a comment

Choose a reason for hiding this comment

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

Nice work 👏🏿

}

response = await retry(() => axios(request), {
maxRetry: getEnv("GET_CALLS_RETRY"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it'd make sense to also have maxRetry this in LiveNetworkRequest ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What bothering me, is that this is not part of the live-network package.
I think we should do, but maybe with a small refacto.

Signed-off-by: Stéphane Prohaszka <stephane.prohaszka@ledger.fr>
Signed-off-by: Stéphane Prohaszka <stephane.prohaszka@ledger.fr>
Signed-off-by: Stéphane Prohaszka <stephane.prohaszka@ledger.fr>
Signed-off-by: Stéphane Prohaszka <stephane.prohaszka@ledger.fr>
@sprohaszka-ledger sprohaszka-ledger merged commit 326cae0 into develop May 22, 2024
55 of 60 checks passed
@sprohaszka-ledger sprohaszka-ledger deleted the support/coin-fmk-batcher branch May 22, 2024 08:22
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