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

25th
Jul 2017
Princu
@Princu7
Jul 25 2017 04:44
Seems like http://eventyay.com is down!
Niranjan Rajendran
@niranjan94
Jul 25 2017 05:12
checking @Princu7
Niranjan Rajendran
@niranjan94
Jul 25 2017 05:33
Its back. Looks like it was upgrading. have disabled auto-upgrades.
Princu
@Princu7
Jul 25 2017 05:34
:plus1:
Areeb Jamal
@iamareebjamal
Jul 25 2017 07:47
Guys, I was creating ticket using sales start time to be 2017-06-25T13:10:29+05:30 but when I get the resource, it becomes UTC 2017-06-25T07:40:29+00:00, the event timezone is also set to Asia/Kolkata. Is this intended
Shubham Padia
@shubham-padia
Jul 25 2017 07:54
Nope, this does not happen with event, right?
Shubham Padia
@shubham-padia
Jul 25 2017 08:08
@iamareebjamal Just checked, this is the expected behaviour. We're using Postgres, this should be happening in event also...
the event timezone is for representation purposes, as multiple timezones may have the same offset
Areeb Jamal
@iamareebjamal
Jul 25 2017 08:11
But it should display 2017-06-25T13:10:29+05:30 or else how will the client know what's the time in event timezone?
2017-06-25T07:40:29+00:00 means that the event is taking place at 07:40, but actually it is 13:20
*13:10
Niranjan Rajendran
@niranjan94
Jul 25 2017 08:18
@iamareebjamal 2017-06-25T13:10:29+05:30 is the same as 2017-06-25T07:40:29+00:00
So, I don't understand whats the confusion here
The event's timezone is already available in the event response. The server will provide all date-time responses in standard UTC.
Areeb Jamal
@iamareebjamal
Jul 25 2017 08:20
That was what I was clearing up about. That we need to parse event timezone for each time related query?
Niranjan Rajendran
@niranjan94
Jul 25 2017 08:22
That's upto each client to do on the client side... If the client wants to display all the date/time in the event timezone, it can, if the client wants to display all in the user's local timezone, it can.
The server always returns in UTC. (But will accept any timezone during creation or for filtering)
Afroz Ahamad
@enigmaeth
Jul 25 2017 12:17
@niranjan94 @SaptakS @shubham-padia What should be the allowable values for event state? https://github.com/fossasia/open-event-orga-server/blob/nextgen/app/api/events.py#L107
Niranjan Rajendran
@niranjan94
Jul 25 2017 12:17
published, draft
Afroz Ahamad
@enigmaeth
Jul 25 2017 12:18
:+1:
Niranjan Rajendran
@niranjan94
Jul 25 2017 12:18
All lower case. Also add migrations to convert all existing values in the database to lower case.
Afroz Ahamad
@enigmaeth
Jul 25 2017 12:18
okay!
Niranjan Rajendran
@niranjan94
Jul 25 2017 12:18
Thank you :)
Afroz Ahamad
@enigmaeth
Jul 25 2017 12:18
All existing values for event state, right?
Niranjan Rajendran
@niranjan94
Jul 25 2017 12:19
Yep
Afroz Ahamad
@enigmaeth
Jul 25 2017 12:19
:+1:
Niranjan Rajendran
@niranjan94
Jul 25 2017 12:19
For event state, and session state too.
Afroz Ahamad
@enigmaeth
Jul 25 2017 12:19
okay. will do!
Niranjan Rajendran
@niranjan94
Jul 25 2017 12:19
Session state accepted values are: accepted, draft, pending, approved, rejected.
Will update all of this in the dev-handbook too for future reference.
Afroz Ahamad
@enigmaeth
Jul 25 2017 12:20
Got it! Thank you. That'll be helpful.
Afroz Ahamad
@enigmaeth
Jul 25 2017 14:11

published, draft

@shubham-padia ^

Shubham Padia
@shubham-padia
Jul 25 2017 14:13
@enigmaeth Thanks, did not notice this before the comment.
Afroz Ahamad
@enigmaeth
Jul 25 2017 14:15
:+1:
Shubham Padia
@shubham-padia
Jul 25 2017 14:16

All lower case. Also add migrations to convert all existing values in the database to lower case.

@enigmaeth The above seems to be missing, can you have a look at that :smile:

Dilpreet Singh
@geekyd
Jul 25 2017 14:18

Hey guys!
Can you please check what is wrong with upload API, while uploading the image, the URL in response returns ERROR 404.

I uploaded an image got the following URL in response
https://open-event-api.herokuapp.com/static/media/temp/images/ec111208-25f1-4e7f-8792-036ea814fa8c/S1FkMW5ZV0/6b66efaf-e384-4a37-85ae-0baf37ed388c.png

Dilpreet Singh
@geekyd
Jul 25 2017 14:25
Also is the PATCH & DELETE methods working for events API?
I'm unable to PATCH or DELETE events that I created.
Shubham Padia
@shubham-padia
Jul 25 2017 14:31

I'm unable to PATCH or DELETE events that I created.

@geekyd Not working on the heroku instance, but working on local instance, will look into it :+1:

@niranjan94 ^^
Afroz Ahamad
@enigmaeth
Jul 25 2017 14:49

All lower case. Also add migrations to convert all existing values in the database to lower case.

@enigmaeth The above seems to be missing, can you have a look at that :smile:

Yeah, working on that!

Piyush Agrawal
@poush
Jul 25 2017 15:20
@geekyd Thanks for reporting. The issue seems with the static serving endpoint. Will fix that :)
Dilpreet Singh
@geekyd
Jul 25 2017 15:20
:+1:
Shubham Padia
@shubham-padia
Jul 25 2017 16:53
@SaptakS please review #4115