Conversation
…nd eventmanager dashboard
| left: 2px; | ||
| position: relative; | ||
| opacity: 1; | ||
| } |
There was a problem hiding this comment.
You can try to leverage more on SCSS syntax for better performance in .scss files
| end | ||
|
|
||
| def source_params | ||
| params.permit(:event_source, :other) |
There was a problem hiding this comment.
What's the need for params.permit... here, given that the returned is later manipulated to give the required params[:event_source] ?
| <div class="col l12 m12"> | ||
| <h6>How did you find this event?</h6> | ||
| <hr> | ||
| <div class="col l2 m4"> |
There was a problem hiding this comment.
NITPICK: Indentation here can be better.
| <%= radio_button_tag("event_source", "Other", false, class: "modal-radio") %> | ||
| <%= text_field_tag("other", "", class: "modal-text") %> | ||
| </div> | ||
| </div> |
There was a problem hiding this comment.
NITPICK: Indentation on this div block can be better.
| ticket_number "MyString" | ||
| event_source "Facebook" | ||
| booking_id 1 | ||
| ticket_type_id 1 |
There was a problem hiding this comment.
Look into using Faker for getting random attributes here. I can see that it's already included into the project.
| scenario "User tries to attend past Event" do | ||
| visit events_path | ||
| find_link("Old Event").trigger("click") | ||
| click_link"Old Event" |
There was a problem hiding this comment.
space between click_link and "Old Event"
| } | ||
|
|
||
| .modal-radio[type="radio"]:not(:checked), | ||
| .modal-radio[type="radio"]:checked { |
There was a problem hiding this comment.
checked and not(:checked) are mutually exclusive. No need to specify the two... this could easily be .modal-radio[type="radio"]
| user = UserTicket.new(ticket_type_id: ticket_type_id, booking: @booking, | ||
| event_source: source_params) | ||
| tickets << user | ||
| end |
There was a problem hiding this comment.
There is way too much going on in this controller action which can be moved to the model... ( lean controllers fat models )
What does this PR do?
Creates a feature that captures and presents insights on how an event was found.
Description of Task to be completed?
As an event manager I can get actionable insights regarding the channels through which users found my event.
How should this be manually tested?
Clone repository and start the server.
Create an event manager profile and at least one event
Create a user profile and attend your event, an option requesting how event was found is now available.
Go to your event manager dashboard and check for the bookings, a field now shows how the event was found.
Any background context you want to provide?
Not really
What are the relevant pivotal tracker stories?
#129622087
Screenshots (if appropriate)
Questions: