Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
605fc702
Commit
605fc702
authored
Dec 07, 2012
by
Kevin Chugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update rake file
parent
4aefab34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
lib/tasks/flags.rake
+22
-5
No files found.
lib/tasks/flags.rake
View file @
605fc702
...
@@ -6,15 +6,32 @@ roots['production'] = "http://edx.org"
...
@@ -6,15 +6,32 @@ roots['production'] = "http://edx.org"
ROOT
=
roots
[
ENV
[
'SINATRA_ENV'
]]
ROOT
=
roots
[
ENV
[
'SINATRA_ENV'
]]
namespace
:flags
do
namespace
:flags
do
#USAGE
#SINATRA_ENV=development rake flags:flagged
task
:flagged
=>
:environment
do
task
:flagged
=>
:environment
do
flagged
=
Content
.
flagged
flagged
=
Content
.
flagged
courses
=
{}
flagged
.
each
do
|
f
|
flagged
.
each
do
|
f
|
if
f
.
attributes
.
include?
"comment_thread_id"
id
=
f
.
comment_thread_id
if
not
courses
[
f
.
course_id
]
else
courses
[
f
.
course_id
]
=
[]
id
=
f
.
id
end
courses
[
f
.
course_id
]
<<
f
end
courses
.
each
do
|
k
,
v
|
puts
"
#{
k
.
upcase
}
"
puts
"****************"
v
.
each
do
|
f
|
puts
"
#{
ROOT
}
/courses/
#{
f
.
course_id
}
/discussion/forum/
#{
f
.
commentable_id
}
/threads/
#{
f
.
comment_thread_id
}
(
#{
f
.
class
}
)"
end
end
puts
"
#{
ROOT
}
/courses/
#{
f
.
course_id
}
/discussion/forum/
#{
f
.
commentable_id
}
/threads/
#{
id
}
"
puts
"
\n\n\n\n
"
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment