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

12th
Aug 2017
Dilpreet Singh
@geekyd
Aug 12 2017 03:49
Hey guys please have a look at fossasia/open-event-orga-server#4298
Afroz Ahamad
@enigmaeth
Aug 12 2017 04:16
@geekyd on it!
Dilpreet Singh
@geekyd
Aug 12 2017 04:16
Thanks @enigmaeth
Sumedh Nimkarde
@lunaticmonk
Aug 12 2017 15:02
@shubham-padia @poush @enigmaeth @magdalenesuo I am making a POST request to:
/v1/events/export/json, I am getting 404. Can you let me know if I am wrong. Following is the request. The request fails at OPTIONS itself:
Request URL:https://open-event-api.herokuapp.com/v1/events/export/jsons
Request Method:OPTIONS
Status Code:404 NOT FOUND
Remote Address:46.137.164.162:443
Referrer Policy:no-referrer-when-downgrade
Response Headers
view source
Access-Control-Allow-Headers:authorization, content-type
Access-Control-Allow-Methods:DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT
Access-Control-Allow-Origin:http://localhost:4200
Connection:keep-alive
Content-Length:233
Content-Type:text/html
Date:Sat, 12 Aug 2017 14:56:57 GMT
Server:gunicorn/19.7.1
Vary:Origin
Via:1.1 vegur
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:en-US,en;q=0.8
Access-Control-Request-Headers:authorization,content-type
Access-Control-Request-Method:POST
Cache-Control:no-cache
Connection:keep-alive
Host:open-event-api.herokuapp.com
Origin:http://localhost:4200
Pragma:no-cache
Referer:http://localhost:4200/events/55c4e245/export
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/60.0.3112.78 Chrome/60.0.3112.78 Safari/537.36
Medo
@magdalenesuo
Aug 12 2017 15:14
@sumedh123 Thanks for pointing it out. /v1/events/{event_id}/export/json This should be the endpoint. Will update in doc.
Areeb Jamal
@iamareebjamal
Aug 12 2017 15:28
Guys, patching large-image-url or thumbnail-image-url makes it null. Only patching logo-url is working. Can you please confirm?
Saptak Sengupta
@SaptakS
Aug 12 2017 15:30
@iamareebjamal you can't patch large -image-url directly. You have to patch the original-image-url and automatically the other three wil be updated
Saptak Sengupta
@SaptakS
Aug 12 2017 15:39
large, thumnail/small, icon are versions of the original image that is uploaded.
every api will have a corresponding original image
Areeb Jamal
@iamareebjamal
Aug 12 2017 16:40
OK. Then perhaps an error from server rather than setting the attributes to null would be appropriate ? :smile:
Shubham Padia
@shubham-padia
Aug 12 2017 18:23
Yep, will open an issue
Dilpreet Singh
@geekyd
Aug 12 2017 20:49

Hey guys I'm having trouble with custom-forms can anyone have a look at it?

endpoint:

/v1/custom-forms

Payload

{
   "data":{
      "attributes":{
         "field-identifier":"Organisation",
         "form":"speaker",
         "type":"text",
         "is-required":false,
         "is-included":true,
         "is-fixed":false
      },
      "relationships":{
         "event":{
            "data":{
               "type":"event",
               "id":"173"
            }
         }
      },
      "type":"custom-form"
   }
}

Response

{
   "jsonapi":{
      "version":"1.0"
   },
   "errors":[
      {
         "detail":"Object creation error",
         "status":500,
         "source":{
            "pointer":"/data"
         },
         "title":"Unknown error"
      }
   ]
}
Afroz Ahamad
@enigmaeth
Aug 12 2017 21:06
@geekyd unable to reproduce the issue locally. Plus the dredd tests also pass. Is there anything wrong with event 173? @shubham-padia @poush @magdalenesuo views?
Dilpreet Singh
@geekyd
Aug 12 2017 22:54
It seems to work now, it was a frontend issue. Thanks