Sabe Jones
8fa91a3805
chore(node): upgrade to Node 20
2024-03-11 09:59:57 -05:00
Sabe Jones
eed7c9aabc
fix(test): no longer expect keepAlive
2024-02-05 17:27:37 -06:00
Phillip Thelen
f8d315ff6e
Upgrade to mongoose 7 ( #14971 )
...
* remove some unused dependencies
* update mongoose version
* make common tests pass
* Make unit tests pass
* make api v3 integration tests pass
* fix lint issues
* fix issue with package-lock
* fix(lint): we don't need no .js
* fix(lint): update to latest config-habitrpg
* chore(npm): update package locks
* fix(test): replace deprecated fn
* chore(package): update eslint-habitrpg again
* fix(lint): server linting
* fix(lint): client linting
* fix(client): correct mangled common imports
* chore(npm): update package-locks
* fix(lint): punctuation, module
---------
Co-authored-by: SabreCat <sabrecat@gmail.com >
Co-authored-by: SabreCat <sabe@habitica.com >
2024-01-16 15:18:47 -06:00
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
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
SabreCat
bbea789700
fix(test): don't cross two month boundaries when anticipating +1 perk
2023-03-14 16:27:09 -05:00
Phillip Thelen
def24142ca
remove wrong test
2023-02-27 13:30:44 +01:00
Phillip Thelen
62b171ffa5
fix linting
2023-02-24 10:47:50 +01:00
Phillip Thelen
3f56b7fa3f
fix offset calculation
2023-02-17 15:42:31 +01:00
Phillip Thelen
6ee2e3a379
Merge remote-tracking branch 'origin/develop' into apple_sub_fix
2023-02-13 17:38:14 +01:00
Natalie L
0335eb1f7e
chore(content): add February backgrounds and Enchanted Armoire Items ( #14482 )
...
* chore(content): add February backgrounds and Enchanted Armoire Items
* fix(test): birthday week adjustment
* fix(strings): .
* fix(strings): correct background tokens
---------
Co-authored-by: SabreCat <sabe@habitica.com >
Co-authored-by: Sabe Jones <sabrecat@gmail.com >
2023-02-07 09:12:19 -06:00
Phillip Thelen
aec2409227
lint fixes
2023-02-06 12:59:54 +01:00
Phillip Thelen
a3bc20f855
Fix case where a number was sometimes a string
2023-02-06 11:17:35 +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
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
614850e56c
fix tests
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
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
SabreCat
9b791b4ba0
fix(test): save user to avoid lock errors
2023-02-06 11:17:35 +01:00
SabreCat
5aca5b4be7
fix(test): linting
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
cf75d941fa
fix test
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
Phillip Thelen
98ec1757f9
fix tests
2023-02-06 11:16:24 +01:00
SabreCat
ac239e32ce
fix(payments): wrap up adjusted test expectations
2023-01-23 00:45:31 -06:00
SabreCat
3474cbf138
fix(payments): correct more tests
2023-01-22 23:02:18 -06:00
SabreCat
f845bbd7a0
fix(payments): address some test failures
2023-01-22 22:30:48 -06:00
SabreCat
e5bbde7e97
feat(event): 10th Birthday Bash
...
with @CuriousMagpie and @phillipthelen
2023-01-20 16:14:33 -06:00
SabreCat
f1fa6a8456
Revert "Allow sub upgrades/downgrades on iOS ( #14303 )"
...
This reverts commit 9e98e56e9b .
2022-11-21 16:40:56 -06:00
SabreCat
f2aaee15f3
Merge branch 'release' into develop
2022-11-18 15:29:06 -06:00
SabreCat
febffb3f07
Revert "Fix double subscriptions, second attempt ( #14345 )"
...
This reverts commit 1a5cba57b7 .
2022-11-18 14:26:49 -06:00
SabreCat
fdfa2d6df4
Merge branch 'release' into develop
2022-11-15 19:29:37 -06:00
Sabe Jones
1a5cba57b7
Fix double subscriptions, second attempt ( #14345 )
...
* fix(subscriptions): reject subs that come in too fast
* fix(lint): remove unused import
* fix(groups): individual subs may come rapidly
* fix(subscriptions): bad paren, handle rapid testing
* fix(test): reset dateUpdated between subs
* fix(test): one more block for dateUpdated
Co-authored-by: SabreCat <sabe@habitica.com >
2022-11-15 19:19:37 -06:00
SabreCat
9b1a726875
Revert "feat(subs): allow upgrade/downgrade on iOS"
...
This reverts commit 27440772f0 .
2022-11-02 09:00:29 -05:00
Phillip Thelen
9e98e56e9b
Allow sub upgrades/downgrades on iOS ( #14303 )
...
* Allow sub upgrades/downgrades on iOS
* fix check
* fix(lint): line length
* fix(typo): customER
* fix tests
* Implement correct handling for when subs are up/downgraded
* fix lint errors
* fix test
Co-authored-by: SabreCat <sabe@habitica.com >
Co-authored-by: Sabe Jones <sabrecat@gmail.com >
2022-11-01 21:07:23 -05:00
SabreCat
27440772f0
feat(subs): allow upgrade/downgrade on iOS
...
by @phillipthelen
2022-11-01 20:53:04 -05:00
SabreCat
aea0be3245
fix(subs): establish lock to prevent race condition
2022-11-01 20:47:21 -05:00
negue
f7a03d2eb5
improve transactions logs + split createSubscription ( #14289 )
...
* improve transactions logs + split createSubscription
2022-10-27 08:39:06 +02:00
Sabe Jones
90250d1a25
Establish lock to avoid race scenario in subscriptions ( #14267 )
...
* fix(subscription): establish lock to avoid race scenario
* fix(lint): import syntax
* fix(lint): whitespace, dependency cycle
* fix(subs): skip locking on gifts and groups
* fix(subs): correctly reset _subSignature
* fix(sub): use findOneAndUpdate for unlock
* fix(test): save newly created user for some reason
Co-authored-by: SabreCat <sabe@habitica.com >
2022-10-25 16:44:33 -05:00
SabreCat
40997854dd
fix(test): restore event list function
2022-09-30 14:32:21 -05:00
SabreCat
e0eed8238e
fix(test): stub full event list
2022-09-23 16:42:15 -05:00
SabreCat
eea79ce1b6
Merge branch 'develop' into sabrecat/gems-multi-event
2022-09-21 16:03:57 -05:00
Phillip Thelen
24841346dc
Purge Facebook ( #13696 )
...
* Don't sign in user when trying to connect a social account that was already created
* Log social users into matching local auth accounts
If the social account has an email that already exists as a local user, instead of creating a new account log them into their account and add the social auth to the account
* If possible set local authentication email for social users
* Allow password reset emails to be sent to social login users
* lint fixes
* Fix issues and tests
* fix tests
* Fix lint error.
* purge Facebook.
Only keep it in some select places to allow for some compatablilty.
* Fix error
* fix error
* Let settings handle it when you don't have a password set but an email
* fix error
* Fix boolean logic
* fix json conversion
* .
* fix password reset for old social accounts
* Don't sign in user when trying to connect a social account that was already created
* Log social users into matching local auth accounts
If the social account has an email that already exists as a local user, instead of creating a new account log them into their account and add the social auth to the account
* If possible set local authentication email for social users
* Allow password reset emails to be sent to social login users
* lint fixes
* Fix issues and tests
* fix tests
* Fix lint error.
* purge Facebook.
Only keep it in some select places to allow for some compatablilty.
* Fix error
* fix error
* Let settings handle it when you don't have a password set but an email
* fix error
* Fix boolean logic
* fix json conversion
* fix password reset for old social accounts
* Revert "lint fixes"
This reverts commit c244b1651c .
# Conflicts:
# website/client/src/components/auth/registerLoginReset.vue
# website/client/src/components/static/contact.vue
* Revert "fix password reset for old social accounts"
This reverts commit 7e0069a80f .
* fix duplicate code
* chore(misc): remove irrelevant changes
* chore(privacy): update policy page with note about FB
Co-authored-by: SabreCat <sabe@habitica.com >
2022-09-15 18:22:52 -05:00
SabreCat
4c34c68d78
fix(test): stub newly relevant function
2022-09-15 12:20:11 -05:00
Phillip Thelen
65d2eac4c3
Correctly handle google accounts with multiple subscriptions ( #13982 )
2022-06-10 14:07:36 -05:00
John Li
d132b057eb
Fix XML Data Export Error by Modifying XML Format ( #13942 )
...
* Added XML code to parse json + convert formatting before exporting as XML + XML Marshall tests
* Add linting fixes
linting errors still present in xmlMarshaller.test.js but, certain keys starting with digits (for example '800ed0') must be enclosed in quotes , so to maintain consistency within the test file I kept all keys enclosed by single quotes.
* fix(lint): unquote, EOF
Co-authored-by: SabreCat <sabe@habitica.com >
2022-05-12 15:24:17 -05:00