Feature : add the event's in a two step instead of one
Hey, I've read the bit of API here https://docs.joinmobilizon.org/contribute/graphql_api/ The last part "media integration" sounds bad news to me (as an undewear sunday's hacker) :
- It's different from everything else
- It's very hard to emulate from simpler tools (I tried from curl, I couldn't get it right for the life of me)
- It's unnecessarily complicated :
I would suggest a two-step thing instead : first a upload sequence for the image automatically when you select it (it could be totally transparent), the API returns an ID. ID you'll add to the event when pushing the send button. From the user side, no difference to be seen. It'd be in fact a bit faster as the upload will occur sooner and not at the last moment. There is advantages to this : you'd be able to re-use the ID of an already sent image, making the whole thing lighter (you could even use a md5 fingerprint instead of IDs, save spaces and remove redundant files) and the best thing of all - it'll be easier to hack and debug for everyone. Keep it simple.
If you don't want to change it, please consider giving small time hackers a working example to work with using simple tools I'll be able to use in most setup (like curl).
Thanks. Hope I'm not looking too negative here, I'm really just saying "Love the tool, but this bit feel out of place from everything else".