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

18th
Jun 2016
Avi Aryan
@aviaryan
Jun 18 2016 04:41
@rafalkowalski That feature has not been added yet. I suppose you will be using the paginated APIs so I will add that feature to it.
Avi Aryan
@aviaryan
Jun 18 2016 04:47
#962
Mario Behling
@mariobehling
Jun 18 2016 06:07
@shivamMg @aviaryan @aditya1702 after merges please check that the live system is working as expected. Currently we have Internal Server Error.
Aditya Vyas
@aditya1702
Jun 18 2016 06:08
Ok
:+1:
Avi Aryan
@aviaryan
Jun 18 2016 06:16
ok. checking server
It is fixed
Avi Aryan
@aviaryan
Jun 18 2016 07:41
how many session types can a session have ? I think 1 but need to confirm
Saptak Sengupta
@SaptakS
Jun 18 2016 07:42
I am not sure.. I think it should be one..
Avi Aryan
@aviaryan
Jun 18 2016 07:42
thanks. If it is 1, I think we need to define a session_type field in sessions model
just like track, microlocation
otherwise session.session_type returns a list
Mario Behling
@mariobehling
Jun 18 2016 07:45
@SaptakS I am unclear. Please remind me: What data goes into session type?
Avi Aryan
@aviaryan
Jun 18 2016 07:45
session type has name and length
Saptak Sengupta
@SaptakS
Jun 18 2016 07:46
Yeah..
Mario Behling
@mariobehling
Jun 18 2016 07:46
name of what? Name of session = Title?
Saptak Sengupta
@SaptakS
Jun 18 2016 07:46
No...
name of session type..
Arnav Gupta
@championswimmer
Jun 18 2016 07:46
no, it is like "Workshop", "Talk"
Saptak Sengupta
@SaptakS
Jun 18 2016 07:46
Yeah..
And the length is the duration of session..
Avi Aryan
@aviaryan
Jun 18 2016 07:47
so it has no length ?
Arnav Gupta
@championswimmer
Jun 18 2016 07:47
It has both
Avi Aryan
@aviaryan
Jun 18 2016 07:47
so this means each "workshop" session will have same length ?
Mario Behling
@mariobehling
Jun 18 2016 07:47
ok, yes. One type only, but types could have different lengths, e.g. workshops could be 1 hour or 2 hours in the same event.
Arnav Gupta
@championswimmer
Jun 18 2016 07:47
session_type {
  name: "Workshop",
  length: "30"
}
Saptak Sengupta
@SaptakS
Jun 18 2016 07:48
But @mariobehling for one session it is fixed, right?
Arnav Gupta
@championswimmer
Jun 18 2016 07:48
not necessary all workshops are 1 hour @aviaryan
Avi Aryan
@aviaryan
Jun 18 2016 07:49
ok
so one session type for each session
Mario Behling
@mariobehling
Jun 18 2016 07:50
@SaptakS Not sure, what you mean with "one session". Surely one session only has one fixed time, e.g. 1 hour. Apart from that @championswimmer already explained.
Saptak Sengupta
@SaptakS
Jun 18 2016 07:51
Yeah.. I meant to say the same..
Avi Aryan
@aviaryan
Jun 18 2016 07:51
Ok got it
Saptak Sengupta
@SaptakS
Jun 18 2016 07:51
Was just confirming..
Avi Aryan
@aviaryan
Jun 18 2016 08:33
can anyone give a second look to PR #973 . I have fixed the session_type relation with sessions in it.
Mario Behling
@mariobehling
Jun 18 2016 10:32
@niranjan94 any sessions related function currently results in server errors
Niranjan Rajendran
@niranjan94
Jun 18 2016 10:51
@mariobehling yes. My Sessions. I'll fix it.
Saptak Sengupta
@SaptakS
Jun 18 2016 10:51
I am having a power cut, there is no internet and my laptop is about to drain... Hopefully the electricity will come back soon..cant work till then..
Niranjan Rajendran
@niranjan94
Jun 18 2016 10:51
And @rafalkowalski /admin/sessions/ is also broken
Rafał Kowalski
@rafalkowalski
Jun 18 2016 10:52
@niranjan94 what's happen?
Niranjan Rajendran
@niranjan94
Jun 18 2016 10:52
@rafalkowalski fixed.
Migrations as usual :sweat_smile:
Rafał Kowalski
@rafalkowalski
Jun 18 2016 10:53
hah
Niranjan Rajendran
@niranjan94
Jun 18 2016 10:53
:D
Is there a way to set up auto migrations part of the deployment ?
Technically the current Procfile setting must run migrations when being deployed
Rafał Kowalski
@rafalkowalski
Jun 18 2016 11:10
i thought that it's working now ;p
Mario Behling
@mariobehling
Jun 18 2016 11:12
@rafalkowalski looks like the search is not working yet "Method Not Allowed The method is not allowed for the requested URL."
Rafał Kowalski
@rafalkowalski
Jun 18 2016 11:13
on my site it's working
Mario Behling
@mariobehling
Jun 18 2016 11:13
please always test after merge on live site
Rafał Kowalski
@rafalkowalski
Jun 18 2016 11:14
Screen Shot 2016-06-18 at 13.14.03.png
it's working on heroku
type in anything in search bar
Rafał Kowalski
@rafalkowalski
Jun 18 2016 11:16
ok thanks
Rafał Kowalski
@rafalkowalski
Jun 18 2016 11:41
@niranjan94 do you know maybe why i recive 503 status response when i click enter on search?
on my local env is ok
Niranjan Rajendran
@niranjan94
Jun 18 2016 11:42
I'm going out now.. . I'll be back in an hour..
Rafał Kowalski
@rafalkowalski
Jun 18 2016 11:42
k
Aditya Vyas
@aditya1702
Jun 18 2016 11:56
I am getting error...
ProgrammingError: (psycopg2.ProgrammingError) column user.is_verified does not exist
LINE 1: ...issuper_admin, "user".is_admin AS user_is_admin, "user".is...
Avi Aryan
@aviaryan
Jun 18 2016 11:56
need to upgrade db
Aditya Vyas
@aditya1702
Jun 18 2016 11:56
I am getting nothing on running db upgrade
python manage.py db upgrade
Avi Aryan
@aviaryan
Jun 18 2016 11:57
yes..
not sure why that is happening
Aditya Vyas
@aditya1702
Jun 18 2016 11:57
And now cant use drop_db.py also
Its also giving error
Avi Aryan
@aviaryan
Jun 18 2016 11:57
why?
what
what error ?
Aditya Vyas
@aditya1702
Jun 18 2016 11:58
sqlalchemy.exc.InternalError: (psycopg2.InternalError) cannot drop table session because other objects depend on it
DETAIL: constraint session_type_session_id_fkey on table session_type depends on table session
Avi Aryan
@aviaryan
Jun 18 2016 12:01
did you try python manage.py db current
and python manage.py db heads
both give same version?
Aditya Vyas
@aditya1702
Jun 18 2016 12:01
Yes
They are same
Avi Aryan
@aviaryan
Jun 18 2016 12:01
if upgrade ran successfully, is_verified should have been created
Aditya Vyas
@aditya1702
Jun 18 2016 12:02
Yes but then why I am getting the error
?
Avi Aryan
@aviaryan
Jun 18 2016 12:03
I think db got messed up.. Different branches were upgrades on the same db
Try dropping the database from psql shell
Rafał Kowalski
@rafalkowalski
Jun 18 2016 13:18
@mariobehling searching fixed
but currently I'm waiting for impalmentation for API to filter results by input value
Mario Behling
@mariobehling
Jun 18 2016 13:19
ok, got it. Looks good
Rafał Kowalski
@rafalkowalski
Jun 18 2016 13:30
@/all i was trying to find a library which allows me to find in text a city, but unfortunately i didn't find. Maybe you know and can share a name of it :D?
@mariobehling i will add a city column to event table i think this solution will be better
Mario Behling
@mariobehling
Jun 18 2016 13:44
@rafalkowalski This is only a temporary solution as there are cities with the same name all over the world
Screenshot from 2016-06-18 15:45:09.png
@rafalkowalski This is an example of Eventbrite to enter an address.
Rafał Kowalski
@rafalkowalski
Jun 18 2016 13:46
so maybe we can do it like eventbrite's made it?
Mario Behling
@mariobehling
Jun 18 2016 13:48
yes, but they definitely also have an advanced system, that uses the IP address to find the location of a user and provide the relevant location search
let's go for city filter for now
the good thing is, it should give fast search results
Rafał Kowalski
@rafalkowalski
Jun 18 2016 13:49
but as you mentioned it's temporary solution
Rafał Kowalski
@rafalkowalski
Jun 18 2016 13:56
@mariobehling i've found a json with most in the world cities i will use it for now
Mario Behling
@mariobehling
Jun 18 2016 13:58
cool
@rafalkowalski Please open an issue to use this JSON for "proposal/autocompletion" of cities - e.g. you type and there are suggestions. This can be implemented later
Rafał Kowalski
@rafalkowalski
Jun 18 2016 13:59
ok
Mario Behling
@mariobehling
Jun 18 2016 15:37
@SaptakS Looks like the session form is back to the wizard atm. Do you understand the relationship between the session form and the wizard step 5?
Saptak Sengupta
@SaptakS
Jun 18 2016 16:44
Yeah... The options selected in wizard step 5are shown in the session form...
Most probably its not working in older events created in live version because the pre selects weren't defined at tht time and so the necessary info wasn't stored..
Niranjan Rajendran
@niranjan94
Jun 18 2016 16:46
@mariobehling @SaptakS I think my last PR might have caused the session form to revert back to the wizard state. I'll correct it now.
Saptak Sengupta
@SaptakS
Jun 18 2016 16:46
And I just changed session form from wizard to single.. Do u want me to chnge it back?
Ohk..
Niranjan Rajendran
@niranjan94
Jun 18 2016 16:56
@mariobehling @SaptakS it has been fixed now. Sorry about that.
Rafał Kowalski
@rafalkowalski
Jun 18 2016 17:38
Niranjan Rajendran
@niranjan94
Jun 18 2016 17:39
on it
Rafał Kowalski
@rafalkowalski
Jun 18 2016 17:39
k
Niranjan Rajendran
@niranjan94
Jun 18 2016 17:42
fossasia/open-event-orga-server#997
Rafał Kowalski
@rafalkowalski
Jun 18 2016 17:43
good merged
Aditya Vyas
@aditya1702
Jun 18 2016 18:04
Does anyone know how to unittest view function protected by decorator?
Mario Behling
@mariobehling
Jun 18 2016 19:38
@shivamMg Could you provide screenshots for your PRs in future, please?
Mario Behling
@mariobehling
Jun 18 2016 19:43
@niranjan94 Which OpenTechSummit imported event shows the sessions on the public page? There are several imports, but none seems to have the sessions listed, e.g. https://open-event.herokuapp.com/e/61/sessions/
Those were old imports that didn't have tracks properly linked.
I have reimported.
@mariobehling
Mario Behling
@mariobehling
Jun 18 2016 19:51
Thanks
Screenshot from 2016-06-18 21:50:58.png
@niranjan94 Call for papers disappeared. Should I file an issue or is it a quick thing?
Niranjan Rajendran
@niranjan94
Jun 18 2016 19:52
It disappears !? .. okay ... :sweat_smile: I think an issue would be better
Aditya Vyas
@aditya1702
Jun 18 2016 19:53
@mariobehling I have implemented the permissions..could you please have a look fossasia/open-event-orga-server#981
Mario Behling
@mariobehling
Jun 18 2016 19:54
@aditya1702 I need some time to go through that. Isn't a quick thing.
Aditya Vyas
@aditya1702
Jun 18 2016 19:55
Ok. I have added decorators to thee view functions to prevent access to the resources
Mario Behling
@mariobehling
Jun 18 2016 19:59
@shivamMg Merge conflicts fossasia/open-event-orga-server#996
@aditya1702 Let's try how it works.
Aditya Vyas
@aditya1702
Jun 18 2016 19:59
Ok :sweat_smile:
Mario Behling
@mariobehling
Jun 18 2016 20:12
This message was deleted
@aditya1702 @niranjan94 Trying to delete the old OpenTechSummit in my profile, but get "Forbidden Access" when I try to delete.
Screenshot from 2016-06-18 22:12:37.png
Aditya Vyas
@aditya1702
Jun 18 2016 20:14
@mariobehling wait let me check
Mario Behling
@mariobehling
Jun 18 2016 20:14
@aditya1702 How can we make people "Super Admin" in the system?
Aditya Vyas
@aditya1702
Jun 18 2016 20:18
@mariobehling solved the error. will directly commit it
Mario Behling
@mariobehling
Jun 18 2016 20:19
ok
Aditya Vyas
@aditya1702
Jun 18 2016 20:19
Done
Now u will be able to delete
And I think we still have to implement the part where we make a user super_admin
Mario Behling
@mariobehling
Jun 18 2016 20:20
@aditya1702 please open an issue for that then
Aditya Vyas
@aditya1702
Jun 18 2016 20:21
Ok will do
Mario Behling
@mariobehling
Jun 18 2016 20:21
maybe we could add that to the admin dashboard https://open-event.herokuapp.com/admin/
Aditya Vyas
@aditya1702
Jun 18 2016 20:21
But I am wondering how will we decide whom to make?
Mario Behling
@mariobehling
Jun 18 2016 20:22
The one super-admin who installs the system at the beginning adds his email
he/she can invite others
Aditya Vyas
@aditya1702
Jun 18 2016 20:22
Ok
Saptak Sengupta
@SaptakS
Jun 18 2016 21:23
@mariobehling can you help me with this issue:
fossasia/open-event-orga-server#639
Since we have only a single form now instead of a wizard, how should we the workflow now?