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

Migrate home page and CSV parsing logic #32

Merged
merged 7 commits into from
Oct 23, 2024
Merged

Conversation

colbyendres
Copy link
Collaborator

Currently, the home page after login is the index for user. This isn't useful, so change it to land on schedules instead.

@colbyendres colbyendres marked this pull request as draft October 18, 2024 18:42
@colbyendres
Copy link
Collaborator Author

I've also taken the liberty of migrating the CSV uploading/parsing logic to a separate service. CSV parsing doesn't really fit into the MVC paradigm so it makes sense to take it out of the controllers. This cleans up the code and admits a more modular way of reading in our datasets

@colbyendres colbyendres marked this pull request as ready for review October 21, 2024 23:59

flash[:notice] = "Welcome back, #{@current_user.first_name}!" unless flash[:notice] || flash[:error]
redirect_to user_path(@current_user)
redirect_to schedules_path
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PR title

@colbyendres colbyendres changed the title Migrate homepage to schedule index Migrate home page and CSV parsing logic Oct 22, 2024
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require 'csv'
# require_relative '../services/csv_handler'
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove comment

Copy link
Collaborator

@Naviunni Naviunni left a comment

Choose a reason for hiding this comment

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

LGTM

@navyapriyanandi-tamu navyapriyanandi-tamu merged commit 0e047d2 into main Oct 23, 2024
2 checks passed
@colbyendres colbyendres deleted the move_home branch October 23, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants