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

18th
Aug 2016
Aditya Vyas
@aditya1702
Aug 18 2016 08:32
@mariobehling How do we have to submit the link for the final evaluation?
Mario Behling
@mariobehling
Aug 18 2016 12:19
@niranjan94 please help to check the PRs.
Niranjan Rajendran
@niranjan94
Aug 18 2016 12:30
I'm away from my laptop... Will check in an hour....
Sorry @mariobehling
Mario Behling
@mariobehling
Aug 18 2016 12:39
@shivamMg Looking at this issue: fossasia/open-event-orga-server#1990 It is hard to understand what you are doing as you do not provide info on the path you are taking and simply make PRs that however do not solve the issue entirely. So, let's make it easier. Please follow the permissions sample of Drupal. Please look at how Drupal designs permissions and implement it.
Rafał Kowalski
@rafalkowalski
Aug 18 2016 16:01
@mariobehling what do you think to use normal date format like this 2016-08-18 08:55 to time columns ?
Mario Behling
@mariobehling
Aug 18 2016 16:06
which issue? where? what is normal depends on the country/language.
Rafał Kowalski
@rafalkowalski
Aug 18 2016 16:07
fossasia/open-event-orga-server#2254
when we use ' 2016-08-18 08:55' format it will be easier to sort
Mario Behling
@mariobehling
Aug 18 2016 16:09
ok. Well, it should be implemented in a way that the displayed time format is irrelevant. There should be a unix timestamp or something that is used to sort data.
cause as we translate the UI to other languages and there will be different time formats displayed. The way you want to implement it would mean that it could be wrong again.
Mario Behling
@mariobehling
Aug 18 2016 16:26
@rafalkowalski Can you please follow up on this issue fossasia/open-event-android#585 and work actively together to get the Android generator integrated? It does not work if there are comments every few days.
Rafał Kowalski
@rafalkowalski
Aug 18 2016 16:44
sorry i will check it
Rafał Kowalski
@rafalkowalski
Aug 18 2016 17:54

@shivamMg @aviaryan can you tell me how can we get access to open-event api in python. Can you show me an example? Below example doesn't work.
payload = "{\r\n\"action\": \"AndroidApp is generated\",\r\n\"message\": \"string\",\r\n\"email\": \"rafal.arte@gmail.pl\",\r\n\"title\": \"string\",\r\n}"
headers = {
'authorization': "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZGVudGl0eSI6MiwibmJmIjoxNDcxNTQwMDMxLCJleHAiOjE0NzE2MjY0MzEsImlhdCI6MTQ3MTU0MDAzMX0.ALGRcwW7CFoMvg1aa1yFRKpl4fb3jSsl4LQIo-z0yIw",
'cache-control': "no-cache",
'postman-token': "4ae5c2aa-8228-873e-139c-8b74ada3a9b8"
}

response = requests.request("POST", url, data=payload, headers=headers)
I've also read documentation and i've based my solution on yours documentation, but unfortunately something is wrong. i get {"code": 500, "message": "Internal server error", "status": "SERVER_ERROR", "field": null} error

Avi Aryan
@aviaryan
Aug 18 2016 19:17
see test_post_api_auth
@rafalkowalski
Rafał Kowalski
@rafalkowalski
Aug 18 2016 19:18
k i will check
thx
Avi Aryan
@aviaryan
Aug 18 2016 19:18
in that file see TestPostApiJWTAuth testcase
What do you think about this?
And please also check my PR fossasia/open-event-orga-server#2285