Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added contactable to tracks #2541

Merged
merged 1 commit into from
Oct 24, 2019
Merged

Conversation

rishabhptr
Copy link
Contributor

@rishabhptr rishabhptr commented Jun 13, 2019

Related to #2528

I have tried couple of different ways to use the contact model for social media fields. I have chosem this approach so as to enable for the user to add all fields at the same time in a single form while creating the track using nested attributes.

Also, as contact model has a has_one relationship with conference model I need to pass the conference_id as it is mandatory but I believe this will break the previous mechanism where a conference had one contact which could be fetched to show on the splashpage. So we would need to modify this relationship as well.

At this point I need to decide if I should use this model or just add the social fields in the main Track/Booth model itself.

image

Apart from this other fields like :code_of_conduct_accepted, :additional_requirements etc are pretty straightforward and after this I can work on the different views related to these details.

@codecov
Copy link

codecov bot commented Jun 16, 2019

Codecov Report

Merging #2541 into master will decrease coverage by 14.84%.
The diff coverage is 18.18%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #2541       +/-   ##
===========================================
- Coverage   76.46%   61.62%   -14.85%     
===========================================
  Files         146      146               
  Lines        4810     5016      +206     
===========================================
- Hits         3678     3091      -587     
- Misses       1132     1925      +793
Impacted Files Coverage Δ
app/controllers/tracks_controller.rb 0% <0%> (-97.37%) ⬇️
app/models/track.rb 94.95% <100%> (-4.2%) ⬇️
app/models/contact.rb 77.77% <100%> (+2.77%) ⬆️
...p/controllers/admin/ticket_scannings_controller.rb 0% <0%> (-100%) ⬇️
app/controllers/api/v1/rooms_controller.rb 0% <0%> (-100%) ⬇️
app/controllers/api/v1/events_controller.rb 0% <0%> (-100%) ⬇️
app/controllers/api/v1/conferences_controller.rb 0% <0%> (-100%) ⬇️
app/controllers/api/base_controller.rb 0% <0%> (-100%) ⬇️
app/controllers/api/v1/tracks_controller.rb 0% <0%> (-100%) ⬇️
app/controllers/confirmations_controller.rb 0% <0%> (-100%) ⬇️
... and 43 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b12830...739fe62. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 16, 2019

Codecov Report

Merging #2541 into GSoC19 will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           GSoC19    #2541      +/-   ##
==========================================
+ Coverage   82.29%   82.33%   +0.04%     
==========================================
  Files         147      147              
  Lines        4795     4801       +6     
==========================================
+ Hits         3946     3953       +7     
+ Misses        849      848       -1
Impacted Files Coverage Δ
app/controllers/tracks_controller.rb 97.56% <100%> (+0.19%) ⬆️
app/models/track.rb 99.16% <100%> (+0.01%) ⬆️
app/models/contact.rb 88.88% <100%> (+1.38%) ⬆️
app/controllers/commercials_controller.rb 96.42% <0%> (+3.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 770a63e...465976b. Read the comment docs.

@differentreality
Copy link
Contributor

Please do correct me if I am wrong, but I don't think we are providing an option for people to submit information such as the project's source code location or the project's license.

@rishabhptr
Copy link
Contributor Author

rishabhptr commented Jun 16, 2019

@differentreality The Social Media fields covers the different platforms and yes there is no specific fields for the code repository. I intended to have a website_url, email , github/repo fields in the track model itself and use the contact model for capture the media platforms.

But I liked the idea for project license, but should we add a special field for this?

The other information apart from these in the track submission that I propose are :
:code_of_conduct_accepted boolean
:additional_requirements string
size integer

:track_type - which can be selected from a drop down with choices much like event_types which I will cover in my next PR.

These are the details that I am planning to include in the submission from the users for tracks.

Copy link
Member

@Ana06 Ana06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the branch to which you submit your changes should be openSUSE:GSoC19. The code LGTM 👍

db/schema.rb Outdated
ActiveRecord::Schema.define(version: 20190612161235) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this here? In general, why does this file have that many changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some unwanted changes were introduced during db migrations . I will check it again in my new PR against the GSoC19 branch.

@rishabhptr rishabhptr changed the base branch from master to GSoC19 June 18, 2019 07:07
@differentreality
Copy link
Contributor

@rishabhptr so what are you suggesting for the other links we want to show (email, license, etc)? Add fields in Track model? And then in Booth model?

@rishabhptr
Copy link
Contributor Author

@differentreality As of now yes, any specific field like email, website/license which we can identify would go in the track/booth model itself.

@Ana06
Copy link
Member

Ana06 commented Jun 27, 2019

@differentreality can we get this merged or are there still concerns?

@rishabh92 can you please rebase? there are some commits that shouldn't be here.

We should fix #2540 because is blocking the PRs as well.

@Ana06 Ana06 added the GSoC GSoC 19 related issues/PR label Jul 4, 2019
@differentreality
Copy link
Contributor

@rishabhptr please keep an eye out on Travis and fix the linters failures, we cannot merge ortherwise!

@rishabhptr
Copy link
Contributor Author

rishabhptr commented Jul 19, 2019

@differentreality I have fixed the linters, but the feature test were failing due to the webdriver issue which is now resolved in master. Maybe we should bring in the latest changes to the GSoC19 branch?

@differentreality
Copy link
Contributor

@differentreality can we get this merged or are there still concerns?

@Ana06 not concerns per se, but we will probably need to use the same fields for Booth as well.

@rishabhptr rishabhptr force-pushed the contactable branch 2 times, most recently from 769fc41 to 4232dd8 Compare July 21, 2019 10:07
Copy link
Contributor

@differentreality differentreality left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tracks#new form is now quite longer, making it less easy/pleasant for someone to submit a track proposal

@differentreality
Copy link
Contributor

Screenshots would be helpful here too 😉

@differentreality
Copy link
Contributor

@rishabhptr please rebase

Added social media fields to track submission form
by using a polymorphic association with the
Contact Model.
@rishabhptr
Copy link
Contributor Author

rishabhptr commented Aug 9, 2019

@differentreality Yes, the form is quite longer now. Maybe we could ask for the other fields at a later stage.

Right now when the track is accepted and then confirmed by the submitter, the user is able to manage his track but he cannot edit the details as it make sense to not change them after submission.

However, we can include the option to add fields such as social media in a separate tab in the show page. So that the user can update these details there.

Screenshot from 2019-08-09 18-39-40
Screenshot from 2019-08-09 18-38-46

As for booths, we can allow the user to edit his submission add these additional information upon being accepted and not before.

@differentreality differentreality merged commit a96722b into openSUSE:GSoC19 Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSoC GSoC 19 related issues/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants