These are chat archives for fossasia/open-event-server
Also, I have created a Sendgrid key to send emails but when I test it, I don't receive any emails although Sendgrid's web dashboard says it's been delivered. Any idea why?
I think it's very difficult to say from here. You'll have to check everything from scratch. I am not familiar with how emails are setup on the server. Please take a day to check everything about the email system from scratch and do some research using blogs/stackoverflow. @schedutron
I'm getting a 404 error when I POST to it.
Check the URL that you are posting to, if it matches the one you setup with Flask route.
I have created a Sendgrid key to send emails but when I test it, I don't receive any emails although Sendgrid's web dashboard says it's been delivered
I don't have experience with Sendgrid , but it seems to be related to your Sendgrid account. May be that key is just for testing, without actually sending out email, to prevent spamming recipient?
@schedutron @mishuvs Please review: fossasia/open-event-server#5007
@mayank8318 Please merge: fossasia/open-event-server#5015
I need these in order to move ahead.
That's why I once recommended a pre-commit hook instead of Hound
In the project ?
For discount code, the schema is always DiscountCodeSchemaEvent no matter whether it's used for eventor ticket before posting.
Since the before_post method is not really called "before" but in between the actual post function in flask-rest-jsonapi, the code to change schema based on the value of used-for attribute of discount codes doesn't really work.
So even if I post a discount code of type ticket, it's schema remains DiscountCodeSchemaEvent instead of DiscountCodeSchemaTicket.
To fix this, should I create a new method decide_schema()of ResourceList that does this part?
@SaptakS Can you please guide us here?