Phillip Thelen
d4a5823916
Fix one-off issue for monthly subs ( #14643 )
...
* Fix initial plan.consecutive.offset for 1 month subs
* fix initial values for group plan subs
* Make perkMonthCount editable in admin panel
* Add aditional info to admin panel
* Implement automatic fix for affected users
* fix(lint): exclusive test, code style
* fixes
* fix issue with initialization
---------
Co-authored-by: SabreCat <sabe@habitica.com >
2023-05-24 13:29:42 -05:00
SabreCat
deebc09a79
fix(analytics): typo
2023-05-22 09:54:10 -05:00
SabreCat
b63f2fa1fa
fix(analytics): add missing headers to 3 events
2023-05-19 14:54:30 -05:00
Phillip Thelen
8150fef993
Database Access optimisations ( #14544 )
...
* Optimize database access during spell casting
* load less data when casting spells
* Begin migrating update calls to updateOne and updateMany
* Only update user objects that don’t have notification yet
* fix test
* fix spy
* Don’t unnecessarily update user when requesting invalid guild
* fix sort order for middlewares to not load user twice every request
* fix tests
* fix integration test
* fix skill usage not always deducting mp
* addtest case for blessing spell
* fix healAll
* fix lint
* Fix error for when some spells are used outside of party
* Add check to not run bulk spells in web client
* fix(tags): change const to let
---------
Co-authored-by: SabreCat <sabe@habitica.com >
2023-05-16 12:21:45 -05:00
SabreCat
e9e4265545
Squashed commit of the following:
...
commit 00affb306655a543f5d29b3af6361e686b577a97
Author: SabreCat <sabe@habitica.com >
Date: Tue May 2 09:47:25 2023 -0500
fix(tests): account for invite limit changes
commit 47661117f9fd661b8bc8f63b7cc7c8d5f8fa0fd7
Author: SabreCat <sabe@habitica.com >
Date: Mon May 1 17:39:29 2023 -0500
fix(lfp): final polish
commit 6a1e5af1db0dd90be3ced7e223f53c9183a206f5
Merge: 728ed2ddad 9e0777bb42
Author: SabreCat <sabe@habitica.com >
Date: Mon May 1 16:54:12 2023 -0500
Merge branch 'release' into sabrecat/party-seeking
commit 728ed2ddad7f0962d28f1ab0a271e3555b19296c
Author: SabreCat <sabe@habitica.com >
Date: Thu Apr 27 16:51:06 2023 -0500
fix(lfp): loading layout and page visit event
commit 8a56ab329bff922e05963e3ef78fbc26ff273924
Author: SabreCat <sabe@habitica.com >
Date: Wed Apr 26 16:54:46 2023 -0500
fix(faq): copy and style updates
commit 6fd00d7f30150a1802e5a37edbb914ef120caf9a
Author: SabreCat <sabe@habitica.com >
Date: Fri Apr 21 17:12:52 2023 -0500
feat(lfp): fixes, analytics, FAQ
commit 4b5d7304ad7cfc5f72320b23456ed2898e53caac
Author: SabreCat <sabe@habitica.com >
Date: Mon Apr 17 15:13:03 2023 -0500
fix(lfp): smol tweaks
commit 9a5476a2558eb17a603f4aae1b5b2d35773be8b4
Author: SabreCat <sabe@habitica.com >
Date: Thu Apr 13 16:03:33 2023 -0500
feat(lfp): refresh button
commit aa58f5018469f38a9a9d31c3bffa26bb88a8c672
Merge: bbb03d006e c8adf20804
Author: SabreCat <sabe@habitica.com >
Date: Tue Apr 11 17:44:56 2023 -0500
Merge branch 'release' into sabrecat/party-seeking
commit bbb03d006e8b122bb7206bdc778a31de422167bb
Author: SabreCat <sabe@habitica.com >
Date: Tue Apr 4 18:30:50 2023 -0500
fix(lint): whitespace and const
commit 23683ad29a4cce0b0da061ad6c030982034c0a9c
Author: SabreCat <sabe@habitica.com >
Date: Tue Apr 4 17:02:57 2023 -0500
chore(LFP): add analytics
also re-fix loading state
commit 4477d84f5266c87f5583368029b72153f00f0568
Author: SabreCat <sabe@habitica.com >
Date: Mon Apr 3 16:24:26 2023 -0500
fix(LFP): address issues with loading
commit bdc5154f24bb5e50963376c3c0c9cc73c0b05ccc
Merge: 81923eef6f 229ed46425
Author: SabreCat <sabe@habitica.com >
Date: Mon Apr 3 15:58:12 2023 -0500
Merge branch 'release' into sabrecat/party-seeking
commit 81923eef6f0c627d079475a28f9d93d8e4628934
Author: SabreCat <sabe@habitica.com >
Date: Thu Mar 30 16:44:49 2023 -0500
feat(LFP): release candidate
commit fe1f8939fc6b09d36cfaf0b6e5838df04e41009d
Author: SabreCat <sabe@habitica.com >
Date: Wed Mar 29 17:35:54 2023 -0500
WIP(LFP): fixes
commit afc361f5a9f806cbd814ad910d1274e3a6609efd
Merge: d6b5cbdebc 7ede3acd01
Author: SabreCat <sabe@habitica.com >
Date: Wed Mar 29 16:24:39 2023 -0500
Merge branch 'release' into sabrecat/party-seeking
commit d6b5cbdebc2829e9325ea57fb5deeccc128c1635
Author: SabreCat <sabe@habitica.com >
Date: Tue Mar 28 16:13:18 2023 -0500
WIP(LFP): change copy, add close X, fix API response
commit 4274a4625862351ef0ecf33c8a3249ca5ebec7cb
Author: SabreCat <sabe@habitica.com >
Date: Mon Mar 27 17:07:36 2023 -0500
fix(LFP): layout, unset when stopping
commit 95abfcfa5f13c9cce6385206947a47f85b76d11d
Merge: 4a360eedd8 53c536b525
Author: SabreCat <sabe@habitica.com >
Date: Mon Mar 27 16:32:46 2023 -0500
Merge branch 'release' into sabrecat/party-seeking
commit 4a360eedd8b9cf41d3a0fe7a4cfaa72c5bd7bd26
Author: SabreCat <sabe@habitica.com >
Date: Thu Mar 23 16:54:49 2023 -0500
feat(LFP): completed style and infinite scroll
commit bbc439d9d03c9631a450236eb33af66f0428fa50
Author: SabreCat <sabe@habitica.com >
Date: Tue Mar 21 10:40:26 2023 -0500
WIP(LFP): nicer layout, buffs fix
commit 1658688597456663477ab19da61ae1b9bc85cf2a
Merge: 664507434f 027e61a93e
Author: SabreCat <sabe@habitica.com >
Date: Tue Mar 21 09:29:02 2023 -0500
Merge branch 'release' into sabrecat/party-seeking
commit 664507434f2f76e6bf3b61cdc9e3daddb81204af
Author: SabreCat <sabe@habitica.com >
Date: Fri Mar 17 17:13:08 2023 -0500
WIP(LFP): API and client adjustments
commit 2f0b6f2517f9e2d634cb23ee303cfb4542e998ce
Merge: 0db1704325 a16098ccda
Author: SabreCat <sabe@habitica.com >
Date: Fri Mar 17 16:45:13 2023 -0500
Merge branch 'release' into sabrecat/party-seeking
commit 0db1704325c3555f0b5d9c8d1dfc44177e90c093
Author: SabreCat <sabe@habitica.com >
Date: Mon Mar 13 14:48:10 2023 -0500
fix(modal): scrollbar for squashed viewports
commit 733c35192e0a4e31e1bebfdd7488cfc1f7587f36
Author: SabreCat <sabe@habitica.com >
Date: Thu Mar 9 12:51:02 2023 -0600
WIP(party): seekers functional rough
commit d4b854410b557db26eec6e6a26b6d174c02cee3a
Merge: 7fe919825a 0b6b967753
Author: SabreCat <sabe@habitica.com >
Date: Thu Mar 9 10:07:28 2023 -0600
Merge branch 'release' into sabrecat/party-seeking
commit 7fe919825abfb6d518cb93b91f5997d3831bd0b5
Author: SabreCat <sabe@habitica.com >
Date: Thu Mar 2 14:40:09 2023 -0600
feat(party): several adjustments to seeking feature
commit c93900efcf925f7aaa4c4cb56b4451f19adfb1b3
Author: SabreCat <sabe@habitica.com >
Date: Wed Mar 1 20:37:11 2023 -0600
feat(party): initial Seeking API
commit 8bb784daeceb14c23992a6f3af1054a900fc26c1
Merge: e19a661a21 f327795761
Author: SabreCat <sabe@habitica.com >
Date: Wed Mar 1 18:58:20 2023 -0600
Merge branch 'release' into sabrecat/party-seeking
commit e19a661a2163a50307a286379bffb44201ed392e
Author: SabreCat <sabe@habitica.com >
Date: Fri Feb 24 15:51:42 2023 -0600
WIP(parties): add seeking flag and modal toggle
2023-05-02 09:51:33 -05:00
Phillip Thelen
d2d4af227b
Fix an issue with gifting subs ( #14550 )
...
* Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (405 of 405 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2781 of 2781 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (135 of 135 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (217 of 217 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (56 of 56 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (13 of 13 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (112 of 112 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (131 of 131 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (405 of 405 strings)
Translated using Weblate (Portuguese)
Currently translated at 81.7% (331 of 405 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (214 of 214 strings)
Translated using Weblate (Portuguese)
Currently translated at 62.5% (5 of 8 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (61 of 61 strings)
Translated using Weblate (Portuguese)
Currently translated at 63.8% (1777 of 2781 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (182 of 182 strings)
Translated using Weblate (Portuguese)
Currently translated at 71.6% (43 of 60 strings)
Translated using Weblate (Portuguese)
Currently translated at 79.7% (609 of 764 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (375 of 375 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (47 of 47 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (770 of 770 strings)
Translated using Weblate (Portuguese)
Currently translated at 100.0% (146 of 146 strings)
Translated using Weblate (German)
Currently translated at 100.0% (404 of 404 strings)
Translated using Weblate (German)
Currently translated at 79.5% (97 of 122 strings)
Translated using Weblate (German)
Currently translated at 97.7% (753 of 770 strings)
Translated using Weblate (German)
Currently translated at 100.0% (146 of 146 strings)
Translated using Weblate (Portuguese)
Currently translated at 77.0% (94 of 122 strings)
Translated using Weblate (Indonesian)
Currently translated at 76.7% (310 of 404 strings)
Translated using Weblate (Portuguese)
Currently translated at 76.2% (93 of 122 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 85.6% (2381 of 2781 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (60 of 60 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (217 of 217 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (112 of 112 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (267 of 267 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (404 of 404 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (182 of 182 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 95.8% (732 of 764 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (122 of 122 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (375 of 375 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (770 of 770 strings)
Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (146 of 146 strings)
Translated using Weblate (Portuguese)
Currently translated at 74.5% (91 of 122 strings)
Translated using Weblate (Portuguese)
Currently translated at 72.1% (88 of 122 strings)
Co-authored-by: Ana Beatriz <anabeatriz.augusto06@yahoo.com >
Co-authored-by: Andressa Murari Sudré <andressa@sudre.com.br >
Co-authored-by: Cachinhos <cachnhos@gmail.com >
Co-authored-by: Falzart Werefox <muh_fauzi_ramadhan@yahoo.co.id >
Co-authored-by: Jay <fallacyofwildlifeconservation@gmail.com >
Co-authored-by: Jerry Chen <minecjraft@qq.com >
Co-authored-by: Weblate <noreply@weblate.org >
Co-authored-by: Yu-Wei Tien <a38498987911@gmail.com >
Translate-URL: https://translate.habitica.com/projects/habitica/achievements/de/
Translate-URL: https://translate.habitica.com/projects/habitica/achievements/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/achievements/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/backgrounds/de/
Translate-URL: https://translate.habitica.com/projects/habitica/backgrounds/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/backgrounds/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/communityguidelines/de/
Translate-URL: https://translate.habitica.com/projects/habitica/communityguidelines/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/communityguidelines/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/content/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/content/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/contrib/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/faq/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/faq/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/front/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/front/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/gear/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/gear/zh_Hans/
Translate-URL: https://translate.habitica.com/projects/habitica/gear/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/generic/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/groups/de/
Translate-URL: https://translate.habitica.com/projects/habitica/groups/id/
Translate-URL: https://translate.habitica.com/projects/habitica/groups/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/groups/pt_BR/
Translate-URL: https://translate.habitica.com/projects/habitica/groups/zh_Hans/
Translate-URL: https://translate.habitica.com/projects/habitica/groups/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/limited/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/messages/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/npc/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/overview/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/pets/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/pets/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/questscontent/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/questscontent/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/rebirth/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/spells/pt/
Translate-URL: https://translate.habitica.com/projects/habitica/subscriber/pt_BR/
Translate-URL: https://translate.habitica.com/projects/habitica/subscriber/zh_Hant/
Translate-URL: https://translate.habitica.com/projects/habitica/tasks/pt/
Translation: Habitica/Achievements
Translation: Habitica/Backgrounds
Translation: Habitica/Communityguidelines
Translation: Habitica/Content
Translation: Habitica/Contrib
Translation: Habitica/Faq
Translation: Habitica/Front
Translation: Habitica/Gear
Translation: Habitica/Generic
Translation: Habitica/Groups
Translation: Habitica/Limited
Translation: Habitica/Messages
Translation: Habitica/Npc
Translation: Habitica/Overview
Translation: Habitica/Pets
Translation: Habitica/Questscontent
Translation: Habitica/Rebirth
Translation: Habitica/Spells
Translation: Habitica/Subscriber
Translation: Habitica/Tasks
* gift subscription fix
* remove only
---------
Co-authored-by: Weblate <noreply@weblate.org >
Co-authored-by: Ana Beatriz <anabeatriz.augusto06@yahoo.com >
Co-authored-by: Andressa Murari Sudré <andressa@sudre.com.br >
Co-authored-by: Cachinhos <cachnhos@gmail.com >
Co-authored-by: Falzart Werefox <muh_fauzi_ramadhan@yahoo.co.id >
Co-authored-by: Jay <fallacyofwildlifeconservation@gmail.com >
Co-authored-by: Jerry Chen <minecjraft@qq.com >
Co-authored-by: Yu-Wei Tien <a38498987911@gmail.com >
Co-authored-by: SabreCat <sabe@habitica.com >
2023-03-23 14:34:40 -05:00
Phillip Thelen
6887fd70c0
try something
2023-02-28 16:17:52 +01:00
Phillip Thelen
def24142ca
remove wrong test
2023-02-27 13:30:44 +01:00
Phillip Thelen
c29049146d
prevent sub accidentally also being applied to other account
2023-02-27 12:06:27 +01:00
Phillip Thelen
57fb7ca6f2
fix
2023-02-24 11:25:53 +01:00
Phillip Thelen
be18476292
correctly set perkMonthCount
2023-02-23 13:20:47 +01:00
Phillip Thelen
3f56b7fa3f
fix offset calculation
2023-02-17 15:42:31 +01:00
Phillip Thelen
d69de2948b
fix import
2023-02-16 09:58:09 +01:00
Phillip Thelen
e338fb8ce7
Merge branch 'apple_sub_fix' of https://github.com/HabitRPG/habitica into apple_sub_fix
2023-02-16 09:37:36 +01:00
Phillip Thelen
2d5dcae406
fix tests
2023-02-16 09:37:00 +01:00
Phillip Thelen
3203b09b7a
reset perkMonthCount when subscription ends
2023-02-15 10:05:18 +01:00
Phillip Thelen
6ee2e3a379
Merge remote-tracking branch 'origin/develop' into apple_sub_fix
2023-02-13 17:38:14 +01:00
Phillip Thelen
ad6555c92b
fix import
2023-02-06 17:16:43 +01:00
Phillip Thelen
c04e8ea514
comma
2023-02-06 13:01:06 +01:00
Phillip Thelen
aec2409227
lint fixes
2023-02-06 12:59:54 +01:00
Phillip Thelen
87aebcc19e
Merge branch 'apple_sub_fix' of https://github.com/HabitRPG/habitica into apple_sub_fix
...
# Conflicts:
# test/api/unit/libs/payments/apple.test.js
# website/server/libs/payments/subscriptions.js
2023-02-06 11:19:00 +01:00
Phillip Thelen
12479edb77
fix tests and some cases
2023-02-06 11:17:35 +01:00
Phillip Thelen
c0c6657536
handle upgrades and creations better
2023-02-06 11:17:35 +01:00
SabreCat
e81a052f66
fix(lint): line lengths and so on
2023-02-06 11:17:35 +01:00
Phillip Thelen
82a1d6ff0e
Improve handling
2023-02-06 11:17:35 +01:00
Phillip Thelen
0f7001b609
fix lint
2023-02-06 11:17:35 +01:00
Phillip Thelen
87558a325e
Handle subscription cancelation better
2023-02-06 11:17:35 +01:00
Phillip Thelen
64a3515c10
Add logic for different types of sub upgrades
2023-02-06 11:17:35 +01:00
Phillip Thelen
8dfa21a4b8
Add field to track when current subscription type started
2023-02-06 11:17:35 +01:00
Phillip Thelen
f9a9d4919b
Improve recheck handling for test subs
2023-02-06 11:17:35 +01:00
Phillip Thelen
ddf1b4060d
Better handling for cancellation when user had multiple subs
2023-02-06 11:17:35 +01:00
Phillip Thelen
967717a010
Fix logic for apple subscriptions
2023-02-06 11:17:35 +01:00
Phillip Thelen
0dd25b6431
fix issue where subs would be applied multiple times
2023-02-06 11:17:35 +01:00
Phillip Thelen
777f7887b4
fix lint errors
2023-02-06 11:17:35 +01:00
Phillip Thelen
f07d0f6441
Implement correct handling for when subs are up/downgraded
2023-02-06 11:17:24 +01:00
SabreCat
742da1f2c6
fix(typo): customER
2023-02-06 11:16:24 +01:00
SabreCat
b3d5a8d083
fix(lint): line length
2023-02-06 11:16:24 +01:00
Phillip Thelen
b5f2e66025
fix check
2023-02-06 11:16:24 +01:00
Phillip Thelen
9a40674d8d
Allow sub upgrades/downgrades on iOS
2023-02-06 11:16:24 +01:00
SabreCat
a213fb723a
fix(purchases): correct hardcoded date range for Gryph
2023-02-03 09:23:21 -06:00
SabreCat
ecac3f0c5f
fix(backgrounds): disallow equipping unowned bashground
...
Also add missing headers when recording group task creation
2023-01-27 19:26:19 -06:00
SabreCat
e1deb6adff
fix(payments): add missing SKU variations
2023-01-22 23:21:22 -06:00
SabreCat
f845bbd7a0
fix(payments): address some test failures
2023-01-22 22:30:48 -06:00
SabreCat
0dfc8de300
fix(lint): remove extraneous import
2023-01-20 16:25:24 -06:00
SabreCat
e5bbde7e97
feat(event): 10th Birthday Bash
...
with @CuriousMagpie and @phillipthelen
2023-01-20 16:14:33 -06:00
SabreCat
98c4910051
Merge branch 'release' into develop
2022-12-23 15:35:20 -06:00
SabreCat
079279e5c1
Revert "fix(tests): if singleton event, always provide empty string suffix"
...
This reverts commit 64bf4ee4b6 .
2022-12-20 09:51:24 -06:00
SabreCat
6d33ec02a8
Merge branch 'release' into develop
2022-12-19 16:24:48 -06:00
SabreCat
64bf4ee4b6
fix(tests): if singleton event, always provide empty string suffix
2022-12-19 16:22:20 -06:00
Adam Fitzgibbon
42e0bad4ac
added validation for blocked users when inviting to groups by username ( #14316 )
2022-12-15 14:47:54 -06:00