Closed medwardson closed 3 months ago
@medwardson, it might be a good idea to wait before running the script to avoid any potential issues with the coaches' APK. I know that it shouldn't cause problems, but let's do that after the grading to avoid any potential crashes.
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
87.3% Coverage on New Code
0.0% Duplication on New Code
Update the
Meal
class to have auserId
to prevent issues when a different user logs in and our database stores multi-user info. This will allow us to callgetAllMeals()
and other meal queries with a injected parameters of userId, to only return meals relevant to the logged in user.I've ran a migration script on our Firebase user database to backfill all the meals to include the userId, and also for our posts. I'll run it again after merge. Here's the scripts I used:
$$\quad$$