RaspberryPiFoundation / editor-api

Code Editor backend
https://editor.raspberrypi.org
GNU Affero General Public License v3.0
23 stars 5 forks source link

Remove hardcoded user_ids and org_ids from users.json #353

Closed create-issue-branch[bot] closed 3 months ago

create-issue-branch[bot] commented 3 months ago

Now that we're using stubbing in the tests instead of this users.json fixture file, the only remaining uses of it were for the "bypass OAuth" mode. Also, since we're now managing user roles within editor-api (instead of in the user info API), it's a lot less obvious the users in the fixture file are actually useful even for the "bypass OAuth" mode. I think it makes the code clearer to remove the fixture file and hard-code some user data for the "bypass OAuth" mode.

Closes #308