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

15th
Mar 2017
Ray
@rctay
Mar 15 2017 03:05
@niranjan94 Export as CSV does not work. Is it because of the cloud deployment?
I'm able to export pdf/csv on https://open-event-dev.herokuapp.com/
@mariobehling I'm able to export pdf/csv on https://open-event-dev.herokuapp.com/ > @niranjan94 Export as CSV does not work. Is it because of the cloud deployment?
how is eventyay being set up? it's deploying master?
Mario Behling
@mariobehling
Mar 15 2017 03:44
it's deploying master?
yes
Ray
@rctay
Mar 15 2017 05:19
anyway i can ssh in? i want to view the logs
Pradeep CE
@cepradeep
Mar 15 2017 05:47
@mariobehling Need your input on #3382. Would you rather the Register as Speaker issue is brought up in a separate issue?
Mario Behling
@mariobehling
Mar 15 2017 05:53
@rctay It is a Google cloud deployment
are you familiar with it?
Niranjan Rajendran
@niranjan94
Mar 15 2017 06:22
@rctay it's deployed using Kubernetes ...
Sending you a PM
Niranjan Rajendran
@niranjan94
Mar 15 2017 06:36
@mariobehling the Bad Gateway error for pdf download is because the code is taking too long to generate the pdf and hence the connection b/w nginx and the app server times out ...
As for the csv download, orders csv download works. Attendees, checking ... Nothing in logs.
Ray
@rctay
Mar 15 2017 08:23
oh i see...we may need to use task q/deferred
Mario Behling
@mariobehling
Mar 15 2017 08:40
ok
@niranjan94 Please merge the changes asap
Dilpreet Singh
@geekyd
Mar 15 2017 08:53
@mariobehling I have made the changes please have a look Thanks :)
https://youtu.be/M4fTTV3ewAs
Mario Behling
@mariobehling
Mar 15 2017 08:57
@geekyd Very good! Please post the file for offline viewing. Can we post this to the FOSSASIA channel?
@geekyd Actually wrong channel. We also need a showcase for the server, if you would like to do this.
Hong Phuc Dang
@hpdang
Mar 15 2017 10:44
@niranjan94 the program in PDF is not good enough for print
we need to print the schedule
Mario Behling
@mariobehling
Mar 15 2017 10:54
actually the png and the table head is overlapping
Ray
@rctay
Mar 15 2017 11:08
@hpdang can you send me the csv
i'm thinking of importing on my local orga. then tweak the code locally without deploying through gce
Afroz Ahamad
@enigmaeth
Mar 15 2017 16:55
@enigmaeth
On my local installation of open-event-orga-server, every link seems to be working except Create Event where I get this page :
blob
It says ValueError: Malformed IP address
Ray
@rctay
Mar 15 2017 17:06
scroll down and screenshot the bottom half too
Aseem Shrey
@LuD1161
Mar 15 2017 17:45

Anyone please make me understand .I have some doubts regarding code :

In the file 'app/views/users/ticket_sales.py'
if len(order.ticket_holders) == 0: (Line 218)
Where does this attribute ticket_holders come from or am I missing something ?
Cause in order.py , model there is none:

class Order(db.Model):
    __tablename__ = "orders"

    id = db.Column(db.Integer, primary_key=True)
    identifier = db.Column(db.String, unique=True)
    amount = db.Column(db.Float)
    address = db.Column(db.String)
    city = db.Column(db.String)
    state = db.Column(db.String)
    country = db.Column(db.String)
    zipcode = db.Column(db.String)
    user_id = db.Column(db.Integer, db.ForeignKey('user.id', ondelete='SET NULL'))
    event_id = db.Column(db.Integer, db.ForeignKey('events.id', ondelete='SET NULL'))
    marketer_id = db.Column(db.Integer, db.ForeignKey('user.id', ondelete='SET NULL'))
    created_at = db.Column(db.DateTime)
    completed_at = db.Column(db.DateTime, nullable=True, default=None)
    trashed_at = db.Column(db.DateTime, nullable=True, default=None)
    transaction_id = db.Column(db.String)
    paid_via = db.Column(db.String)
    payment_mode = db.Column(db.String)
    brand = db.Column(db.String)
    exp_month = db.Column(db.Integer)
    exp_year = db.Column(db.Integer)
    last4 = db.Column(db.String)
    stripe_token = db.Column(db.String)
    paypal_token = db.Column(db.String)
    status = db.Column(db.String)

    discount_code_id = db.Column(
        db.Integer, db.ForeignKey('discount_codes.id', ondelete='SET NULL'), nullable=True, default=None)
    discount_code = db.relationship('DiscountCode', backref='orders')

    event = db.relationship('Event', backref='orders')
    user = db.relationship('User', backref='orders', foreign_keys=[user_id])
    marketer = db.relationship('User', backref='marketed_orders', foreign_keys=[marketer_id])
    tickets = db.relationship("OrderTicket", backref='order')

    def __init__(self,
Mario Behling
@mariobehling
Mar 15 2017 17:56
Could anyone help to get the table header of the schedule fixed?
Screenshot from 2017-03-16 01-56-19.png
fossasia/open-event-orga-server#3383
Afroz Ahamad
@enigmaeth
Mar 15 2017 18:18
blob
@rctay I reran python manage.py runserver and now I get this error page:
And this is console log
blob
In the log the error again is this : ValueError: Malformed IP address
Himanshi-Khandelwal
@Himanshi-Khandelwal
Mar 15 2017 18:50
@enigmaeth do it without using internet .
Disconnect you r internet
and then run
Afroz Ahamad
@enigmaeth
Mar 15 2017 20:27
@Himanshi-Khandelwal It worked :sparkles:
Why doesn't it work on internet? ( malformed IP)
Thanks
Afroz Ahamad
@enigmaeth
Mar 15 2017 20:52
@niranjan94 Does the state field in an event not allow completed as a valid data? I tried importing an event which had state : completed, I got an error. Changing the value todraft solves the problem.
Where can I find the data allowed for a field?
The API Docs at https://github.com/fossasia/open-event-orga-server/blob/development/docs/general/api.md list out the Requirement and Access of a field.
Thanks
Default for state is Draft.