aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Add Role Based Authorized ReadersGravatar Hassan Abouelela2022-02-05-14/+73
| | | | | | | Adds a new property on forms to declare which roles are authorized to access form responses. Signed-off-by: Hassan Abouelela <[email protected]>
* Overhaul Scope SystemGravatar Hassan Abouelela2022-02-05-60/+246
| | | | | | | Adds discord role support to the pre-existing scopes system to power more complex access permissions. Signed-off-by: Hassan Abouelela <[email protected]>
* Add Helper Functions For Managing RolesGravatar Hassan Abouelela2022-01-22-9/+130
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Merge pull request #132 from python-discord/anon-webhooksGravatar Hassan Abouelela2022-01-21-1/+5
|\
| * Don't include user mention for anonymous form submissionsGravatar Chris Lovering2022-01-21-1/+5
|/ | | | | | We currently use WEBHOOK_ENABLED to determine whether user data should be stored to the db. However, when webhooking a form submission this config is ignored, and the user mention is always included if available. This means that if a user login in using another form, and then submits an anonymous form with the same session, their name will be included in the webhook.
* Merge pull request #126 from Akarys42/case-insensitive-idsGravatar Hassan Abouelela2021-12-26-11/+8
|\ | | | | Model: makes Form.id case insensitive
| * Model: makes Form.id case insensitiveGravatar Matteo Bertucci2021-12-26-11/+8
|/ | | | 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
* Merge pull request #120 from python-discord/jb3/store-correct-ipGravatar Joe Banks2021-12-25-1/+5
|\
| * Hash Cf-Connecting-IP if given, else remote hostGravatar Joe Banks2021-12-25-1/+5
|/
* Merge pull request #104 from python-discord/Pin-platform-in-DockerfileGravatar Johannes Christ2021-09-04-1/+1
|\ | | | | Pin platform in Dockerfile
| * Pin platform in DockerfileGravatar Chris Lovering2021-09-04-1/+1
|/ | | | | | Some of our deps don't have wheels for atm processors. With Mac's M1 chips becomming more common, we should make it easier for those users to build our environments.
* Update feature.ymlGravatar Joe Banks2021-08-29-2/+2
|
* Update bug-report.ymlGravatar Joe Banks2021-08-29-8/+8
|
* Update bug-report.ymlGravatar Joe Banks2021-08-29-4/+4
|
* Merge pull request #100 from python-discord/notion-demigrationGravatar Hassan Abouelela2021-07-21-37/+89
|\ | | | | Adds Contributing Information
| * Adds Contributing FileGravatar Hassan Abouelela2021-07-21-0/+5
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Updates README With Notion LinksGravatar Hassan Abouelela2021-07-21-34/+3
| | | | | | | | | | | | Updates the readme to link to the setup process. Signed-off-by: Hassan Abouelela <[email protected]>
| * Updates Issue TemplatesGravatar Hassan Abouelela2021-07-21-3/+81
|/ | | | | | | Creates templates for bug reports, and feature requests, and updates the template config. Signed-off-by: Hassan Abouelela <[email protected]>
* Uses Backend URL In EmbedGravatar Hassan Abouelela2021-07-06-1/+1
| | | | | | | Temporarily switches the URL in discord embeds from the frontend, to the backend, to allow for easier viewing until the frontend is ready. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge pull request #92 from python-discord/unittest_failuresGravatar Hassan Abouelela2021-06-20-19/+124
|\ | | | | Allow Unittest Failures
| * Updates Unittest Filter To Match New ModelGravatar Hassan Abouelela2021-06-19-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Verifies Unittest Error ResponsesGravatar Hassan Abouelela2021-06-03-1/+14
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Handles Code Questions With No TestsGravatar Hassan Abouelela2021-06-03-1/+13
| | | | | | | | | | | | Adds a check to handle code questions with no test suites. Signed-off-by: Hassan Abouelela <[email protected]>
| * Clarify Validator SemanticsGravatar Hassan Abouelela2021-06-03-1/+1
| | | | | | | | | | Co-authored-by: Chris <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
| * Adds Missing DocstringsGravatar Hassan Abouelela2021-06-02-0/+3
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * Documents Return Code Gravatar Hassan Abouelela2021-06-02-0/+1
| | | | | | | | | | Adds a comment which explains when a certain return_code is used. Co-authored-by: Joe Banks <[email protected]>
| * Uses 422 For Failed Tests Gravatar Hassan Abouelela2021-06-02-1/+1
| | | | | | | | | | Uses 422 instead of 403 to indicate a test has failed. Co-authored-by: Joe Banks <[email protected]>
| * Reports All Unittest Failure ReasonsGravatar Hassan Abouelela2021-06-02-2/+9
| | | | | | | | | | | | Records the reason of failure for non-zero exit codes. Signed-off-by: Hassan Abouelela <[email protected]>
| * Records Failed UnittestsGravatar Hassan Abouelela2021-06-02-9/+49
| | | | | | | | | | | | | | Adds logic for saving submissions of failed unittests. Updates schema docs. Signed-off-by: Hassan Abouelela <[email protected]>
| * Adds Code Question ModelGravatar Hassan Abouelela2021-06-02-7/+36
| | | | | | | | | | | | | | Adds an explicit model for questions of type `code`, to allow more complex parsing. Updates schema docs. Signed-off-by: Hassan Abouelela <[email protected]>
* | Merge pull request #90 from python-discord/auth-formGravatar Hassan Abouelela2021-06-20-5/+37
|\ \ | | | | | | Empty Authorization Form
| * | Adds An Empty Form For AuthorizationGravatar Hassan Abouelela2021-05-17-5/+37
| | | | | | | | | | | | | | | | | | | | | Returns a form with no questions, if the server is not running in production, and no other forms are found, to aid in setting up. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Handles Null WebhooksGravatar Hassan Abouelela2021-06-04-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | The form model specifies webhook as nullable, but the validator code does not properly handle them. This PR adds logic to handle that scenario. Signed-off-by: Hassan Abouelela <[email protected]>
* | | Reverts "Validates Form Patch Request"Gravatar Hassan Abouelela2021-06-03-2/+6
| |/ |/| | | | | | | | | | | Reverts the changes made in 4f28ae85 because they made it impossible to send a partial patch request. Changes to a simpler try/except instead. Signed-off-by: Hassan Abouelela <[email protected]>
* | Set Form Viewing URLGravatar Hassan Abouelela2021-05-30-1/+1
| | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | Validates Form Patch RequestGravatar Hassan Abouelela2021-05-30-1/+3
|/ | | | | | Makes sure patch requests send a validated request. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge pull request #89 from python-discord/admin_endpointGravatar Hassan Abouelela2021-05-17-8/+35
|\ | | | | Adds A Dev Only Endpoint For Adding Admins
| * Adds A Dev Only Endpoint For Adding AdminsGravatar Hassan Abouelela2021-05-15-8/+35
|/ | | | | | | Copies the admin adding endpoint into an unprotected endpoint that is only registered in non-production builds. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge pull request #80 from python-discord/dependabot/pip/spectree-0.4.2Gravatar ks1292021-04-16-5/+5
|\ | | | | Bump spectree from 0.4.1 to 0.4.2
| * Bump spectree from 0.4.1 to 0.4.2Gravatar dependabot[bot]2021-04-16-5/+5
|/ | | | | | | Bumps [spectree](https://github.com/0b01001001/spectree) from 0.4.1 to 0.4.2. - [Release notes](https://github.com/0b01001001/spectree/releases) - [Commits](https://github.com/0b01001001/spectree/compare/v0.4.1...v0.4.2) Signed-off-by: dependabot[bot] <[email protected]>
* Merge pull request #81 from python-discord/dependabot/pip/motor-2.4.0Gravatar ks1292021-04-16-5/+8
|\ | | | | Bump motor from 2.3.1 to 2.4.0
| * Bump motor from 2.3.1 to 2.4.0Gravatar dependabot[bot]2021-04-16-5/+8
|/ | | | | | | | Bumps [motor](https://github.com/mongodb/motor) from 2.3.1 to 2.4.0. - [Release notes](https://github.com/mongodb/motor/releases) - [Changelog](https://github.com/mongodb/motor/blob/master/doc/changelog.rst) - [Commits](https://github.com/mongodb/motor/compare/2.3.1...2.4.0) Signed-off-by: dependabot[bot] <[email protected]>
* Merge pull request #82 from python-discord/dependabot/pip/flake8-3.9.1Gravatar ks1292021-04-16-14/+14
|\ | | | | Bump flake8 from 3.8.4 to 3.9.1
| * Bump flake8 from 3.8.4 to 3.9.1Gravatar dependabot[bot]2021-04-16-14/+14
|/ | | | | | | Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.4 to 3.9.1. - [Release notes](https://gitlab.com/pycqa/flake8/tags) - [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.4...3.9.1) Signed-off-by: dependabot[bot] <[email protected]>
* Update Docker credential secretsGravatar Joe Banks2021-04-05-2/+2
|
* Merge pull request #78 from python-discord/dependabot/pip/python-dotenv-0.17.0Gravatar Hassan Abouelela2021-04-04-6/+6
|\ | | | | Bump python-dotenv from 0.15.0 to 0.17.0
| * Bump python-dotenv from 0.15.0 to 0.17.0Gravatar dependabot[bot]2021-04-04-6/+6
|/ | | | | | | | Bumps [python-dotenv](https://github.com/theskumar/python-dotenv) from 0.15.0 to 0.17.0. - [Release notes](https://github.com/theskumar/python-dotenv/releases) - [Changelog](https://github.com/theskumar/python-dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/theskumar/python-dotenv/compare/v0.15.0...v0.17.0) Signed-off-by: dependabot[bot] <[email protected]>
* Merge pull request #75 from python-discord/dependabot/pip/gunicorn-20.1.0Gravatar Hassan Abouelela2021-04-04-8/+7
|\ | | | | Bump gunicorn from 20.0.4 to 20.1.0
| * Bump gunicorn from 20.0.4 to 20.1.0Gravatar dependabot[bot]2021-04-04-8/+7
|/ | | | | | | Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 20.0.4 to 20.1.0. - [Release notes](https://github.com/benoitc/gunicorn/releases) - [Commits](https://github.com/benoitc/gunicorn/compare/20.0.4...20.1.0) Signed-off-by: dependabot[bot] <[email protected]>
* Merge pull request #74 from python-discord/dependabot/pip/spectree-0.4.1Gravatar Hassan Abouelela2021-04-04-5/+5
|\ | | | | Bump spectree from 0.4.0 to 0.4.1