-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
type: bugsomething isn't workingsomething isn't workingtype: discussionIssue that can be resolved with discussionIssue that can be resolved with discussion
Description
It'd be quite annoying to open each issue for each of these dot points, so instead of doing so, I've created this issue which is comprised of all of the problems which I have found currently with staff-api.
For each dot point, only one reference example is included, please fix all other existing similar problems
Style
- Prefer
unlessoverif !(expression), example
Ameba did not run here probably due to it not going into the deeper macro context
Refactor
Security
Optimisation
- User find_or_create instead of this
Mass Assignment
Prevent mass assignment of fields like id, and implement direct deserialisation, i.e. create_from_json
examples
For this example, I'm not sure why we are serialising credentials here though
Double serialisation
examples
#as_json for selective serialisation
Implement #as_json or expand [Clear JSONDeserialise model to accept annotation as macro arg in
examples
Metadata
Metadata
Labels
type: bugsomething isn't workingsomething isn't workingtype: discussionIssue that can be resolved with discussionIssue that can be resolved with discussion