Closed Bug 891412 Opened 11 years ago Closed 10 years ago

Give admin users the ability to edit the event organizer username and email

Categories

(Webmaker Graveyard :: Events, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hivelearningnyc, Assigned: gvn)

References

Details

(Whiteboard: [crossteambugs][pre-ah])

Attachments

(1 file, 1 obsolete file)

I've entered numerous events on behalf of many hosts. When I enter it it puts the persona I used down as host. One of the actual hosts wants to change it to show that they are hosting. Since they didn't enter the event they can not edit it at all. I attempted to log in with the same account but noticed that field was something I couldn't edit. Would it be possible to make this an editable field?
+Brett

Is this somewhere on a radar to get completed? We upload a lot of events for people because of glitches, bulk events and other stuff and it would be great to switch over the users instead of it always being MozTeach -- the map pretty much looks like all events are uploaded by MozTeach.
Whiteboard: [crossteambugs]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Editing host on webmaker.org/events → Give admin users the ability to edit the "host" field on webmaker.org/events
Assignee: nobody → barry.tulchinsky
I'm currently looking into this and initially thought this was initially server side. Now that I actually was able to get the local login working for webmaker and see how it actually works, there is some client side work to do as well. I have a couple of questions:

a) In what matter/behaviour are the users going to pick a new organizer/host, ie. drop down list, google instant, etc.?

b) We currently only have the event object available in the details view, we would also need to pass a variable to allow that field to be editable and also an array of allowable users to switch to, is this acceptable? 

Hopefully I'm not over-complicating things.
I'm not sure how anyone envisioned it would work. The idea came from the fact that I was inputting events on behalf of individuals who were unable to or were having issues submitting. As I inputted, it auto assigned whatever account I was under as the host.
Attached file bug891412 pull request (obsolete) —
Attachment #821211 - Flags: review?(david.humphrey)
Attachment #821211 - Flags: review?(cade)
Comment on attachment 821211 [details] [review]
bug891412 pull request

I've done a pass at this, but it really needs Chris and Kate to sign off on it.  Adding them for additional reviews.

Please fix my issues in the meantime.
Attachment #821211 - Flags: review?(david.humphrey) → review?(kate)
Comment on attachment 821211 [details] [review]
bug891412 pull request

Mostly this is good, a few fixes to the CSS (see http://jsbin.com/OdArOta/1/edit for an example) and adding gettext to your new string.
Attachment #821211 - Flags: review?(kate) → review-
Comment on attachment 821211 [details] [review]
bug891412 pull request

updated with suggested fixes
Attachment #821211 - Flags: review- → review?
Attachment #821211 - Flags: review? → review?(kate)
Attachment #821211 - Flags: review?(kate) → review+
Please rebass and squash; also run grunt to check/fix any style errors.
rebase*
Attachment #821211 - Flags: review?(cade)
Can we get this bug finished/landed please?  Barry/Kate?
Status: NEW → ASSIGNED
I did the cleanup and rebase but I can't test it locally due to some account issues (I'm constantly being logged out). I'll work on trying to resolve my account problem this week, but if someone could give it a quick test that would be appreciated. But I think it should be good to go unless Kate disagrees.
Can you try to rebase again and I would be happy to help with the test and landing this if this is still relevant.
Flags: needinfo?(barry.tulchinsky)
Note that the old Events platform at webmaker.org/events has been deprecated.

We have a new Events app running at events.webmaker.org.
* Question: Does the new events.webmaker.org app currently include the ability for admins to edit the "Host" field? (If so, we can mark this resolved fixed, right?)
Flags: needinfo?(kate)
Flags: needinfo?(gavin)
What is the host field? Is that the organizer's username? email?
Flags: needinfo?(kate) → needinfo?(matt)
Flags: needinfo?(barry.tulchinsky)
Same Q as Kate. My assumption is this ticket is no longer valid?
Flags: needinfo?(gavin)
* (Sorry for slow reply)

* Amira: just want to make sure you have what you need here, before we mark as resolved fixed / invalid. 

* The use case we need to support: where Amira or a staff member *enters an event FOR a user*. We need those events to show up with the right organizer username. So that an admin like Amira can input the correct username. 

* Amira: is that still a requirement, and does the new events platform provide it?
Flags: needinfo?(matt) → needinfo?(amira)
Yes...we still need this. I imagine in 2014 we will still have many partners and event organizers who need to need help uploading their event. If we help we need a way to transfer it to their Webmaker username so that in the contributions it counts as different people uploading events (and not 50% from Mozteach). 

Also, this is now reliant on us actually having access to the backend for the new events platform (of which I've already filled a separate bug).
Flags: needinfo?(amira)
Thanks Amira. So this ticket is still valid.

* Kate / Gavin: have re-scoped this ticket accordingly. to:
"Give admin users the ability to edit the event organizer username and email"

* make sense?
Depends on: 991829
Flags: needinfo?(kate)
Flags: needinfo?(gavin)
Summary: Give admin users the ability to edit the "host" field on webmaker.org/events → Give admin users the ability to edit the event organizer username and email
Yep, sounds good to me.

Note that there could be unexpected results if the username and email are changed to a username/email combination that either don't exist in our existing user database, or don't match
Flags: needinfo?(kate)
Flags: needinfo?(gavin)
Whiteboard: [crossteambugs] → [crossteambugs][pre-ah]
Assignee: barry.tulchinsky → gavin
If there's any way we can query a service to get a username from an email (or vice versa) to prevent bad pairs that'd be good. 

Otherwise, this patch should do the trick...
Attachment #821211 - Attachment is obsolete: true
Attachment #8410682 - Flags: review?(kate)
Attachment #8410682 - Flags: review?(kate) → review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: