aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models/form.py (follow)
Commit message (Collapse)AuthorAgeLines
* Run ruff on codeHEADmainGravatar Joe Banks2025-08-08-1/+5
|
* Add submission_precheck to public fields listGravatar Joe Banks2025-08-08-6/+9
|
* Add webhook thread ID to form modelGravatar Joe Banks2025-05-31-0/+10
|
* Move unittest filtering to the Form.dict() functionGravatar Chris Lovering2024-07-09-7/+9
|
* Apply fixable lint settings with RuffGravatar Joe Banks2024-07-08-50/+48
|
* Fix ANN401 Linting FailuresGravatar Hassan Abouelela2022-07-20-1/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Fix Linting ErrorsGravatar Hassan Abouelela2022-02-05-1/+1
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Add Role Based Editors To FormsGravatar Hassan Abouelela2022-02-05-1/+2
| | | | | | Adds the ability to specify who can edit forms using discord roles. Signed-off-by: Hassan Abouelela <[email protected]>
* Add Role Based Authorized ReadersGravatar Hassan Abouelela2022-02-05-2/+10
| | | | | | | Adds a new property on forms to declare which roles are authorized to access form responses. Signed-off-by: Hassan Abouelela <[email protected]>
* Model: makes Form.id case insensitiveGravatar Matteo Bertucci2021-12-26-2/+2
| | | | Note that it will make any existing form with an upper case letter impossible to access until its ID is changed, which shouldn't be the case in production according to @HassanAbouelela
* Add back removed parenthesisGravatar ks1292021-03-16-1/+1
|
* Split if statement to multiple lines to avoid noqaGravatar ks1292021-03-16-1/+4
|
* Split public fields constant to multiple linesGravatar ks1292021-03-16-1/+9
|
* 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
|/
* 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]>
* 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-0/+4
|\ | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]> # Conflicts: # backend/routes/forms/submit.py
| * Make model changesGravatar Joe Banks2020-12-16-0/+4
| |
* | 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]>
* | 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]>
* minor refactoringsGravatar decorator-factory2020-12-15-2/+2
|
* fix various type annotation issuesGravatar decorator-factory2020-12-15-4/+4
|
* 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
|
* Add name and description fields to Form modelGravatar ks1292020-12-10-0/+2
|
* Fix form features validation and allow passing ID as id not _idGravatar ks1292020-12-02-1/+5
|
* Fix Question circular import and use cls instead self for validatorsGravatar ks1292020-12-02-2/+2
|
* Ignore too long line for if statementGravatar ks1292020-12-01-4/+1
|
* Fix lintingGravatar ks1292020-12-01-2/+2
|
* Add validating emails collecting loginGravatar ks1292020-12-01-0/+6
|
* Use plain string for form model idGravatar ks1292020-12-01-2/+1
|
* Create form object modelGravatar ks1292020-11-30-0/+25