habitica/test/common/ops
Blade Barringer 35b92f13a3 Webhook improvements (#7879)
* refactor: Move translate test utility to helpers directory

* Add kind property to webhooks

* feat: Add options to create webhook route

* refactor: Move webhook ops into single file

* refactor: Create webhook objects for specific webhook behavior

* chore(tests): Add default sleep helper value of 1 second

* feat(api): Add method for groups to send out webhook

* feat(api): Add taskCreated webhook task creation

* feat(api): Send chat webhooks after a chat is sent

* refactor: Move webhook routes to own controller

* lint: Correct linting errors

* fix(api): Correct taskCreated webhook method

* fix(api): Fix webhook logging to only log when there is an error

* fix: Update groupChatRecieved webhook creation

* chore: Add integration tests for webhooks

* fix: Set webhook creation response to 201

* fix: Correct how task scored webhook data is sent

* Revert group chat recieved webhook to only support one group

* Remove quest activity option for webhooks

* feat: Send webhook for each task created

* feat: Allow webhooks without a type to default to taskScored

* feat: Add logic for adding ids to webhook

* feat: optimize webhook url check by shortcircuiting if no url is passed

* refactor: Use full name for webhook variable

* feat: Add missing params to client webhook

* lint: Add missing semicolon

* chore(tests): Fix inccorect webhook tests

* chore: Add migration to update task scored webhooks

* feat: Allow default value of webhook add route to be enabled

* chore: Update webhook documentation

* chore: Remove special handling for v2

* refactor: adjust addComputedStatsToJSONObject to work for webhooks

* refactor: combine taskScored and taskActivity webhooks

* feat(api): Add task activity to task update and delete routes

* chore: Change references to taskScored to taskActivity

* fix: Correct stats object being passed in for transform

* chore: Remove extra line break

* fix: Pass in the language to use for the translations

* refactor(api): Move webhooks from user.preferences.webhooks to user.webhooks

* chore: Update migration to set webhook array

* lint: Correct brace spacing

* chore: convert webhook lib to use user.webhooks

* refactor(api): Consolidate filters

* chore: clarify migration instructions

* fix(test): Correct user creation in user anonymized tests

* chore: add test that webhooks cannot be updated via PUT /user

* refactor: Simplify default webhook id value

* refactor(client): Push newly created webhook instead of doing a sync

* chore(test): Add test file for webhook model

* refactor: Remove webhook validation

* refactor: Remove need for watch on webhooks

* refactor(client): Update webhooks object without syncing

* chore: update webhook documentation

* Fix migrations issues

* chore: remove v2 test helper

* fix(api): Provide webhook type in task scored webhook

* fix(client): Fix webhook deletion appearing to delete all webhooks

* feat(api): add optional label field for webhooks

* feat: provide empty string as default for webhook label

* chore: Update webhook migration

* chore: update webhook migration name
2016-10-02 09:16:22 -05:00
..
addTask.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
allocate.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
allocateNow.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
blockUser.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
buy.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
buyArmoire.js fix(api): Armoire actually works randomly 2016-09-26 11:55:07 -05:00
buyGear.js refactor: move randomVal to a lib 2016-09-26 11:55:07 -05:00
buyHealthPotion.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
buyMysterySet.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
buyQuest.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
buySpecialSpell.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
changeClass.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
clearPMs.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
deletePM.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
disableClasses.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
equip.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
feed.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
hatch.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
hourglassPurchase.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
openMysteryItem.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
purchase.js Begin Fall Festival 2016 (#8043) 2016-09-20 20:11:32 -05:00
readCard.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
rebirth.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
releaseBoth.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
releaseMounts.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
releasePets.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
reroll.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
reset.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
revive.js chore: Add test shells for revive 2016-09-30 08:16:04 -05:00
scoreTask.test.js Shows quest progress notification when completing task #7922 (#7951) 2016-09-23 20:41:31 -05:00
sell.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
sleep.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
unlock.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
updateTask.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00