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

fix(firebase): improve error handling #8976

Merged
merged 3 commits into from
Jul 26, 2023
Merged

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Jul 26, 2023

Auditing firebase again for Redwood's v6 release, it was failing and I forgot why. Referring back to #8305 reminded me that the versions of firebase-admin between the framework and a user's project need to be the same. One of the ways they get out of sync is with renovate. I don't want to read from the firebase api package during the firebase setup command—plus the versions can get out of sync in other ways—so for now, may as well save everyone some time by making the error more explicit:

image

This coupling really isn't ideal at all since any time we bump the version of firebase-admin in the framework and release a new versoin, users have to bump it in their projects too. I'm not sure what a better way is yet.

I've also upgraded the version of firebase (the package used on the web side) that the setup command installs to v10 since it worked locally.

@jtoar jtoar added the release:fix This PR is a fix label Jul 26, 2023
@jtoar jtoar added this to the v6.0.0 milestone Jul 26, 2023
@jtoar jtoar merged commit 257919e into main Jul 26, 2023
28 checks passed
@jtoar jtoar deleted the ds-firebase/improve-error-handling branch July 26, 2023 23:11
jtoar added a commit that referenced this pull request Jul 27, 2023
Auditing firebase again for Redwood's v6 release, it was failing and I
forgot why. Referring back to
#8305 reminded me that the
versions of `firebase-admin` between the framework and a user's project
need to be the same. One of the ways they get out of sync is with
renovate. I don't want to read from the firebase api package during the
firebase setup command—plus the versions can get out of sync in other
ways—so for now, may as well save everyone some time by making the error
more explicit:

<img width="2012" alt="image"
src="https://github.com/redwoodjs/redwood/assets/32992335/f1090965-5199-42d5-8831-3978e9a68050">

This coupling really isn't ideal at all since any time we bump the
version of `firebase-admin` in the framework and release a new versoin,
users have to bump it in their projects too. I'm not sure what a better
way is yet.

I've also upgraded the version of `firebase` (the package used on the
web side) that the setup command installs to v10 since it worked
locally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant