Commit graph

478 commits

Author SHA1 Message Date
Matt Lott
1feb8a26a4 Add duplicate mail checks to updateCloseIoLeads.js
Fetching leads by name via Close.io API is not reliable.  Adding two
checks to protect against sending duplicate emails:
1. Query leads via recipient email to avoid creating duplicate leads.
Duplicate leads can result in duplicate automatic emails sent.
2. Lookup lead email activity when sending mails, and compare email
templates and recipient address.
2016-04-23 16:47:10 -07:00
Matt Lott
8f16f5f487 🐛Fix Close.io lead query by name 2016-04-22 10:23:40 -07:00
phoenixeliot
e2d08fa7cf Stuff
Partially fix ActivateLicensesModal.spec

[IN PROGRESS] Don't display deleted users

Move userID to classroom.deletedMembers on user delete (not retroactive)

Fix PDF links for course guides, remove old PDFs from repo

Remove deprecated SalesView

Remove underline for not-yet-linked student names

Only show class select when there's more than one

Ignore case when sorting student names

Use student.broadName instead of name for display and sorting

Fix initial load not showing progress after joining a course (hacky)

Fix text entry for enrollment number input

Fix enrollment statistics

Fix enrollment stats completely (and add back in per-class unenrolled count)

Add deletedMembers to classroom schema

More fixes to enrollment stats (don't count nonmember prepaids)

Don't use 0 as implicit false for openSpots

Update suggested number of credit to buy automatically

Fix classroom edit form ignoring cleared values

Add alert text when more users selected than enrollments available

Alert user when trying to assign course to unenrolled students

Alert user when assigning course to nobody

Add some tests for TeacherClassView bulk assign alerts

Fix TeacherClassView tests failing without demos

Use model/collection.fakeRequests :D

Remove unused comment

Fix handling of improperly sorted deleted users on clientside

Add test for moving deleted users to deletedMembers

Add script for moving all deleted classroom members to classroom.deletedMembers

Completely rewrite tallying up enrollment statistics

Fix some tests to not be dependent on logged-in user

Address PR comments

Fix default number of enrollments to buy

Fix i18n for not enough enrollments

Use custom error message for classroom name length
2016-04-19 12:32:20 -07:00
Scott Erickson
5a69936899 Update init-school-roles 2016-04-13 09:43:05 -07:00
Matt Lott
cd7ec7f8dd Send email when adding contacts to Close.io leads 2016-04-07 21:23:42 -07:00
Scott Erickson
29cd880480 Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
Scott Erickson
c3e5416166 Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
Cat Sync
debc337dd5 Add mongo script for finding which level(s) unlock a given level 2016-04-06 14:12:19 -04:00
Matt Lott
69b999866e 🐛Ignore parse error in updateCloseIoLeads.js 2016-04-04 18:37:04 -07:00
phoenixeliot
beb53d9f2f Various fixes and changes to teacher-accounts and teacher-dashboard 2016-04-04 15:42:29 -07:00
Scott Erickson
bd3a77da9f Implement teacher accounts 2016-04-04 15:18:06 -07:00
Matt Lott
f37e2ad93e Update code language usage script 2016-04-01 14:40:18 -07:00
Matt Lott
918915813f Rewrite updateCloseIoLeads.js
Moving user-specific information from customized fields to activity
notes
Lots of data reformatting and renaming
Lots of perf/readability improvements via async.parallel
2016-03-31 09:23:38 -07:00
Nick Winter
0c40d7fb65 Make addExternalSubs automatically fill in details for most common payment case 2016-03-28 15:34:33 -07:00
Matt Lott
1bab6cee88 Add school classroom search script 2016-03-17 17:36:45 -07:00
Matt Lott
4e0ee60dce Use trial request name for Close.io leads 2016-03-15 09:25:36 -07:00
Matt Lott
57e8e61b1c 🐛Fix update sales leads script URL encoding 2016-03-14 14:24:18 -07:00
Matt Lott
97f7026a4f Update Close.io sales lead creation
Moving lead upserting to background script
2016-03-14 09:35:57 -07:00
Matt Lott
79db3766f9 Clean up analytics script locations
Restricting /queries folder to read-only scripts
2016-03-11 13:17:26 -08:00
Matt Lott
d9a52c62f1 🐛Fix analytics revenue payment.created 2016-02-28 15:36:52 -08:00
Matt Lott
e56efe5921 Fix analytics MAUs and campaign paid users 2016-02-28 15:24:35 -08:00
Matt Lott
609884eb51 Update furthest course dashboard tables
Adding a second table, setting range to be 60 and 365 days.
Updating teacher columns to prioritize student paid status over
furthest student course.
2016-02-24 06:25:01 -08:00
Matt Lott
0d68953808 Add end date to active users analytics script 2016-02-24 06:25:01 -08:00
Scott Erickson
10402fa945 Make fix-arena-sessions script run across all classrooms 2016-02-19 13:13:45 -08:00
Matt Lott
8f216a6915 Fix analytics active users script
MAUs were not calculated correctly
Missing log data was not approximated correctly
2016-02-19 09:11:59 -08:00
Matt Lott
ce525e7d99 Add played definition to analytics dashboard 2016-02-18 09:14:36 -08:00
Matt Lott
1f01b3ffbd Update revenue analytics with payment.prepaidID 2016-02-17 13:01:09 -08:00
Matt Lott
73657d5428 Update analytics dashboard
Splitting out classroom and campaign active users
Adding more detailed active users graphs
Patching up missing analytics log events for 2/2/16-2/9/16
2016-02-16 09:23:42 -08:00
Matt Lott
410dda11b9 Update average level playtimes script 2016-02-11 15:13:57 -08:00
Scott Erickson
8c2b6868f1 Add script for fixing level session language settings in arena levels for classrooms 2016-02-11 12:32:59 -08:00
Nick Winter
435d5bb6d2 Improve getHomePageGroup and narrow to two variants 2016-02-08 14:20:30 -08:00
Scott Erickson
bb38c58903 Properly fix duplicate course instances
* Add script to merge existing course instances
* Have client only send one course instance creation
* Have server return existing course instance if one for the given classroom/course exists
* Remove bandaid code from ClassroomView
2016-02-08 12:48:29 -08:00
Matt Lott
e75bca2b43 Add active class definitions to analytics dashboard 2016-02-05 09:40:08 -08:00
Matt Lott
e8c22679d9 Add trials to active classes analytics dashboard
Only looking at active classrooms, split into paid, trial, and free.
Active class: 12+ students total, 6+ active in last 30 days.
2016-02-04 16:31:52 -08:00
Nick Winter
d874029539 Tweak schoolCounts script to list total number of schools 2016-02-02 15:13:54 -08:00
Nick Winter
729ebfec8f Add script to export all trial requests 2016-01-26 13:20:35 -08:00
Matt Lott
2546694b06 Updating latest teacher trials script
Restricting to approved trials, and pulling some extra user data.
2016-01-21 12:08:55 -08:00
Scott Erickson
a8f4f9d2ec Update updateCourses script and add course 5 to it with new screenshot 2016-01-15 09:46:24 -08:00
Matt Lott
c220ba9de4 School analytics scripts 2016-01-14 15:30:53 -08:00
Nick Winter
7adfc23f2a Look at subscriptionID instead of planID for checking active subscribers 2016-01-11 10:32:23 -08:00
Nick Winter
01b181ee43 Add script to find active subscribers by country 2016-01-11 09:50:44 -08:00
Nick Winter
848263d8a2 Merge pull request #3231 from weevilgenius/master
Fix up vagrant config
2015-12-21 15:54:33 -08:00
Matt Lott
9466cd7f74 🐛Fix level completions analytics string cache 2015-12-19 21:58:20 -08:00
Matt Lott
c721d863f8 Analytics aggregation script perf
Speeding up db finds.
Reducing memory usage via string caches.
2015-12-19 21:57:05 -08:00
Matt Lott
352e8283a7 Split analytics aggregation scripts 2015-12-19 15:02:39 -08:00
Matt Lott
c75673b515 Enrollment counts script 2015-12-17 16:30:06 -08:00
Matt Lott
a9e0447c7d Courses Ux funnels script 2015-12-17 15:37:23 -08:00
Matt Lott
fa25d12e67 Total managed subscriptions script 2015-12-16 16:39:46 -08:00
Nick Winter
7d7513eb3f Improvements to buildSchoolGraph to open a spreadsheet 2015-12-16 16:39:45 -08:00
Nick Winter
68f2a169dd Improve school suggestion rankings 2015-12-16 16:39:45 -08:00