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

chore: Update providers list #28

Open
wants to merge 1 commit into
base: fix/old-invoices-names-with-invalid-amount
Choose a base branch
from

Conversation

taratatach
Copy link
Collaborator

Fixes #18

When updating providers, we need to keep in mind that existing
accounts will keep the providerId that was selected when the user
filled in the connection form.

This means that while we want to keep displaying providers in
alphabetical order, we also need to keep the existing match between
provider and provider id.
The yarn providers script is updated to make sure fetching the list
of providers from https://coopcycle.org does not override existing
providers but updates them instead and adds new providers starting
with the next available provider id.

  When updating providers, we need to keep in mind that existing
  accounts will keep the `providerId` that was selected when the user
  filled in the connection form.

  This means that while we want to keep displaying providers in
  alphabetical order, we also need to keep the existing match between
  provider and provider id.
  The `yarn providers` script is updated to make sure fetching the list
  of providers from https://coopcycle.org does not override existing
  providers but updates them instead and adds new providers starting
  with the next available provider id.
@taratatach taratatach requested a review from LucsT January 2, 2021 18:51
@taratatach taratatach self-assigned this Jan 2, 2021
Copy link
Contributor

@LucsT LucsT left a comment

Choose a reason for hiding this comment

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

Nice tool to update providers.

Seems OK to me

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

2 participants