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

How Casey Fixed the YDC site 7/31/14 #2

Open
stuartteal opened this issue Aug 1, 2014 · 2 comments
Open

How Casey Fixed the YDC site 7/31/14 #2

stuartteal opened this issue Aug 1, 2014 · 2 comments

Comments

@stuartteal
Copy link
Collaborator

How Casey Fixed the YDC site 7/31/14

cd into the production version
ubuntu:/rails/campustheater-production/current
RAILS_ENV=production rails console

TakeoverRequest.where(:approved => false).map{|tr| puts tr.requested_person.display_name}

TakeoverRequest.where(:approved => false).first.destroy
(the first one in the array was the problem so that's why it's first.destroy)

@comp615
Copy link
Owner

comp615 commented Aug 1, 2014

Was it throwing errors? What was broken about it? We should fix the code
too so it does not happen again.

On Fri, Aug 1, 2014 at 11:22 AM, stuartteal [email protected]
wrote:

How Casey Fixed the YDC site 7/31/14

cd into the production version
ubuntu:/rails/campustheater-production/current
RAILS_ENV=production rails console

TakeoverRequest.where(:approved => false).map{|tr| puts
tr.requested_person.display_name}

TakeoverRequest.where(:approved => false).first.destroy
(the first one in the array was the problem so that's why it's
first.destroy)


Reply to this email directly or view it on GitHub
#2.

@stuartteal
Copy link
Collaborator Author

It was throwing mad errors. Someone in a takeover request had a req that
was nil so when the admin page tried to load it errored. We got a lot of
bug emails about it.

On Fri, Aug 1, 2014 at 2:24 PM, Charlie Croom [email protected]
wrote:

Was it throwing errors? What was broken about it? We should fix the code
too so it does not happen again.

On Fri, Aug 1, 2014 at 11:22 AM, stuartteal [email protected]
wrote:

How Casey Fixed the YDC site 7/31/14

cd into the production version
ubuntu:/rails/campustheater-production/current
RAILS_ENV=production rails console

TakeoverRequest.where(:approved => false).map{|tr| puts
tr.requested_person.display_name}

TakeoverRequest.where(:approved => false).first.destroy
(the first one in the array was the problem so that's why it's
first.destroy)


Reply to this email directly or view it on GitHub
#2.


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

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

No branches or pull requests

2 participants