adsabs / adsws

ADS web services
Other
2 stars 15 forks source link

feedback forms machinery #180

Closed ehenneken closed 3 years ago

ehenneken commented 4 years ago

Update of feedback/slack endpoint to deal with data submitted by the new BBB feedback forms. These submissions will only generate emails. From now on, in general, how feedback data will be processed depends on the origin parameter in the POST data. In this case, this parameter is supposed to have the value user_submission (defined in the config). The data in the POST payload will be used to fill in a template to generate the email body (using jinja2 templates, selected on the basis of the email subject). In the case of abstract submissions (new or corrected), the original JSON data from the form will be send along in the form of attached JSON files. The unittests have been augmented to check this new functionality.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.2%) to 83.928% when pulling ea8856a015256d8a63f6f74fc06ce765a7d0884e on ehenneken:feedback_forms into ddeea3bf412c9277c73366fabcaaba803d3adf80 on adsabs:master.