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

14th
Jun 2018
Niranjan Rajendran
@niranjan94
Jun 14 2018 05:27 UTC
see ... for example, sponsors is directly related to an event.
If a user deletes an event, sponsors should also be deleted. And when the user restores the event, sponsors should also be restored.
It doesn't make sense to just restore the event and end up losing everything else does it.
Saurav Tiwary
@srv-twry
Jun 14 2018 05:28 UTC
Yes, that makes perfect sense. thank you :smile:
Niranjan Rajendran
@niranjan94
Jun 14 2018 05:28 UTC
Awesome :D
Saurabh Shubham
@Saurabh3333
Jun 14 2018 07:27 UTC
@srv-twry Can you please suggest me a tutorial on this? I have watched some YouTube videos but I think I got confused.
Saurav Tiwary
@srv-twry
Jun 14 2018 07:27 UTC
Tutorial on git right ?
Saurabh Shubham
@Saurabh3333
Jun 14 2018 07:29 UTC
@srv-twry Thanks
Saurav Tiwary
@srv-twry
Jun 14 2018 07:29 UTC
Short video to understand what rebasing is: https://www.youtube.com/watch?v=cSf8cO0WB4o
Mayank Vaidya
@mayank8318
Jun 14 2018 07:57 UTC
Guys could you please help with this - fossasia/open-event-server#4775
This should be a priority as any task on the server will use celery.
Saurav Tiwary
@srv-twry
Jun 14 2018 08:08 UTC
Yes @mayank8318
I saw your comment but then got busy with other issues. Looking into it now :smile:
Saurav Tiwary
@srv-twry
Jun 14 2018 09:16 UTC
@mayank8318 Please check my comment on the issue. I think we need to create a new instance of the app for the workers everytime we create a new celery task. I think creating a factory as suggested by the answer given in my comment should work :smile:
Saurabh Chaturvedi
@schedutron
Jun 14 2018 19:27 UTC
Can anyone explain briefly what does the query() method do in ResourceList objects? I hooked up manage.py with pdb and set a breakpoint in the query() method of the Event API here: https://github.com/fossasia/open-event-server/blob/78374198a23e6f05ae25fd02942ff60e6f880467/app/api/events.py#L65, but when I do a GET event request from Postman, the breakpoint isn't catched, meaning execution doesn't reach this method. Am I missing something here?
I added the code to compute average rating for events inside this function, but it had no effect on the API response.
Saurabh Chaturvedi
@schedutron
Jun 14 2018 22:11 UTC
Got it, was using the wrong endpoint at Postman!
Saurabh Chaturvedi
@schedutron
Jun 14 2018 22:56 UTC
@iamareebjamal @niranjan94 @srv-twry @mayank8318 @bhaveshAn Please review fossasia/open-event-server#4865