wellcometrust / reach

Wellcome tool to parse references scraped from policy documents using machine learning
MIT License
26 stars 4 forks source link

New Contact Form view and associated code #545

Closed jdu closed 4 years ago

jdu commented 4 years ago

Description

. Adds new contact form view . Adds in new contact post route which creates GitHub issue for contact request . Adds a rate_limit decorator function to limit calls to the for that can be used in other sections

Other notable things:

. There is some new config associated with this, in deployment it will be configured with the wellcomedatalabs-cd uiser credentials to populate the issue. . There is rate-limiting for the GitHub API, so we've rate-limited the POST endpoint. . There is probably a fair bit more effort that should be done around XSRF . We should add a recaptcha at some point potentially or some alternative, we have XSRF and a honeypot hidden field, but should make additional effort to protect against bots

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Manually tested in local development env.

Checklist: