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

docs: Update Firebase Security Rules #116

Merged
merged 8 commits into from
Mar 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs/deployments/firebase.mdx
Co-authored-by: Anna Murphy <35873035+anna-murphy@users.noreply.github.com>
RobertGemmaJr and anna-murphy authored Mar 18, 2024
commit 4614fc7bd45da30d9ab1bd985a7ae10198018eab
8 changes: 5 additions & 3 deletions docs/deployments/firebase.mdx
Original file line number Diff line number Diff line change
@@ -249,10 +249,12 @@ Firestore rules define every valid path for data in your project. Attempting to

1. Navigate to your Firestore Database in the [Firebase console](https://console.firebase.google.com/)
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if this is something that makes sense to do with a script? Like creating the collection and registering participants sounds fickle, and being able to automate that might be useful?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah that's a good idea, we have a CLI script for downloading data and this would be a neat addition to it. Most folks use Prolific at this point though so it won't be very high priority

2. Click "Start collection"
3. Enter `registered_studies` for the collection id and click "next"
3. When asked for a collection id, enter `registered_studies`, and click "next"
4. Enter the id of your study for the document id
5. Add a field named `registered_participants` with the type "array"
6. Add the id of each study participant as a string inside the array
5. Click "Add Field".
6. Enter `registered_participants` as the field name, and set the type "array"
7. Add the id of each study participant as a string to the array


<div style={{ textAlign: "center" }}>
<img