aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models (follow)
Commit message (Collapse)AuthorAgeLines
* Use value of enum member instead of member itselfGravatar ks1292021-03-16-3/+3
|
* Add discord_role to public fieldsGravatar ks1292021-03-16-1/+1
|
* Add missing "is" to error messageGravatar ks1292021-03-09-1/+1
| | | Co-authored-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into ks123/role-assigningGravatar ks1292021-01-23-1/+2
|\
| * Add an optional submitted_text field to forms to customize the response upon ↵Gravatar Jannes Jonkers2021-01-20-2/+2
| | | | | | | | submitting.
| * Add an optional response field to forms to customize the response upon ↵Gravatar Jannes Jonkers2021-01-20-1/+2
| | | | | | | | submitting.
* | Fix too long lineGravatar ks1292020-12-29-1/+3
| |
* | Add check for REQUIRES_LOGIN when ASSIGN_ROLE providedGravatar ks1292020-12-29-2/+6
| |
* | Add validator for Discord role field for formGravatar ks1292020-12-29-1/+11
| |
* | Add discord_role field to form and it's schemaGravatar ks1292020-12-29-0/+1
|/
* Add required field to question modelGravatar ks1292020-12-28-0/+1
|
* Dedents Webhook ObjectGravatar Hassan Abouelela2020-12-22-8/+2
| | | | | | | Removes the meta object, and moves the webhook object under the main form object to reduce nesting. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into big-int-fixGravatar Joe Banks2020-12-21-1/+75
|\
| * Merge branch 'main' into discord-webhookGravatar Hassan Abouelela2020-12-21-1/+0
| |\ | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # backend/routes/forms/submit.py
| * | Adds Missing AnnotationGravatar Hassan Abouelela2020-12-18-1/+1
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | Runs Initial Validation AsynchronouslyGravatar Hassan Abouelela2020-12-18-32/+55
| | | | | | | | | | | | | | | | | | | | | Moves the validation code of webhook urls to an async function that is called by the route, to avoid blocking code. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Sends Embed AsynchronouslyGravatar Hassan Abouelela2020-12-18-1/+1
| | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | Merge branch 'main' into discord-webhookGravatar Hassan Abouelela2020-12-17-3/+19
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # backend/routes/forms/submit.py
| * | | Makes Webhooks OptionalGravatar Hassan Abouelela2020-12-17-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a bug that would force you to do a dummy webhook object when creating a form. Fixes a bug that would force you to add an empty message for webhooks. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Merge branch 'main' into discord-webhookGravatar Hassan Abouelela2020-12-17-1/+14
| |\ \ \
| * | | | Adds Webhook OptionGravatar Hassan Abouelela2020-12-17-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds webhook option on form creation, and adds validation. Updates `SCHEMA.md`. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Remove validator importGravatar ks1292020-12-21-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
* | | | | Remove unnecessary validatorGravatar ks1292020-12-21-8/+0
| | | | | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
* | | | | Remove unnecessary comment about IDGravatar ks1292020-12-21-2/+0
| | | | | | | | | | | | | | | Co-authored-by: Joe Banks <[email protected]>
* | | | | Convert user IDs to string to avoid JS bad behavioursGravatar ks1292020-12-21-3/+13
| |_|_|/ |/| | |
* | | | Remove DNS blacklist field from antispam modelGravatar ks1292020-12-18-1/+0
| |_|/ |/| |
* | | Merge branch 'main' into docs/api-specGravatar ks1292020-12-17-1/+14
|\ \ \ | | |/ | |/|
| * | Update backend/models/form_response.pyGravatar Hassan Abouelela2020-12-17-1/+1
| | | | | | | | | Co-authored-by: ks129 <[email protected]>
| * | Fixes DB Timestamp on ReturnGravatar Hassan Abouelela2020-12-17-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | As pointed out by @ks129, fetching the responses would cause an error in the timestamp, as the validation was returning the current time at fetching, instead of the stored value. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Adds Timestamp FieldGravatar Hassan Abouelela2020-12-17-1/+7
| |/ | | | | | | | | | | Adds timestamp field to user form responses on generation. Signed-off-by: Hassan Abouelela <[email protected]>
* / Make model changesGravatar Joe Banks2020-12-16-3/+19
|/
* minor refactoringsGravatar decorator-factory2020-12-15-2/+2
|
* fix various type annotation issuesGravatar decorator-factory2020-12-15-9/+9
|
* Fix whitespace errorsGravatar Joe Banks2020-12-13-3/+3
|
* Fix dodgy indent and wrong field nameGravatar Joe Banks2020-12-13-2/+2
|
* Fix data sanitization methodGravatar Joe Banks2020-12-13-1/+15
|
* Simplify dict functionGravatar ks1292020-12-13-5/+1
|
* Add custom dict method in form to return sometimes only public fieldsGravatar ks1292020-12-13-0/+11
|
* Merge branch 'main' into ks123/form-name-descriptionGravatar Joe Banks2020-12-12-1/+57
|\
| * Remove some validators from models because they don't workGravatar ks1292020-12-09-28/+2
| |
| * Create model for form responseGravatar ks1292020-12-08-1/+38
| |
| * Add AntiSpam and DiscordUser models to __init__.pyGravatar ks1292020-12-08-1/+3
| |
| * Create DiscordUser Pydantic model for form responseGravatar ks1292020-12-08-0/+33
| |
| * Create Pydantic model for form response antispam dataGravatar ks1292020-12-07-0/+10
| |
* | Add name and description fields to Form modelGravatar ks1292020-12-10-0/+2
|/
* Fix question validatorGravatar ks1292020-12-02-8/+2
|
* Parse type and data in same validator and allow passing ID as id not _idGravatar ks1292020-12-02-8/+11
|
* Fix form features validation and allow passing ID as id not _idGravatar ks1292020-12-02-1/+5
|
* Use cls instead self for Question model validatorsGravatar ks1292020-12-02-4/+4
|
* Fix Question circular import and use cls instead self for validatorsGravatar ks1292020-12-02-2/+2
|