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

WIP: Upgrade emberfire #354

Closed
wants to merge 58 commits into from
Closed

WIP: Upgrade emberfire #354

wants to merge 58 commits into from

Conversation

oskarrough
Copy link
Member

@oskarrough oskarrough commented Jul 19, 2019

Work in progress to upgrade emberfire from version 2 to 3. Using this PR to keep track of progress and what needs to be done.

Blocking

  • Fix login. There are errors in console to follow. Time to use ember simple auth instead?
  • Fix "init" bug in Emberfire (fix native js call to super FirebaseExtended/emberfire#582) - for now, I hardcode it in node_modules after yarn install to get it working. vim node_modules/emberfire/addons/services/firebase-app.ts replace line 28 with super.init(...arguments)

To test

Authentication

Torii hasn't been updated for years and Emberfire works easier with ember-simple-auth now

  • Replace torii with simple-auth
  • Create user should work
  • Replace our own authenticatedRoute mixin with that of simple auth
  • Google login
  • Facebook login
  • Email login
  • Logout
  • Test authenticated routes work
  • Make sure we use new session service from simple-auth, not torii. has to be injected
  • test all the linking stuff on /settings

Not tried yet

  • Writing/saving data

Also see

@oskarrough oskarrough self-assigned this Jul 20, 2019
@oskarrough
Copy link
Member Author

oskarrough commented Jul 21, 2019

Couldn't make timestamps work. Hardcoded it as {'.sv': 'timestamp'} for now and opened an issue on emberfire.

@oskarrough oskarrough changed the title WIP Upgrade emberfire Upgrade emberfire Jul 23, 2019
@oskarrough
Copy link
Member Author

Solution for counting items in a collection: https://github.com/firebase/functions-samples/tree/master/child-count. Hopefully we can find another way to do this like in v2, without needing an extra cloud function.

Solution for timestamp: FirebaseExtended/emberfire#589 (comment)

@4www
Copy link
Contributor

4www commented Oct 11, 2019

hej! Kind of lost track of this PR. Not sure where we're at... sry

@oskarrough
Copy link
Member Author

It's not easy… Have to take the time with a fresh database and verify that things are still being saved correctly. But there is a new Emberfire release candidate v4 yesterday to try out.

@oskarrough
Copy link
Member Author

oskarrough commented Oct 11, 2019

If you have energy, try to create a new user and radio and make that work. At the moment there is a firebase rules/permissions error. The user model isn't created after you sign in?

@4www 4www changed the title Upgrade emberfire WIP: Upgrade emberfire Aug 26, 2020
@oskarrough
Copy link
Member Author

This won't happen as we're migrating to https://github.com/radio4000/components

@oskarrough oskarrough closed this Oct 31, 2023
@4www
Copy link
Contributor

4www commented Oct 31, 2023

just wanted to leave a last comment here, for the lolz

@oskarrough
Copy link
Member Author

Haha. I couldn't get myself to delete the branch 🥲 Well, thank you Emberfire. We learned from you. Time to move on.

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.

2 participants