Code-Society-Lab / cursif-backend

A collaborative, scriptable and flexible note taking application.
https://codesociety.xyz/
GNU General Public License v3.0
8 stars 2 forks source link

Owner_Type mismatch with schema #24

Closed chrisdedman closed 8 months ago

chrisdedman commented 8 months ago

Since the last update of the schema, where we entered default owner_type for creating a new NoteBook, there was a bug when a user tried to create a new notebook. The schema has a capitalized User owner_type, but the validate_association() function had a lowercase user for checking owner_type validation.

chrisdedman commented 8 months ago

The intention was to have it down cased but it indeed might cause issues with graphql. Anyway, since organizations have been put aside I plan on removing owner_type soon.

no problem. as long as it is still in used, I needed this to be patch for testing the front-end :)/