dscgt / recycling_website

Admin website for GT OSWM&R.
0 stars 0 forks source link

Implement testing / the Firebase dilemma #21

Open michaelyfan opened 3 years ago

michaelyfan commented 3 years ago

The app is currently connected to two Firebase apps at once. This is something that our Angular/Firebase dependency, AngularFire, doesn't really have a standardized/"official" way to do, so I've been using the community-suggested workaround here: https://github.com/angular/angularfire/issues/1026#issuecomment-387328730

But it causes some errors with testing, as well as some more high-level worries, see here: https://github.com/angular/angularfire/issues/2555

It works but may not be sustainable, since the solution smells janky. Will try to get AngularFire's attention first

michaelyfan commented 3 years ago

Potential solutions:

https://github.com/angular/angularfire/issues/1240#issuecomment-336603710 Though it seems this doesn't work according to comments

https://stackoverflow.com/questions/50473945/angular2firebase-multiple-instances-using-angular-6/50476192#50476192 This might be bingo "James Daniels" is the dude who regularly contributes to angularfire

michaelyfan commented 3 years ago

May be resolved by #23