Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ MAINTAINER Jihane Najdi <jnajdi@vt.edu>

# Default environment
ARG RAILS_ENV='development'
ARG ODSA_BRANCH='master'
ARG LTI_BRANCH='staging'
ARG ODSA_BRANCH=master

ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand Down
16 changes: 16 additions & 0 deletions app/controllers/course_offerings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -511,4 +511,20 @@ def course_offering_params
:label, :url, :self_enrollment_allowed)
end

require 'csv'

def export_events
# Example data — you will replace with real queries later
csv_data = CSV.generate(headers: true) do |csv|
csv << ["Event ID", "User ID", "Event Type", "Timestamp"]
csv << [1, 42, "viewed_lesson", Time.now]
csv << [2, 42, "completed_exercise", Time.now]
csv << [3, 99, "submitted_quiz", Time.now]
end

send_data csv_data,
filename: "course_#{params[:id]}_events.csv",
type: 'text/csv'
end

end
Empty file modified bin/annotate
100755 → 100644
Empty file.
Empty file modified bin/bourbon
100755 → 100644
Empty file.
Empty file modified bin/bundle
100755 → 100644
Empty file.
Empty file modified bin/bundler
100755 → 100644
Empty file.
Empty file modified bin/cap
100755 → 100644
Empty file.
Empty file modified bin/capify
100755 → 100644
Empty file.
Empty file modified bin/coderay
100755 → 100644
Empty file.
Empty file modified bin/console
100755 → 100644
Empty file.
Empty file modified bin/delayed_job
100755 → 100644
Empty file.
Empty file modified bin/dev
100755 → 100644
Empty file.
Empty file modified bin/dot2ruby
100755 → 100644
Empty file.
Empty file modified bin/erd
100755 → 100644
Empty file.
Empty file modified bin/erubis
100755 → 100644
Empty file.
Empty file modified bin/gem2gv
100755 → 100644
Empty file.
Empty file modified bin/haml
100755 → 100644
Empty file.
Empty file modified bin/htmldiff
100755 → 100644
Empty file.
Empty file modified bin/ldiff
100755 → 100644
Empty file.
Empty file modified bin/nokogiri
100755 → 100644
Empty file.
Empty file modified bin/oauth
100755 → 100644
Empty file.
Empty file modified bin/pry
100755 → 100644
Empty file.
Empty file modified bin/puma
100755 → 100644
Empty file.
Empty file modified bin/pumactl
100755 → 100644
Empty file.
Empty file modified bin/rackup
100755 → 100644
Empty file.
Empty file modified bin/rails
100755 → 100644
Empty file.
Empty file modified bin/rake
100755 → 100644
Empty file.
Empty file modified bin/rdoc
100755 → 100644
Empty file.
Empty file modified bin/redcarpet
100755 → 100644
Empty file.
Empty file modified bin/request-log-analyzer
100755 → 100644
Empty file.
Empty file modified bin/ri
100755 → 100644
Empty file.
Empty file modified bin/rspec
100755 → 100644
Empty file.
Empty file modified bin/ruby2gv
100755 → 100644
Empty file.
Empty file modified bin/sass
100755 → 100644
Empty file.
Empty file modified bin/sass-convert
100755 → 100644
Empty file.
Empty file modified bin/scss
100755 → 100644
Empty file.
Empty file modified bin/sdoc
100755 → 100644
Empty file.
Empty file modified bin/sdoc-merge
100755 → 100644
Empty file.
Empty file modified bin/sprockets
100755 → 100644
Empty file.
Empty file modified bin/thin
100755 → 100644
Empty file.
Empty file modified bin/thor
100755 → 100644
Empty file.
Empty file modified bin/tilt
100755 → 100644
Empty file.
Empty file modified bin/xml2gv
100755 → 100644
Empty file.
5 changes: 5 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@
post 'generate_gradebook' => :generate_gradebook, as: :gradebook
get 'add_workout' => :add_workout, as: :add_workout
post 'store_workout/:id' => :store_workout, as: :store_workout

# NEW ROUTE for Export Events CSV
member do
get :export_events
end
end

# All of the routes anchored at /users
Expand Down
Empty file modified docker-entrypoint.sh
100755 → 100644
Empty file.
Empty file modified docker-run.sh
100755 → 100644
Empty file.
Empty file modified docker-stop.sh
100755 → 100644
Empty file.
Empty file modified runservers.sh
100755 → 100644
Empty file.
Empty file modified scripts/start-prod.sh
100755 → 100644
Empty file.
Empty file modified scripts/start.sh
100755 → 100644
Empty file.
Empty file modified usr/resources/Python/FactorialTest.py
100755 → 100644
Empty file.
Empty file modified usr/resources/Python/FibonacciTest.py
100755 → 100644
Empty file.
Empty file modified usr/resources/Ruby/FactorialTest.rb
100755 → 100644
Empty file.
Empty file modified usr/resources/Ruby/FibonacciTest.rb
100755 → 100644
Empty file.