Closed
Bug 951761
Opened 11 years ago
Closed 10 years ago
Tracking metrics on Hour of Code Thimble Tutorials
Categories
(Webmaker Graveyard :: Metrics, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: lainie, Assigned: cade)
Details
Attachments
(4 files)
Is there a way to find out how many times each of the following projects was remixed between Dec. 9-15? * https://thimble.webmaker.org/project/26846/remix * https://thimble.webmaker.org/project/23490/remix * https://thimble.webmaker.org/project/22957/remix * https://thimble.webmaker.org/project/23585/remix * https://thimble.webmaker.org/project/22915/remix * https://thimble.webmaker.org/project/26618/remix * https://thimble.webmaker.org/project/27660/remix Would like to compile info for a potential Webmaker Hour of Code recap.
Updated•11 years ago
|
Assignee: nobody → cade
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•11 years ago
|
||
I've got a working API method for this on a local branch. Though, what I've implemented just leverages things we already have. Every Make knows which make it was remixed from, so I search for makes whose remixedFrom field === the id of the make in question. Then you can count the total results, or, you iterate over each remix result and compare it's createdAt date to a specific Date range, giving you the total number of remixes in a specific time period. This method could be expanded to include some kind of depth level, I.E. remixes of remixes of remixes ....
Assignee | ||
Comment 2•11 years ago
|
||
Assignee | ||
Comment 3•11 years ago
|
||
This and the above patch implement the remixCount route on the MakeAPI. It takes a Make ID, and a from and to date, and calculates how many makes were made for the given project in the given time range. I added UI on the Make editor for this. Using the grid, you click on the ID of the make you want to query for, and it's applied to the remix count input below the grid. you select a start and end date using the date input boxes and then press "Get Remix Count". The total count is displayed.
Assignee | ||
Comment 4•11 years ago
|
||
Could you link the publish URL's of those Makes in comment 0? I'll try and get the data manually tomorrow morning, so we don't have to wait for this to land.
Flags: needinfo?(lainie)
Here you go! https://artychan.makes.org/thimble/a-rainy-day https://mopaxian.makes.org/thimble/my-handy-todo-app https://humphd.makes.org/thimble/coding-maps-with-leafletjs https://fuzzyfox.makes.org/thimble/tictactoe-tutorial-version https://nwp.makes.org/thimble/poetry-180-animate https://techkim.makes.org/thimble/let-it-snow https://cogdog.makes.org/thimble/corys-mood-room
Flags: needinfo?(lainie)
Assignee | ||
Comment 6•10 years ago
|
||
I'm not sure if my script is working properly, but here's what I get: https://gist.github.com/cadecairos/1c0f5ad13b3b853e10f5 Are you sure those makes were being remixed?
Flags: needinfo?(lainie)
Assignee | ||
Comment 7•10 years ago
|
||
aha! It was my code. I was only fetching at most ten remixes per url. Each make has thousands XD I will work on fixing up the script.
Flags: needinfo?(lainie)
Assignee | ||
Comment 8•10 years ago
|
||
https://gist.github.com/cadecairos/4b323796a8906d6bb765 Teh results from my updated script look much better!
Assignee | ||
Comment 9•10 years ago
|
||
For future reference, this is the script I used to generate the remix metrics.
Assignee | ||
Comment 10•10 years ago
|
||
https://gist.github.com/cadecairos/8221548
Assignee | ||
Updated•10 years ago
|
Attachment #8350319 -
Flags: review?(scott)
Assignee | ||
Updated•10 years ago
|
Attachment #8350324 -
Flags: review?(scott)
Reporter | ||
Comment 11•10 years ago
|
||
Super helpful. Thank you!
Updated•10 years ago
|
Attachment #8350319 -
Flags: review?(scott) → review+
Updated•10 years ago
|
Attachment #8350324 -
Flags: review?(scott) → review+
Comment 12•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/makeapi-client https://github.com/mozilla/makeapi-client/commit/5e72384efc85abfec5b3b4a59414a19b85470761 Bug 951761 - remixCount function and documentation
Comment 13•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/MakeAPI https://github.com/mozilla/MakeAPI/commit/6dd68f61b3c09d85c992af949b8fe81871af558c Bug 951761 - Add route remixCount route, Admin page support for remixCount
Comment 14•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/MakeAPI https://github.com/mozilla/MakeAPI/commit/611c6fc2fc89ae9fe03048eca2bf857e51c8595c Bug 951761 - Remix Count fixes for make admin page
Assignee | ||
Comment 15•10 years ago
|
||
This is on prod now, but I realized that the route can't count makes with > 10 remix results properly... a patch is on the way.
Assignee | ||
Comment 16•10 years ago
|
||
I've completely changed the way this works to make life easier. The previous approach I took got a list of remakes, and looped over them to check if the remix happened in a specific date range. This time, I extended the querybuilder so that it uses a remixedFrom filter and the all-new range filter to check the createdAt value. This method eliminates the need for any make data to be looped over as I can just return the total count of hits elasticsearch reports
Attachment #8355333 -
Flags: review?(scott)
Reporter | ||
Comment 17•10 years ago
|
||
Does this mean the numbers in comment #8 are no longer valid?
Comment 18•10 years ago
|
||
@lainie I believe the numbers are still good. It looks like he just changed it to do the same thing faster and with less code to maintain.
Comment 19•10 years ago
|
||
Comment on attachment 8355333 [details] [review] https://github.com/mozilla/MakeAPI/pull/186 I like where you're going with this. Some questions in the pull request.
Attachment #8355333 -
Flags: review?(scott) → review-
Assignee | ||
Comment 20•10 years ago
|
||
(In reply to lainie from comment #17) > Does this mean the numbers in comment #8 are no longer valid? (In reply to Scott [:thecount] Downe from comment #18) > @lainie I believe the numbers are still good. It looks like he just changed > it to do the same thing faster and with less code to maintain. Yes, The numbers are still valid, I just improved the way I get them.
Assignee | ||
Updated•10 years ago
|
Attachment #8355333 -
Flags: review- → review?(scott)
Updated•10 years ago
|
Attachment #8355333 -
Flags: review?(scott) → review+
Comment 21•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/MakeAPI https://github.com/mozilla/MakeAPI/commit/19d987d7d805215d69ad6344240de69be7afc18d Bug 951761 - Better method for counting remixes
Assignee | ||
Comment 22•10 years ago
|
||
All fixed! now you can find remix metrics for every make using a date range using the Make Editor.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•