Commit graph

1047 commits

Author SHA1 Message Date
Bart Enkelaar
234258b41e
Move from deprecated moment#zone to moment#utcOffset (#12207)
* Issue 10209 - Remove read usages of zone

* Issue 10209 - Add coverage on daysSince and startOfDay cron utility functions

* Issue 10209 - Add unit test for daysUserHasMissed method

* Issue 10209 - Remove usages of deprecated `moment.js#zone` method.

* Issue 10209 - Add helper function to centralise logic

Also simplify timezoneOffsetToUtc function in site.vue

* Issue 10209 - Also add getUtcOffset as method on user

Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
2020-07-25 13:22:41 +02:00
dependabot-preview[bot]
c10b9b7993
build(deps): bump mongoose from 5.9.24 to 5.9.25 (#12402)
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.9.24 to 5.9.25.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.9.24...5.9.25)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-25 12:27:02 +02:00
Sabe Jones
d8ab69b3c7 4.150.0 2020-07-23 10:44:49 -05:00
Sabe Jones
ad60946eeb 4.149.3 2020-07-21 14:58:16 -05:00
Matteo Pagliazzi
858a8749a4 4.149.2 2020-07-19 18:26:24 +02:00
Matteo Pagliazzi
88059f568c 4.149.1 2020-07-18 15:36:56 +02:00
Matteo Pagliazzi
d8badb6d12 4.149.0 2020-07-18 15:00:39 +02:00
Matteo Pagliazzi
e7c8833c9a API v3 Rate Limiter (#12117)
* simplify ip address management by using the trust proxy express option

* add setupExpress file

* fix redirects middleware tests

* fix lint

* short circuit the ip blocking middleware

* basic implementation with ip based limiting

* improve logging

* upgrade apidoc

* apidoc: add introduction section

* fix lint

* fix tests

* fix lint

* add unit tests for rate limiter

* do not send retry-after header when points are available

* automatically fix lint

* fix more lint issues

* use userId as key for rate limit when available
2020-07-18 15:00:09 +02:00
Sabe Jones
e3bcc48481 chore(npm): update package lock 2020-07-16 20:37:40 +00:00
Sabe Jones
474bc6a2b6 4.148.3 2020-07-16 15:12:06 -05:00
Sabe Jones
e54bd8f242 Merge branch 'develop' into release 2020-07-16 14:58:25 -05:00
Sabe Jones
18bc8c3d63 4.148.2 2020-07-14 16:11:42 -05:00
Matteo Pagliazzi
c93bf3e498
MongoDB Transactions (#12335)
* add run-rs to dependencies

* wip: add replica set to api unit github action

* wip: add replica set to api unit github action

* wip: fix gh actions mongodb replica set setting

* usa replica set for integration tests

* add correct mongodb version matrix for integration tests

* use different db connection on gh actions

* Revert "use different db connection on gh actions"

This reverts commit aa8db759d380ba58ac90304c786b3eba5004b1bd.

* add example transaction

* add mongo script to package.json

* abstract mongodb utils, connect using hostname on windows

* npm scripts: mongo -> mongo:dev

* add setup script for run-rs on windows

* gh actions: run in test environment

* remove test files

* better error handling, use cross-spawn to avoid issues on windows

* fix lint
2020-07-14 18:55:47 +02:00
Matteo Pagliazzi
42b00ed381
build(deps): bump mongoose from 5.9.21 to 5.9.23 (#12391)
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.9.21 to 5.9.23.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.9.21...5.9.23)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-13 11:45:07 +02:00
dependabot-preview[bot]
928c88f2da
build(deps): bump lodash from 4.17.15 to 4.17.19 (#12387)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-13 11:44:56 +02:00
dependabot-preview[bot]
768e71228c
build(deps): bump mongoose from 5.9.21 to 5.9.23
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.9.21 to 5.9.23.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.9.21...5.9.23)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-13 08:45:51 +00:00
dependabot-preview[bot]
9b3f8981e5
build(deps): bump node-gcm from 1.0.2 to 1.0.3 (#12389)
Bumps [node-gcm](https://github.com/ToothlessGear/node-gcm) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/ToothlessGear/node-gcm/releases)
- [Changelog](https://github.com/ToothlessGear/node-gcm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ToothlessGear/node-gcm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-13 10:43:27 +02:00
dependabot-preview[bot]
e49aabdddf
build(deps): bump got from 11.4.0 to 11.5.0 (#12393)
Bumps [got](https://github.com/sindresorhus/got) from 11.4.0 to 11.5.0.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.4.0...v11.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-13 10:42:58 +02:00
dependabot-preview[bot]
aa371de8ae
build(deps): bump universal-analytics from 0.4.22 to 0.4.23 (#12394)
Bumps [universal-analytics](https://github.com/peaksandpies/universal-analytics) from 0.4.22 to 0.4.23.
- [Release notes](https://github.com/peaksandpies/universal-analytics/releases)
- [Changelog](https://github.com/peaksandpies/universal-analytics/blob/master/HISTORY.md)
- [Commits](https://github.com/peaksandpies/universal-analytics/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-13 10:42:15 +02:00
Sabe Jones
195928e471 Merge branch 'release' into develop 2020-07-10 11:05:31 -05:00
Sabe Jones
c27d52098b 4.148.1 2020-07-10 11:04:56 -05:00
Sabe Jones
955c41f744 Merge branch 'release' into develop 2020-07-07 14:53:52 -05:00
Sabe Jones
c46b4e55c3 4.148.0 2020-07-07 14:49:31 -05:00
dependabot-preview[bot]
82d1df67c9
build(deps): bump universal-analytics from 0.4.20 to 0.4.22 (#12373)
Bumps [universal-analytics](https://github.com/peaksandpies/universal-analytics) from 0.4.20 to 0.4.22.
- [Release notes](https://github.com/peaksandpies/universal-analytics/releases)
- [Changelog](https://github.com/peaksandpies/universal-analytics/blob/master/HISTORY.md)
- [Commits](https://github.com/peaksandpies/universal-analytics/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-07 20:02:16 +02:00
dependabot-preview[bot]
9449e6a883
build(deps): bump got from 11.3.0 to 11.4.0 (#12372)
Bumps [got](https://github.com/sindresorhus/got) from 11.3.0 to 11.4.0.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.3.0...v11.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-07 20:01:17 +02:00
dependabot-preview[bot]
fa72684c53
build(deps): bump mongoose from 5.9.20 to 5.9.21 (#12371)
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.9.20 to 5.9.21.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.9.20...5.9.21)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-07 20:00:59 +02:00
Matteo Pagliazzi
46c92d6171 4.147.3 2020-07-03 14:36:01 +02:00
Sabe Jones
e36a91a5c7 4.147.2 2020-07-02 13:58:50 -05:00
Matteo Pagliazzi
ea623936bf apidoc: upgrade and add links to wiki 2020-07-02 18:19:15 +02:00
Sabe Jones
5a7e1cbc5a Merge branch 'release' into develop 2020-07-01 16:37:22 -05:00
Sabe Jones
0303f0b610 4.147.1 2020-07-01 16:36:57 -05:00
Matteo Pagliazzi
3d5630d5a2 chore: update sub-deps and fix lint 2020-07-01 18:20:18 +02:00
Sabe Jones
40cadba7bf Merge branch 'release' into develop 2020-06-29 15:15:54 -05:00
Sabe Jones
57446c3041 4.147.0 2020-06-29 15:15:28 -05:00
dependabot-preview[bot]
0f75dd4dbe
build(deps): bump superagent from 5.2.2 to 5.3.1 (#12352)
Bumps [superagent](https://github.com/visionmedia/superagent) from 5.2.2 to 5.3.1.
- [Release notes](https://github.com/visionmedia/superagent/releases)
- [Changelog](https://github.com/visionmedia/superagent/blob/master/HISTORY.md)
- [Commits](https://github.com/visionmedia/superagent/compare/v5.2.2...v5.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-29 10:45:38 +02:00
dependabot-preview[bot]
9098bde7ac
build(deps): bump mongoose from 5.9.19 to 5.9.20 (#12343)
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.9.19 to 5.9.20.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/History.md)
- [Commits](https://github.com/Automattic/mongoose/compare/5.9.19...5.9.20)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-29 10:45:12 +02:00
dependabot-preview[bot]
a7a9747bf1
build(deps): bump winston from 3.3.0 to 3.3.3 (#12348)
Bumps [winston](https://github.com/winstonjs/winston) from 3.3.0 to 3.3.3.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](https://github.com/winstonjs/winston/compare/v3.3.0...v3.3.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-29 10:44:50 +02:00
dependabot-preview[bot]
69e340ac59
build(deps): bump helmet from 3.23.1 to 3.23.3 (#12345)
Bumps [helmet](https://github.com/helmetjs/helmet) from 3.23.1 to 3.23.3.
- [Release notes](https://github.com/helmetjs/helmet/releases)
- [Changelog](https://github.com/helmetjs/helmet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/helmetjs/helmet/compare/v3.23.1...v3.23.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-29 10:44:38 +02:00
dependabot-preview[bot]
4396713488
build(deps): bump uuid from 8.1.0 to 8.2.0 (#12350)
Bumps [uuid](https://github.com/uuidjs/uuid) from 8.1.0 to 8.2.0.
- [Release notes](https://github.com/uuidjs/uuid/releases)
- [Changelog](https://github.com/uuidjs/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uuidjs/uuid/compare/v8.1.0...v8.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-29 10:43:54 +02:00
jacobguinther
e42518f427
Make message links to deleted profiles display 404: (fixes 11020) (#12229)
* Make links to deleted profiles display 404

* Implement some requested changes

- remove comments
- remove 'await'
- rename error -> 404error
- remove catch block -> just check for 404

* Fix bug: Logged in user profile showing 404

- Initiallty logged in user will display fine
- This bug only appeared after you view a deleted users modal

* Remove 'user.active' attribute

- add change to data():
- user: undefined -> user: {}

* Shorten showMemberModal()

- Remove unused fetch profile data
- Remove unnecessary conditional

* Change user initial value to null

- Add userLoaded to data
2020-06-27 16:53:55 +02:00
Sabe Jones
6b3ba83d4f 4.146.7 2020-06-26 15:18:38 -05:00
Sabe Jones
a3e5266075 4.146.6 2020-06-25 14:30:16 -05:00
Sabe Jones
52914ed17e Merge branch 'release' into develop 2020-06-23 14:36:41 -05:00
Sabe Jones
1f20c91bd6 4.146.5 2020-06-23 14:30:57 -05:00
Sabe Jones
3b7af150cd Merge branch 'release' into develop 2020-06-22 14:20:43 -05:00
Sabe Jones
118fcfca2b 4.146.4 2020-06-22 14:19:34 -05:00
Matteo Pagliazzi
ba16fa6854
Upgrade Server Deps (#12328)
* upgrade uuid

* upgrade gulp-imagemin

* upgrade bcrypt

* upgrade validator.js

* fix uuid import

* upgrade got

* upgrade sinon

* upgrade passport-google-oauth2

* fix unit test
2020-06-22 11:51:52 +02:00
dependabot-preview[bot]
fa7448c41d
build(deps): bump @google-cloud/trace-agent from 5.0.0 to 5.1.0 (#12325)
Bumps [@google-cloud/trace-agent](https://github.com/googleapis/cloud-trace-nodejs) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/googleapis/cloud-trace-nodejs/releases)
- [Changelog](https://github.com/googleapis/cloud-trace-nodejs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/googleapis/cloud-trace-nodejs/compare/v5.0.0...v5.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 10:31:28 +02:00
dependabot-preview[bot]
48edf2d3ca
build(deps): bump @babel/preset-env from 7.10.2 to 7.10.3 (#12324)
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.10.2 to 7.10.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.3/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 10:31:21 +02:00
dependabot-preview[bot]
65502bae07
build(deps): bump moment from 2.26.0 to 2.27.0 (#12322)
Bumps [moment](https://github.com/moment/moment) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.26.0...2.27.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 10:28:02 +02:00