These are chat archives for fossasia/open-event-server

16th
Jul 2016
Shivam Mamgain
@shivamMg
Jul 16 2016 07:52
@mariobehling fossasia/open-event-orga-server#1672
Mario Behling
@mariobehling
Jul 16 2016 08:18
@aviaryan What about the audio data in the OTS sample? Please add it. So we can test it.
Mario Behling
@mariobehling
Jul 16 2016 08:37
@shivamMg Good to see you are working on a number of tasks. What is the status on this issue that was labeled High Priority 17 days ago: fossasia/open-event-orga-server#1327
?
@SaptakS I see the tab API endpoints and I see it got merged, but I have not seen it working so far.
Server error or application error. Always one of each
Rafał Kowalski
@rafalkowalski
Jul 16 2016 08:51
i will check
Rafał Kowalski
@rafalkowalski
Jul 16 2016 10:07
@/all do you have any logs what's happen in https://open-event-dev.herokuapp.com/events/64/api/ i can't find it
Niranjan Rajendran
@niranjan94
Jul 16 2016 10:12
No... Even I'm not able to get any log...
Rafał Kowalski
@rafalkowalski
Jul 16 2016 10:13
on my local env it works
Niranjan Rajendran
@niranjan94
Jul 16 2016 10:26
I might be able to fix it.
Rafał Kowalski
@rafalkowalski
Jul 16 2016 10:34
k
Niranjan Rajendran
@niranjan94
Jul 16 2016 10:35
This should fix it :) fossasia/open-event-orga-server#1675
Niranjan Rajendran
@niranjan94
Jul 16 2016 10:55
@mariobehling the API endpoints page has been fixed. https://open-event-dev.herokuapp.com/events/64/api/
Rafał Kowalski
@rafalkowalski
Jul 16 2016 11:01
cool
Saptak Sengupta
@SaptakS
Jul 16 2016 12:40
@niranjan94 Thanks..
@mariobehling not sure why this was happening but it was wroking initially.. Some problem with urllib2 request I think..
Sorry for the error..
Mario Behling
@mariobehling
Jul 16 2016 12:47
@SaptakS @niranjan94 @rafalkowalski The implementation of the API endpoints is a good start, but not so user/dev friendly. Please provide input to this issue, if you have ideas to improve fossasia/open-event-orga-server#1678
Saptak Sengupta
@SaptakS
Jul 16 2016 12:47
Will check it out..
Shivam Mamgain
@shivamMg
Jul 16 2016 14:33
Like this one at razorpay: https://docs.razorpay.com
It wouldn't require creating new ui. We can use https://dash.readme.io/
or some free alternative
Shivam Mamgain
@shivamMg
Jul 16 2016 14:51
we can use readthedocs: https://readthedocs.org/
this seems good too: http://daux.io/
Avi Aryan
@aviaryan
Jul 16 2016 15:08
@aviaryan What about the audio data in the OTS sample? Please add it. So we can test it.
I will like to add it but I am on 2g network now and download is taking a long time, some large files (20 mb) even fail. BTW, the import feature is made such that it downloads the directly linked files and uploads them to server. As all audio fields in ots json are directly linked to github's server, so they should be uploaded to our server too.
@mariobehling sorry I can't do it now. @/all Can anyone else take up fossasia/open-event-orga-server#1642 and add the audio files. It will be of very help. I added the images files at pr fossasia/open-event-orga-server#1644 so this can serve as a sample.
Saptak Sengupta
@SaptakS
Jul 16 2016 15:26
@aviaryan I will try to get it done..
Mario Behling
@mariobehling
Jul 16 2016 15:52
@SaptakS @niranjan94 please check out how twitter let's people connect and use their APIs. How can we implement our process? Currently there is a list of endpoints only on our api tab.
Saptak Sengupta
@SaptakS
Jul 16 2016 15:53
So we should provide UI for organizers to make request and get the data?
Something like in Swagger?
Aditya Vyas
@aditya1702
Jul 16 2016 16:05
@aviaryan I will try to do it
Niranjan Rajendran
@niranjan94
Jul 16 2016 16:24
@mariobehling we'll check it out and propose a possible implementation for Open Event ...
Manan Wason
@mananwason
Jul 16 2016 16:33
@shivamMg @aviaryan The sample ots json doesn't have a key for the objects in the array https://raw.githubusercontent.com/fossasia/open-event-orga-server/development/samples/ots16/event/1/sessions.json
Niranjan Rajendran
@niranjan94
Jul 16 2016 16:36
I don't think a key is necessary... Almost every api I have seen has a collection of objects like this...
Manan Wason
@mananwason
Jul 16 2016 16:42
So we are following the re:data format and that format has a key. Please see https://frab.das-sendezentrum.de/de/32c3/public/schedule.json
Both these conferences follow re:Data and I feel this is the way to go
Niranjan Rajendran
@niranjan94
Jul 16 2016 16:44
Which key are you referring to ?
This message was deleted
This message was deleted
Something like this ?
{
    "sessions": [
        {
            "audio": null, 
            "comments": null, 
            "end_time": "2016-05-05 08:00:00", 
            "id": 1, 
            "language": null, 
            "long_abstract": "fghgfh"
        }
    ]
}
Manan Wason
@mananwason
Jul 16 2016 16:49
Yes. I think that we should have a key for the array of objects
Niranjan Rajendran
@niranjan94
Jul 16 2016 16:49
Cool ! That makes sense ... I mis-understood when you said key for the objects in the array ... My bad ...
Manan Wason
@mananwason
Jul 16 2016 16:50
Cool!
Should we open an issue for this?
Niranjan Rajendran
@niranjan94
Jul 16 2016 16:50
Yep. That would be better ...
Manan Wason
@mananwason
Jul 16 2016 16:51
Awesome. Will do that right now :+1:
Manan Wason
@mananwason
Jul 16 2016 17:06
Also @niranjan94 Why do we have objects for session_type, microlocations, track etc.
"session_type": {
"id": 1, 
"name": "Ganzt\u00e4giger L\u00f6tworkshop / Soldering Workshop"
}
Can't we just supply the id here? We anyways have different json files for all of these where we can get all the data just by the id, right?
Niranjan Rajendran
@niranjan94
Jul 16 2016 17:09
Look at this from the API Point of view ... When the user accesses, a session through the API ... We want him to get the sesssion_type, track, microlocation in a single request ... We don't want him/her to make consecutive requests with the ID refs to get session_type, microlocation, track info
Manan Wason
@mananwason
Jul 16 2016 17:15
Okay got it
Niranjan Rajendran
@niranjan94
Jul 16 2016 17:15
Cool :)
Manan Wason
@mananwason
Jul 16 2016 17:16
:smiley:
Saptak Sengupta
@SaptakS
Jul 16 2016 17:18
Also @mananwason it has only the basic information of session_type, microlocation, etc. such as the id and name that might be needed along with the event. For the entire data such as length of session_type and stuff you would have to refer to the session type json.
So that makes sense I guess..
Manan Wason
@mananwason
Jul 16 2016 17:21
So @SaptakS on the client side, we'll only be using the id, not the other parameters and create mappings in the database
Saptak Sengupta
@SaptakS
Jul 16 2016 17:21
Maybe.. But the API maybe used in other apps as well, so....
:)
Manan Wason
@mananwason
Jul 16 2016 17:22
@SaptakS I get the point but yes the client side apps will not use the extra data
Saptak Sengupta
@SaptakS
Jul 16 2016 17:23
yeah.. understood.. :)
Manan Wason
@mananwason
Jul 16 2016 17:23
Cool :smiley:
Saptak Sengupta
@SaptakS
Jul 16 2016 18:08
@mariobehling fossasia/open-event-orga-server#1684 Please have a look..
I think this kind of an UI for geolocation makes sense..
Eventbrite does something similar.. It allows you to select from the map on choosing the option "Address" and also has a checkbox to ensure whether to show map on event page...
Mario Behling
@mariobehling
Jul 16 2016 20:09
@SaptakS I merged it as work in progress. Currently the map does not work for me and I dont understand what the button "geolocation" is there for. Please check how it works on Eventbrite.
See here for example - no map anymore http://open-event-dev.herokuapp.com/events/81/edit/
Saptak Sengupta
@SaptakS
Jul 16 2016 20:10
Yeah.. it shows map on clicking the switch..
Screenshot from 2016-07-17 01:40:02.png
And I did it following eventbrite itself.. They have a link for adding address in which case a map gets shown on the right... So instead of a link I made a switch..
Ok.. I get it..
Yeah.. Geolocation is a bit ambiguous.. true..
Will think about something like eventbrite..
Mario Behling
@mariobehling
Jul 16 2016 20:15
@SaptakS Please offer people to add their address
Saptak Sengupta
@SaptakS
Jul 16 2016 20:15
Ok.. will do that..
Mario Behling
@mariobehling
Jul 16 2016 20:15
in emerging countries it could be difficult to find the location otherwise
Saptak Sengupta
@SaptakS
Jul 16 2016 20:15
True.. working on it..
I will come with something similar to eventbrite asap..
@mariobehling can you also check the UI in this issue:
fossasia/open-event-orga-server#1665