habitica-self-host/website/server/libs
Matteo Pagliazzi 26c8323e70
Move inbox to its own model (#10428)
* shared model for chat and inbox

* disable inbox schema

* inbox: use separate model

* remove old code that used group.chat

* add back chat field (not used) and remove old tests

* remove inbox exclusions when loading user

* add GET /api/v3/inbox/messages

* add comment

* implement DELETE /inbox/messages/:messageid in v4

* implement GET /inbox/messages in v4 and update tests

* implement DELETE /api/v4/inbox/clear

* fix url

* fix doc

* update /export/inbox.html

* update other data exports

* add back messages in user schema

* add user.toJSONWithInbox

* add compativility until migration is done

* more compatibility

* fix tojson called twice

* add compatibility methods

* fix common tests

* fix v4 integration tests

* v3 get user -> with inbox

* start to fix tests

* fix v3 integration tests

* wip

* wip, client use new route

* update tests for members/send-private-message

* tests for get user in v4

* add tests for DELETE /inbox/messages/:messageId

* add tests for DELETE /inbox/clear in v4

* update docs

* fix tests

* initial migration

* fix migration

* fix migration

* migration fixes

* migrate api.enterCouponCode

* migrate api.castSpell

* migrate reset, reroll, rebirth

* add routes to v4 version

* fix tests

* fixes

* api.updateUser

* remove .only

* get user -> userLib

* refactor inbox.vue to work with new data model

* fix return message when messaging yourself

* wip fix bug with new conversation

* wip

* fix remaining ui issues

* move api.registerLocal, fixes

* keep only v3 version of GET /inbox/messages
2018-09-21 15:12:20 +02:00
..
auth Move inbox to its own model (#10428) 2018-09-21 15:12:20 +02:00
challenges Fix user receiving Joined Challenged achievement when creating a challenge (#10559) 2018-07-30 16:00:05 +02:00
chat Move inbox to its own model (#10428) 2018-09-21 15:12:20 +02:00
chatReporting Move inbox to its own model (#10428) 2018-09-21 15:12:20 +02:00
coupons Move inbox to its own model (#10428) 2018-09-21 15:12:20 +02:00
inbox Move inbox to its own model (#10428) 2018-09-21 15:12:20 +02:00
payments Remove parallel calls to save (#10416) 2018-06-01 15:56:01 +02:00
queue Make Kafka dep optional (#10129) 2018-03-14 18:21:39 +01:00
user Move inbox to its own model (#10428) 2018-09-21 15:12:20 +02:00
analyticsService.js Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
apiError.js moving developer-only strings to api/common messages (#10258) 2018-05-04 16:00:19 -05:00
aws.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
bannedSlurs.js removed a slur that has legit uses - TRIGGER / CONTENT WARNING: slurs, swearwords, assault, etc 2018-04-14 21:51:06 +10:00
bannedWords.js add swear words - TRIGGER / CONTENT WARNING: assault, slurs, swearwords, etc 2018-09-15 14:45:39 +10:00
baseModel.js Revert "Small Updates (#10701)" (#10702) 2018-09-20 22:36:46 +02:00
buildManifest.js typo, correct prod check in build manifest 2016-09-21 16:33:38 +02:00
chat.js Refactored group chat flagging (#9907) 2018-02-11 08:35:24 -07:00
client.js fix hard links for new client (#8986) 2017-08-24 18:19:31 +02:00
collectionManipulators.js item pinning (#8918) 2017-08-14 19:15:32 +02:00
cron.js Analytics: More / improved tracking (#10608) 2018-08-20 14:13:22 -05:00
csvStringify.js Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
email.js only store necessary data for social login (continuation of 10352) (#10395) 2018-05-25 18:16:30 +02:00
encryption.js Updated encryption 2018-01-25 17:33:50 -06:00
errors.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
groupTasks.js Group Tasks Shared Completion (#10515) 2018-07-20 12:29:44 -05:00
guildsAllowingBannedWords.js exempt The Rhyme Commando guild from the swearword blocker 2018-05-01 13:31:56 +10:00
i18n.js Localize time for due dates and chat messages (#10555) 2018-08-03 11:57:43 +02:00
inAppPurchases.js Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
logger.js make unhandled promise rejections easier to find among logs 2018-05-01 12:09:30 +02:00
password.js Api quest restrictions - no purchase/start without fulfilling eligibility requirements (#10387) 2018-05-27 16:41:56 +02:00
preening.js fix preening when history entries are null 2018-06-29 20:03:45 +02:00
pusher.js Format files to adhere to editorconfig (#7977) 2016-09-07 12:58:26 -05:00
pushNotifications.js iOS push notifications, use node-apn (#10517) 2018-07-12 12:56:15 +02:00
routes.js New inbox client (#10644) 2018-08-30 14:50:03 -05:00
setupMongoose.js add ability to specify pool size for mongodb (#10481) 2018-06-28 11:02:26 +02:00
setupNconf.js Use config when starting development server (#9410) 2017-11-27 20:38:27 -06:00
setupPassport.js fixes #10423 (#10425) 2018-06-04 14:16:30 +02:00
slack.js limit chat message flagging ability for new players - fixes #10069 (#10567) 2018-08-03 12:04:01 +02:00
sleep.js Node 8 (WIP) (#9946) 2018-03-15 19:59:36 +01:00
spells.js Move inbox to its own model (#10428) 2018-09-21 15:12:20 +02:00
stringUtils.js improve code and tests for banned words and slurs (#10211) 2018-04-08 15:31:37 +02:00
taskManager.js Group Tasks Shared Completion (#10515) 2018-07-20 12:29:44 -05:00
webhook.js Members: user .lean() to improve performances (#10399) 2018-05-28 13:38:59 +02:00