Skip to content
This repository was archived by the owner on May 10, 2022. It is now read-only.

Multiple free responses; image free responses #191

Merged
merged 26 commits into from
Jan 30, 2013
Merged

Conversation

jpslav
Copy link
Member

@jpslav jpslav commented Jan 28, 2013

Introduces ability to have multiple free responses per student exercise; can upload photos as free response, stored in S3; this preps for the upload-by-email feature

@jpslav
Copy link
Member Author

jpslav commented Jan 28, 2013

@kevinburleigh75 please review this PR. also please test the migrations on a copy of the production DB.

@kjdav will need you to test this. changes are mostly just on the student exercise workflow, but also shows up in the XLS report and student assignment viewing page.

we're going to want to get this in ASAP.

@@ -151,7 +152,8 @@ def redirect_maintenance
end

def enable_timeout
@enable_timeout = true
# disable in development
@enable_timeout = !Rails.env.development?
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be !Rails.env.production? to also include the test environment?

Copy link
Member Author

Choose a reason for hiding this comment

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

to include the test env should be what you say without the !

@jpslav
Copy link
Member Author

jpslav commented Jan 29, 2013

@kevinburleigh75 I pushed changes for your comments;

@kjdav this also includes the "attach" language for the buttons, see how you like it.

</span>
</div>

<%= f.file_field :attachment, :style => 'width:97.5%%' %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the double % after 97.5 a typo?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep will fix.

padding: 8px;
}
</style>

Copy link
Contributor

Choose a reason for hiding this comment

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

Is the plan to move this to assets/stylesheets/ at some point?

Copy link
Member Author

Choose a reason for hiding this comment

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

Moved.

@kevinburleigh75
Copy link
Contributor

I looked everything over; there are a few minor comments and one apparently real typo.

The FreeResponse table has a field named "content", which is super-vague and appears to be double-booked depending on the "derived type" (caption vs response). Perhaps we should at least rename it to "text_content" or something. A similar argument could potentially be made for the "attachment" field...

I say go ahead and merge it as is and we can work out these details separately.

jpslav added a commit that referenced this pull request Jan 30, 2013
Multiple free responses; image free responses
@jpslav jpslav merged commit 85858b2 into master Jan 30, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants