Commit graph

601 commits

Author SHA1 Message Date
Tyler Renelle
c6634b5539 temp migration to remove invalid due dates since npmjs is down 2013-11-04 12:19:56 -08:00
Tyler Renelle
f467dcb3c9 [#1712] restore streaks, values, dates, tags that got lost in the
challenges migration
2013-11-04 01:41:23 -08:00
Tyler Renelle
62012a1052 fix adding challenges as subdoc to groups. write migration to restore those that have been created. Also in migration fix missing task.ids (taskSchema issue) 2013-11-02 18:05:14 -07:00
Tyler Renelle
4b4a043a5f [#1685] add help popover to explain challenge task coloring / charts 2013-11-01 11:09:49 -07:00
Tyler Renelle
2f83ac27ae [#1702] much more thorough migration of tasks to new schema, providing defaults
where task attrs fail type checks
2013-11-01 10:43:24 -07:00
Tyler Renelle
52a36a19e4 add agreement copy on registration. 2013-10-31 00:03:43 -07:00
Tyler Renelle
a90f37f35c more migration fixes, fix up metrics.js 2013-10-30 18:58:09 -07:00
Tyler Renelle
4764bf738c challenges: some more user cleanup in migration 2013-10-30 17:02:42 -07:00
Tyler Renelle
d2c50dc02f challenges: GET /groups now returns a merged array of groups, rather
than structured object of {public,guilds,party,tavern}. I was having
trouble with ngResource without doing this, @paglias let me know what
you think
2013-10-30 15:14:08 -07:00
Tyler Renelle
8b76b74d78 add profile.name in migration, ui-router in production grunt 2013-10-30 09:57:38 -07:00
Tyler Renelle
0151484279 merge @paglias migrations into our one big migration, so I can run it
all at once when the time comes. Had to make some changes (will comment
no github)
2013-10-30 01:46:49 -07:00
Tyler Renelle
02ebc536ca challenges: get Challenges (mostly) working along the same ui-router
principles as groups. Having some $scope variable resolution timing issues
2013-10-29 17:49:49 -07:00
Tyler Renelle
77fee06fdb gMerge branch 'challenges' into develop
Conflicts:
	migrations/20131028_cleanup_deleted_tags.js
	src/controllers/groups.js
	views/options/groups/group.jade
	views/options/profile.jade
2013-10-29 15:38:47 -07:00
Matteo Pagliazzi
9eecb977ea add migration to add invited users to group.invites, @lefnire I tried with _.each(db.users.find()) but doesnt seem to work for db records so I ended up using db.users.find().forEach... which instead seems to work. My first migration to cleanup deleted tags used _.each so I rewrote it using native forEach, just wanted to let you know that it is updated now. 2013-10-29 19:06:01 +01:00
Tyler Renelle
c5671550f1 challenges: add group.memberCount and ability to specifiy field projections in GET request /api/v1/groups?type=guild&fields=name,description,chat 2013-10-28 18:20:02 -07:00
Tyler Renelle
4ac0ef4ac2 challenges: migration script for TaskSchema subdocs, cleanup tags, remove old challenges 2013-10-28 12:27:50 -07:00
Matteo Pagliazzi
ffdfe0b734 migration to remove deleted tags from tasks 2013-10-28 15:55:34 +01:00
Tyler Renelle
9397c13960 add an "oh-shit" backtrack migration 2013-10-22 20:56:13 -07:00
Tyler Renelle
44cb797063 migrate: flags.ads -> purchased.ads (boolean); flags.newStuff to boolean 2013-10-22 18:50:50 -07:00
Tyler Renelle
4caec6f737 [#1444] implement delete-tag (incl server route). run tags-cleanup migration 2013-09-09 00:04:02 -04:00
Tyler Renelle
a461bda7b8 [#1491] remove old.habit from bailey notif 2013-09-08 22:01:20 -04:00
Tyler Renelle
ecc442285b [#1491] add user.loggedin on cron, some comments on remove-staging-users 2013-09-08 21:45:46 -04:00
Tyler Renelle
cbe23f638a [#1491] remove preen_cron, we won't be needing that anymore. add migration to
remove all staged accoutns
2013-09-08 21:15:57 -04:00
Tyler Renelle
1101a1c3f3 [#1491] some bug-fixes to corruption-cleanup, remove some unecessary
return-values on user route
2013-09-08 20:56:28 -04:00
Tyler Renelle
56080db5a1 [#1491] start adding corruption-cleanup migration, including egg cleanup
& granting gems for all broken eggs #1386
2013-09-08 20:23:57 -04:00
Tyler Renelle
0529f26323 shorter day-period preen_cron 2013-06-18 14:52:39 -04:00
Tyler Renelle
302721456d fix up some db indexes 2013-06-15 19:14:49 -04:00
Tyler Renelle
d4d7c32fa8 simpler empty parties preen 2013-06-15 18:20:52 -04:00
Tyler Renelle
b7d5c0808b delete the "migrate" script for now. can dig up this commit later,
the mongoskin async integration wasn't working for our purposes
2013-06-15 18:17:08 -04:00
Tyler Renelle
d25c9d24c0 groups-preennig typo 2013-06-15 17:31:31 -04:00
Tyler Renelle
013cc7e5b7 migrations: try adding a coffeescript method, which uses mongoskin to run the migrations. Looks like it's not quite there, collection.toArray() pulls all objects into memory which is too big to run the migrations - might have to stick to mongo scripts 2013-06-15 17:31:23 -04:00
Tyler Renelle
989d5839c4 more accurate "active users": 7417 2013-06-15 13:52:10 -04:00
Tyler Renelle
00e2841b78 history preen cleanup 2013-06-15 13:48:25 -04:00
Tyler Renelle
cc0206e54e preen-cron: some history-preening cleanup & coments 2013-06-15 13:13:48 -04:00
Tyler Renelle
5d05c815bd Merge branch 'preen-history' into develop
Conflicts:
	migrations/preen_cron.js
2013-06-15 12:44:42 -04:00
Tyler Renelle
22d4bb27ac preen-cron: fix up history cron, should be fully functional now 2013-06-15 12:01:03 -04:00
Tyler Renelle
6b307cd52c preen-script - we can't use load() because we don't know mongo shell
pwd() at server run-time
2013-06-14 19:19:08 -04:00
Tyler Renelle
42be939b12 preen-script: start implementing history-preening 2013-06-14 19:05:26 -04:00
Tyler Renelle
9361b015f6 preen-script: also remove empty parties 2013-06-14 17:01:50 -04:00
Tyler Renelle
67b2174c3d finish metrics script. current total: unregistered: 180931 registered:
52101 active: 4182 (@Slappybag)
2013-06-14 16:56:42 -04:00
Tyler Renelle
8c27f96d08 start with metrics mongo script - still need to add "active users" 2013-06-14 16:17:41 -04:00
Tyler Renelle
20196a9383 preen-cron: remove the date, it's not a migration but a cron script 2013-06-14 16:17:25 -04:00
Tyler Renelle
38b4e3322e preen-script: some cleanup and better checking of lastCron 2013-06-14 16:09:26 -04:00
Tyler Renelle
6ab64e2df1 add migration script for moving facebook auth'd users to local
auth (seems people hate facebook)
2013-06-14 15:56:27 -04:00
Tyler Renelle
dfc0556965 survey rewards: add individual migration for missing users 2013-06-12 14:22:43 -04:00
Tyler Renelle
a5a57a244b fix survey migration 2013-06-04 10:32:33 -04:00
Tyler Renelle
d13db1623f fix survey gem inc 2013-06-03 20:22:51 -04:00
Tyler Renelle
c5bdf1bbe6 Merge branch 'develop' of github.com:lefnire/habitrpg into develop 2013-06-03 19:16:21 -04:00
Tyler Renelle
c1cda30582 achievements: add migration for survey achievements 2013-06-03 19:15:48 -04:00
Slappybag
501e016e09 CSV Export supports null values 2013-06-03 23:08:42 +01:00
Tyler Renelle
2666ebb1fc guilds: generic handling of invitations (incl. accept, reject, invite, etc) 2013-05-28 00:48:35 +01:00
Tyler Renelle
fa9e6f5453 challenges: migrated drop groups collection if exists (mostly for debugging) 2013-05-27 21:14:22 +01:00
Tyler Renelle
35049f7752 Merge branch 'develop' into challenges-tmp
Conflicts:
	src/app/helpers.coffee
	src/app/index.coffee
2013-05-26 15:29:59 +01:00
Tyler Renelle
03c40c1571 challenges: migration & store: rename parties to groups, create habitrpg guild, move tavern into habitrpg, overhaul of motifs and subscriptions 2013-05-26 15:09:21 +01:00
Tyler Renelle
73fe8ebfdd fix preen_cron 2013-05-23 15:06:42 +01:00
Tyler Renelle
60a4ce5888 update find_unique_user to use lodash 2013-05-23 14:40:34 +01:00
Tyler Renelle
cc097c32f7 clean up of preen_cron, which I'm re-enstating 2013-05-21 12:54:06 +01:00
Tyler Renelle
d3fdd051e1 backer: fix pets html, add migration 2013-05-08 21:40:01 +01:00
Tyler Renelle
14ab8347ad typo 2013-05-08 13:20:22 +01:00
Tyler Renelle
a69fdcc369 add migration script to fix rogue parties 2013-05-08 13:14:32 +01:00
Tyler Renelle
9c061fadc1 apply backer tier to their backer property, add tokens if not already there, disable ads, etc 2013-05-07 16:19:09 +01:00
Tyler Renelle
53d76ed4fb rename csvexport.phy to .py 2013-05-07 16:06:16 +01:00
Tyler Renelle
59f9b742d9 tags: add migration to set initial empty tags to an array - why was it
being set to an object?
2013-05-07 10:27:31 +01:00
Stan Lindsey
671f843d30 csv export script 2013-05-05 17:00:59 +01:00
Tyler Renelle
5a5d8ec2da add migration for current users with ultimate gear 2013-05-03 16:31:16 +01:00
Tyler Renelle
234d3725be nix the "remove if empty auth & no more session" cron task 2013-04-04 18:01:53 -04:00
Tyler Renelle
157f0400e1 fix tokens migration script 2013-03-28 00:25:45 -07:00
Tyler Renelle
83bfee0fa3 and include email in apply_tokens 2013-03-27 23:23:19 -07:00
Tyler Renelle
30d92a1583 add username to tokens migration 2013-03-27 16:02:29 -07:00
Tyler Renelle
56eccabe5a apply tokens migration script 2013-03-27 14:19:11 -07:00
Tyler Renelle
bf7fe8ff53 pets: migration working, but still don't understand why some users
already have pets as new structure not old
2013-03-26 22:14:47 -07:00
Tyler Renelle
3340ee767d pets: @WIP add migration script from old to new system (not working) 2013-03-26 20:23:01 -07:00
Tyler Renelle
72e81b8891 #315 fixes: newValue not accessible at scope, only remove duff history
entries, not all
2013-03-10 11:40:58 -04:00
Philip How
b6a7d63c21 changed migration comment 2013-03-08 00:23:08 +00:00
Philip How
24c7677764 Migration script for removing old dailies histories 2013-03-08 00:20:46 +00:00
Tyler Renelle
1fadb7955a add exp overflow migration 2013-03-07 14:28:24 -05:00
Tyler Renelle
eba727249e add find_unique_user script for lost user accounts (https://github.com/lefnire/habitrpg/wiki/User-ID) 2013-03-07 13:40:04 -05:00
Tyler Renelle
05bd0fdd52 semi-colons 2013-03-07 13:16:47 -05:00
Tyler Renelle
63c00a7261 add @MrConcepts normalization migration for busted busted values, and
in preparation for another big algorithm upgrade
2013-03-07 12:53:45 -05:00
Tyler Renelle
999669a2fe remove expired sessions on cron too. Eventually expired sessions
handled by connect-mongo, but we had expiry default to 1yr - ridic.
Set to 2 weeks instead. Also, delete staged users after 3 days instead
of 7
2013-02-15 22:30:27 -05:00
Tyler Renelle
c0efb23961 move preen_users to real cron (remember to setup on the server with crontab) 2013-02-13 11:08:21 -05:00
Tyler Renelle
0dac392b57 some more comments in preen_users, 7 days 2013-02-13 10:47:39 -05:00
Tyler Renelle
18f068ed5c move preen cron to migratin 2013-02-12 22:32:39 -05:00
Tyler Renelle
7f754517a4 disappearing habits 2013-02-08 22:02:25 -05:00
Tyler Renelle
5ea0dfe713 move idList back to root-level, is what's causing the sort bug - see https://github.com/codeparty/racer/pull/73 2013-02-08 21:03:56 -05:00
Tyler Renelle
648032228a .main-avatar popovers were all clobbering eachother 2013-02-08 18:45:22 -05:00
Tyler Renelle
51848acec1 add popovr customizations notification 2013-02-08 18:22:26 -05:00
Tyler Renelle
59ca3ece89 add migration for customizations push 2013-02-08 15:01:24 -05:00
Tyler Renelle
c82a10a670 don't migrate already-migrated users 2013-02-06 14:30:05 -05:00
Tyler Renelle
9723f3c37a don't need public/private paths after all, can check path requests in store accessControl callbacks 2013-02-04 23:32:40 -05:00
Tyler Renelle
629ba2df79 fix up migration to only save clean fields 2013-02-04 20:24:40 -05:00
Tyler Renelle
927a3d0aa7 starting big migration 2013-02-04 17:30:46 -05:00
Tyler Renelle
5e7187dbcd add count habits mongo script, for the kickstarter blog post 2013-02-04 13:03:25 -05:00
Tyler Renelle
995e699130 fix to prefs migration 2013-01-31 21:28:55 -05:00
Tyler Renelle
910e67684e add armorSet to prefs migration 2013-01-31 21:22:03 -05:00
Tyler Renelle
8fa318f900 add migration for adding missing preferences (to be run) 2013-01-31 21:21:46 -05:00
Tyler Renelle
aca5ad4ca7 handle missing crons @WIP 2013-01-28 22:32:04 -05:00
Tyler Renelle
2db92d72a5 cleanup cron 2013-01-28 15:53:26 -05:00
Tyler Renelle
63c6420b87 Merge branch 'master' into preen-users 2013-01-28 15:21:01 -05:00
Tyler Renelle
e747e8f2b9 add remove_dummy_acounts migration 2013-01-28 15:12:28 -05:00
Tyler Renelle
9337414224 add completed/todo merge migration a la @toebu 2013-01-28 15:09:10 -05:00