Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for direct event form submission #405

Open
timparenti opened this issue Nov 10, 2019 · 4 comments
Open

Allow for direct event form submission #405

timparenti opened this issue Nov 10, 2019 · 4 comments

Comments

@timparenti
Copy link
Contributor

timparenti commented Nov 10, 2019

Rather than relying on ABTech/abtech.org using robobrowser to insert event requests into the form on Tracker, there ought to be some sort of API for Tracker, restricted appropriately, that Django can use on that end to effectively insert requests directly into Tracker's database.

Request from @DaAwesomeP

@DaAwesomeP
Copy link
Member

@reckert477 could we make this a decently high priority so I can overhaul abtech.org infrastructure over winter break? Basically we just want to be able to set the form target on abtech.org to go to a tracker API with proper access-origin headers and redirect-back-on-submit.

@tedgarb
Copy link
Contributor

tedgarb commented Nov 15, 2019

The correct solution to this is almost certainly to modify the ACL for events#create to allow anonymous requests, and just change the form's submission URL to be tracker/events, rather than spending the time and extra maintenance overhead of making an API

@timparenti
Copy link
Contributor Author

I think that's certainly the simplest approach. Only potential additional concern is that, currently, the public form sends an email confirmation to the submitter, so there ought to be some equivalent form of feedback in the new paradigm, though that could just be something akin to the "event created" page that is equally careful with the wording when the request comes through anonymously (and thus is very much pending).

@timparenti timparenti changed the title Create an API for event form submission Allow for direct event form submission Mar 22, 2020
@timparenti
Copy link
Contributor Author

Given the spam problems which have recently cropped up over on ABTech/abtech.org#106, this is taking on increased importance, especially so that @DaAwesomeP doesn't have to build an equivalent workaround into the new version of the website he is planning.

To be effective in combatting spam and limiting submissions to the campus community, the form would need to be authenticated, but could authorize any Andrew user. If repurposing events#create as suggested, the existing form should adapt its presentation as a "request form" to those not currently permitted to create events, and should simplify the inputs it presents accordingly.

@reckert477 Any chance you or others might get to look into this soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants