Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Events portal #80

Open
AbdealiLoKo opened this issue May 18, 2014 · 42 comments
Open

Events portal #80

AbdealiLoKo opened this issue May 18, 2014 · 42 comments
Assignees

Comments

@AbdealiLoKo
Copy link
Contributor

@phanikaran This needs to be release in about a week.
Whats the status

@AbdealiLoKo
Copy link
Contributor Author

Reminder.

@AbdealiLoKo
Copy link
Contributor Author

Reminder 2

@AbdealiLoKo
Copy link
Contributor Author

updates ?

@AbdealiLoKo
Copy link
Contributor Author

Phani, reminder

@AbdealiLoKo
Copy link
Contributor Author

Utture tasks which we had discussed :

  • - Make tabs in events
  • - Show contents for the tabs
  • - Edit content of tabs
  • - Delete tabs
  • - Edit name of Tab
  • - Allow only event coords to edit the event details (and cores and supercoords and QMS)
  • - Participant login (Shaastra ID creation)
  • - Event registration for participants
  • - Participant dashboard to find event information

Will add more later

@AbdealiLoKo
Copy link
Contributor Author

updates ?

@akshayutture
Copy link
Contributor

Finished the tabs part - add, delete and edit tabs (combined the editing of name and content of tab). Should I do anything else?

@AbdealiLoKo
Copy link
Contributor Author

check the checklist on top. and check everything done, there are a few things left - like allowing event coords only to do it

@AbdealiLoKo
Copy link
Contributor Author

Event coord can only edit their own.

Core, supercoord, qms can edit any.

So, make a separate function to check this. If we want a new type of user
to be able to edit, we'll simply edit that function, and everywhere else as
this function will be used, itll get changed everywhere. plus, where can i
see the stuff u made ? im assuming u made a test template ?

On Sat, Jul 5, 2014 at 3:19 PM, akshayutture notifications@github.com
wrote:

Is this the specification - Allow only event coords to edit the event
details (and cores and supercoords and QMS) - So an event co-ord can edit
event details of any event or just their subdepartment events?

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

I uploaded the stuff to github. The view and event-tab model is at apps/events. The url to see it is at localhot:8000/events/add_tabs . The html file is at templates/events/events2.html. . .

If a co-ord has co-ord relations with more than one sub-dept, he should be able to access every subdepartments' edit pages right?

@akshayutture
Copy link
Contributor

some clarifications

  1. Its a little difficult to give only some users access to the add,edit and delete buttons, so can I make a different view for those who can access these buttons and a different one for those who cannot?
  2. Can every qms co-ord also edit any event-tab?
  3. To allow only those event co-ords from a sub department access event tabs from that event category I'll have to make a one to one relation between the Category (events model) and the sub department model. Is that okay?

@AbdealiLoKo
Copy link
Contributor Author

Different view as in? Arent you doing it in Ajax? Again, dont worry whether
they can see the button or not. if they click the button it should come
"You are not allowed to edit this" << Thats the backend part

Not sure about qms co-ord - why does this matter ? I had mentioned earlier
no ? Make a function that takes a user and a event and gives out true or
false. if true, the person can change stuff, fi false he cannot. We'll
modify the conditions for the true/false later.

The event model and subdept already have a relation, check subdept model
On Jul 8, 2014 7:26 PM, "akshayutture" notifications@github.com wrote:

some clarifications

  1. Its a little difficult to give only some users access to the add,edit
    and delete buttons, so can I make a different view for those who can access
    these buttons and a different one for those who cannot?
  2. Can every qms co-ord also edit any event-tab?
  3. To allow only those event co-ords from a sub department access event
    tabs from that event category I'll have to make a one to one relation
    between the Category (events model) and the sub department model. Is that
    okay?

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

I created a function in which you need to put the criteria for giving permission to edit /create/delete a tab. For now I've kept the criteria that you need to be a qms or events core.

If you don't have permission, those 3 buttons won't get displayed
Is thats okay? If yes, I'll push

@AbdealiLoKo
Copy link
Contributor Author

Push to the branch.
And push even if unsure - the branches are meant for testing out. You can
always push again
On Jul 9, 2014 12:42 AM, "akshayutture" notifications@github.com wrote:

I created a function in which you need to put the criteria for giving
permission to edit /create/delete a tab. For now I've kept the criteria
that you need to be a qms or events core. Is that okay. If yes, I'll push

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

What should I do next? Participant login? If yes, give me the specifications

@AbdealiLoKo
Copy link
Contributor Author

So make a dajax function to create a user profile.
Then make required functions to link the userprofile to an event.

In an event, make a place to choose whether it has TDP or not. If yes, a
link to the tdp should given

@ Shahid - how do you want tdp? I was thinking Google forms
On Jul 9, 2014 10:26 AM, "akshayutture" notifications@github.com wrote:

What should I do next? Participant login? If yes, give me the
specifications

Reply to this email directly or view it on GitHub
#80 (comment)
.

@shahidhk
Copy link
Contributor

shahidhk commented Jul 9, 2014

Rather than using dajax for this, we could do rest framework. Will be a
huge advantage to debug. I have already written some stuff in mobile branch.

Ideally it would be great if we use this kind of api for main site. We can
easily create our own functions or can write out up directly to the data
models. All responses in json, easily customisable.

Sent from my mobile device. Please excuse any brevity.
On 9 Jul 2014 11:05, "AbdealiJK" notifications@github.com wrote:

So make a dajax function to create a user profile.
Then make required functions to link the userprofile to an event.

In an event, make a place to choose whether it has TDP or not. If yes, a
link to the tdp should given

@ Shahid - how do you want tdp? I was thinking Google forms
On Jul 9, 2014 10:26 AM, "akshayutture" notifications@github.com wrote:

What should I do next? Participant login? If yes, give me the
specifications

Reply to this email directly or view it on GitHub
<
#80 (comment)

.


Reply to this email directly or view it on GitHub
#80 (comment)
.

@AbdealiLoKo
Copy link
Contributor Author

Rest frameworks are difficult to make. Also it will involve more logic on
the other (mobile/js) part.
Also, tastypie is fairly confusing. I have no idea how yo use it correctly
let alone debug in it. Its very rigid and doesn't allow flexibility
On Jul 9, 2014 11:10 AM, "Shahidh K Muhammed" notifications@github.com
wrote:

Rather than using dajax for this, we could do rest framework. Will be a
huge advantage to debug. I have already written some stuff in mobile
branch.

Ideally it would be great if we use this kind of api for main site. We can
easily create our own functions or can write out up directly to the data
models. All responses in json, easily customisable.

Sent from my mobile device. Please excuse any brevity.
On 9 Jul 2014 11:05, "AbdealiJK" notifications@github.com wrote:

So make a dajax function to create a user profile.
Then make required functions to link the userprofile to an event.

In an event, make a place to choose whether it has TDP or not. If yes, a
link to the tdp should given

@ Shahid - how do you want tdp? I was thinking Google forms
On Jul 9, 2014 10:26 AM, "akshayutture" notifications@github.com
wrote:

What should I do next? Participant login? If yes, give me the
specifications

Reply to this email directly or view it on GitHub
<

#80 (comment)

.

Reply to this email directly or view it on GitHub
<
https://github.com/The-WebOps-Club/fest-api/issues/80#issuecomment-48431834>

.

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

Clarifications

  1. I'm using dajaxice only. Not rest or tastypie.
  2. What exactly is the TDP?
  3. We will add participants as the regular django inbuilt users and then make a OnetoOne relationship to a userProfile.
  4. A User can be linked to more than one event if he registers for more than one event.
  5. Where should I store the code in apps?

@AbdealiLoKo
Copy link
Contributor Author

The userprofile already exists. Check users models.

Keep it in users app

Tdp is an online form. Like what's ur team name, etc
On Jul 11, 2014 3:00 PM, "akshayutture" notifications@github.com wrote:

Clarifications

  1. I'm using dajaxice only. Not rest or tastypie.
  2. What exactly is the TDP?
  3. We will add participants as the regular django inbuilt users and then
    make a OnetoOne relationship to a userProfile.
  4. A User can be linked to more than one event if he registers for more
    than one event.
  5. Where should I store the code in apps?

Reply to this email directly or view it on GitHub
#80 (comment)
.

@shahidhk
Copy link
Contributor

Did you guys figure out how to call dajax from different domain without
daxaxice js?

Sent from my mobile device. Please excuse any brevity.
On 11 Jul 2014 21:18, "akshayutture" notifications@github.com wrote:

Can I make a many-to-many relationship between a user-profile and an event?


Reply to this email directly or view it on GitHub
#80 (comment)
.

@AbdealiLoKo
Copy link
Contributor Author

Ill do tonight - im repeating, its possible, windows app developers did it
... He did it to get the fbid in the get_info function.

@utture - yeah, do that. name it registered_events or something.

On Fri, Jul 11, 2014 at 9:49 PM, Shahidh K Muhammed <
notifications@github.com> wrote:

Did you guys figure out how to call dajax from different domain without
daxaxice js?

Sent from my mobile device. Please excuse any brevity.
On 11 Jul 2014 21:18, "akshayutture" notifications@github.com wrote:

Can I make a many-to-many relationship between a user-profile and an
event?

Reply to this email directly or view it on GitHub
<
https://github.com/The-WebOps-Club/fest-api/issues/80#issuecomment-48747334>

.

Reply to this email directly or view it on GitHub
#80 (comment)
.

@AbdealiLoKo
Copy link
Contributor Author

@shahid - even if its not possible, let him continue on dajaxice ... as you
said dajaxice and that rest thing have no difference ... so, all we have to
do is change the decorator

On Sat, Jul 12, 2014 at 8:31 AM, Abdeali Kothari abdealikothari@gmail.com
wrote:

Ill do tonight - im repeating, its possible, windows app developers did it
... He did it to get the fbid in the get_info function.

@utture - yeah, do that. name it registered_events or something.

On Fri, Jul 11, 2014 at 9:49 PM, Shahidh K Muhammed <
notifications@github.com> wrote:

Did you guys figure out how to call dajax from different domain without
daxaxice js?

Sent from my mobile device. Please excuse any brevity.
On 11 Jul 2014 21:18, "akshayutture" notifications@github.com wrote:

Can I make a many-to-many relationship between a user-profile and an
event?

Reply to this email directly or view it on GitHub
<
https://github.com/The-WebOps-Club/fest-api/issues/80#issuecomment-48747334>

.

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

I have to deserialize and then serialize the form so that I can use forms with Ajax. But I cannot do that with Dajaxice alone. I will need to use the dajax library (installed using pip install djang-dajax). So is that fine? ... because everyone will have to install dajax for the form functionality I am using to work.

Else I can just use regular post with the view

@AbdealiLoKo
Copy link
Contributor Author

Te deserialize function youre using in dajax also exists in dajaxice : http://www.dajaxproject.com/fullform/

@akshayutture
Copy link
Contributor

Yes I've been trying that example only the last couple of days, but the following line needs the dajax library to run.

dajax = Dajax()

I got an error without it and it started working only when I installed the dajax module
Chrome debugger console said (when I didn't use the dajax library) :
POST http://localhost:8000/dajaxice/apps.users.say_hello/ 500 (INTERNAL SERVER ERROR) dajaxice.core.js:315
Dajaxice: Something went wrong.

So is it alright if I use the library?

@AbdealiLoKo
Copy link
Contributor Author

That line is nor required. You can remove the dajax part of the code.

The online line of importance in that is the one with the deserialize
function

Check out what dajax is?
On Jul 14, 2014 2:46 PM, "akshayutture" notifications@github.com wrote:

Yes I've been trying that example only the last couple of days, but the
following line needs the dajax library to run.

dajax = Dajax()

I got an error without it and it started working only when I installed the
dajax module
Chrome debugger console said :
POST http://localhost:8000/dajaxice/apps.users.say_hello/ 500 (INTERNAL
SERVER ERROR) dajaxice.core.js:315
Dajaxice: Something went wrong.

So is it alright if I use the library?

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

Okay. Got it

@akshayutture
Copy link
Contributor

  1. In participant registration do I need to ask the participant to re-enter the password so that they are sure they chose their password correctly?
  2. Should I also make an option to un-register for an event
  3. And which branch should I push to when I'm ready?

@AbdealiLoKo
Copy link
Contributor Author

Create a new branch and push to that.
Yes, ask to reenter password
On Jul 15, 2014 3:53 PM, "akshayutture" notifications@github.com wrote:

In participant registration do I need to ask the participant to re-enter
the password?

And which branch should I push to when I'm ready?

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

  1. Whichever events have tdp should also have a separate registration button or just a link to the tdp?
  2. Should I make a button to un-register for an event?

@AbdealiLoKo
Copy link
Contributor Author

The tdp submission is not a button, its a link to a Google form. So how do
you plan on making them unregister?
On Jul 15, 2014 7:59 PM, "akshayutture" notifications@github.com wrote:

  1. Whichever events have tdp should also have a separate registration
    button or just a link to the tdp?
  2. Should I make a button to un-register for an event?

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

  • Ya tdp is a link, but for events with tdp, do you want people clicking the register button and the tdp link or should I show only the tdp link? (As in it'll be problematic if someone presses the register button but doesn't go to the tdp link). Also should I add a field called tdp link to the events model
  • The unregister button will be just an unregister button which appears only if you have registered for the event. . This is for those who have registered by mistake. Or else should I just make them confirm the registering in a popup box?

@akshayutture
Copy link
Contributor

added participant registration and login and their event-registration

@akshayutture
Copy link
Contributor

I pushed participant registration and login and their event-registration to a new branch participant registration...... So what should I do next?

@AbdealiLoKo
Copy link
Contributor Author

Will check it out tonight. Which branch?
On Jul 20, 2014 11:01 AM, "akshayutture" notifications@github.com wrote:

So what should I do next

Reply to this email directly or view it on GitHub
#80 (comment)
.

@akshayutture
Copy link
Contributor

Did u check it? U might probably want me to change the add and edit buttons. I didn't do that using dajaxice bcause I didnt know the serialize form thing

@shahidhk
Copy link
Contributor

@AbdealiJK, is @akshayutture going to continue this? or shall I put @Mohitkumar to do?

@AbdealiLoKo
Copy link
Contributor Author

It is already done - the basic stuff.

The work is in the corresponding branch (do not remember the name of the
branch)

On Sun, Aug 10, 2014 at 12:45 PM, Shahidh K Muhammed <
notifications@github.com> wrote:

@AbdealiJK https://github.com/AbdealiJK, is @akshayutture
https://github.com/akshayutture going to continue this? or shall I put
@Mohitkumar https://github.com/mohitkumar to do?

Reply to this email directly or view it on GitHub
#80 (comment)
.

@shahidhk
Copy link
Contributor

@akshayutture @arun2596 Updates?

@shahidhk
Copy link
Contributor

@arun2596 @akshayutture Updates?

@akshayutture
Copy link
Contributor

@shahidhk @AbdealiJK I've finished my part of the events portal. . I can do something else. . But dont give me something that u need done urgently. . Arun will upload the events portal in a couple of days. .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants