You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"a user can't create their own project with an ID that matches any of the unique starter code IDs"
Make sure projects can't be saved in the DB with the same identifier as a starter project
Checking project can have the same identifier with a different language
Combination of language and identifier is unique
So to clarify:
Projects can have the same identifier with a different language
identifier
locale
hello-world-example
en
hello-world-example
fr-FR
A user cannot create a project with the same identifier that is already in the DB (there should already be a check for this)
E.G user cannot have identifier hello-world-example
The combination of identifier and lang should be unique. Cannot have the same identifier with the same lang
This is not allowed
identifier
locale
hello-world-example
en
hello-world-example
en
The text was updated successfully, but these errors were encountered:
# What's Changed?
- Added `project` model validations to ensure only one user can own
projects with a given identifier and that RPF projects have a locale
- Slight `PhraseGenerator` refactor to ensure phrases generated are
always unique
- Ensure remix generates its own identifier and sets `locale` to `nil`
closes#143
---------
Co-authored-by: loiswells97 <loiswells97@users.noreply.github.com>
Co-authored-by: Lois Wells <88904316+loiswells97@users.noreply.github.com>
Co-authored-by: Lois Wells <lois.wells@raspberrypi.org>
So to clarify:
Projects can have the same identifier with a different language
A user cannot create a project with the same identifier that is already in the DB (there should already be a check for this)
E.G user cannot have identifier
hello-world-example
The combination of identifier and lang should be unique. Cannot have the same identifier with the same lang
This is not allowed
The text was updated successfully, but these errors were encountered: