Julian Lam
4f51838df8
feat: fire new hooks on chat message editing
2020-07-07 17:31:10 -04:00
Barış Soner Uşaklı
af790e3f5e
refactor: shorter code
2020-06-19 12:03:33 -04:00
Julian Lam
ccc6118d30
Testing suite integration for openapi spec ( #8263 )
...
* feat: testing suite integration for openapi spec
The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.
* fix(openapi): removed debug stuff from tests
* fix(openapi): fixed some tests
* fix(openapi): added additional check to tests, test fixes
* fix(openapi): better tests, fixed spec errors
* fix(openapi): bad conditional in test
* fix: oops
* fix(openapi): more tests fixing
* fix(openapi): more tests
* fix(openapi): fix some more tests
* fix: verbose'd an info log
* fix: topic pagination route returns schema-optimized pagination block
* fix(openapi): more test/spec fixes
* fix(openapi): accidentally sending in authenticated jar for anon routes
* fix(openapi): more test/spec fixes
* fix(openapi): more spec fixes
* fix: timestampReadable Invalid Date
* fix(openapi): more tests... almost there
* fix(openapi): more tests fixing
* fix(openapi): finally all tests passing
* fix(openapi): added reverse test to compare response to spec
... and fixed all the tests that broke
* fix: remove tests related to group covers, as route is gone
* fix(openapi): broken test on travis
* fix(openapi): broken test on travis
* fix(openapi): broken test on travis
* fix(openapi): object cache is not present for psql
* fix: tests
Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com >
2020-04-23 21:50:08 -04:00
Julian Lam
93acd13999
fix : #8206 first message in chat has false newSet
2020-03-16 21:15:04 -04:00
Barış Soner Uşaklı
30c503611c
refactor: messaging
2020-01-23 22:19:15 -05:00
Barış Soner Uşaklı
6a63c1a100
fix: escape system message, don't allow editing system messages
2020-01-19 22:20:43 -05:00
Julian Lam
29f96b199c
fix(style): requiring parens in block bodies
2019-08-13 15:12:27 -04:00
Julian Lam
0921230976
fix(style): updated code to follow new eslint recommendations
...
Squashed commit of the following:
commit f9ce878b26
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:30:46 2019 -0400
fix(style): updated code to follow new eslint recommendations
commit 80dd370e41
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 14:14:58 2019 -0400
fix(deps): update dependency sitemap to v4
Squashed commit of the following:
commit f4dd9cabb2
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:33:05 2019 -0400
fix: resolved breaking changes from sitemap v4 upgrade
commit 9043415ee1
Merge: e3352b272 72590b346
Author: Julian Lam <julian@nodebb.org >
Date: Tue Aug 13 11:09:55 2019 -0400
Merge branch 'master' into renovate/sitemap-4.x
commit e3352b272e
Author: Renovate Bot <bot@renovateapp.com >
Date: Mon Aug 12 07:59:05 2019 +0000
fix(deps): update dependency sitemap to v4
commit 8e3c0cdcae
Author: Renovate Bot <bot@renovateapp.com >
Date: Fri Aug 9 00:49:51 2019 +0000
fix(deps): update dependency commander to v3
commit 2104449d38
Author: Renovate Bot <bot@renovateapp.com >
Date: Tue Aug 13 15:00:27 2019 +0000
fix(deps): update dependency mongodb to v3.3.0
commit d2937f446a
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Tue Aug 13 10:36:48 2019 -0400
feat: async/await admin/controllers
commit 1b97e8b199
Author: Misty (Bot) <deploy@nodebb.org >
Date: Tue Aug 13 09:28:39 2019 +0000
Latest translations and fallbacks
commit 69a48957a2
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 21:56:09 2019 -0400
feat: async/await
commit b9b2a7e593
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Mon Aug 12 20:58:29 2019 -0400
feat: async/await refactor
controllers/accounts
commit a8d43a1759
Author: Baris Usakli <barisusakli@gmail.com >
Date: Mon Aug 12 14:49:40 2019 -0400
feat: async/await controllers/accounts
commit 2f25aae57b
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 23:09:50 2019 -0400
fix : #7831 , fix pagination
convert to async/await
commit c9e83f2374
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:14:35 2019 -0400
fix: remove empty line
commit 30be91b26c
Author: Barış Soner Uşaklı <barisusakli@gmail.com >
Date: Sun Aug 11 00:13:41 2019 -0400
fix: remove useless catchs and empty line
commit 2e4a71c0b6
Author: Renovate Bot <bot@renovateapp.com >
Date: Sat Aug 10 06:51:50 2019 +0000
chore(deps): update dependency eslint-config-airbnb-base to v14
2019-08-13 15:12:27 -04:00
Julian Lam
756a717eb8
feat: convert src/messaging/* to async/await ( #7778 )
...
* feat: src/messaging/create.js, #7743
* feat: src/messaging/data.js, #7743
* feat: src/messaging/delete.js, #7743
* feat: src/messaging/edit.js, index.js, #7743
* fix: added in missing awaits
* feat: wrapped up src/messaging/* rewrite
* refactor: messaging delete/restore similar blocks of code
2019-07-22 11:18:13 -04:00
Julian Lam
4fb271c684
System chat messages ( #7771 )
...
* fix: removed duplicate checkContent call in addMessage
addMessage is called in one place (sendMessage), and the checks
are already contained there. addMessage is the lower level call
and so should be called only from within core itself.
* feat: #7330 chat system messages for join, leave, rename
* fix: add back content checking in .addMessage();
* fix: tests, and added .addSystemMessage() method
Tests were relying on message indices that changed due to the
new system messages.
* feat: add tests for system chat messages
* refactor: rewrite half of src/messaging/rooms.js, fix tests
* feat: #7743 messaging/room.js
* fix: tests for messaging/room.js, #7743
* fix: trying to fix tests
* fix: omg :rage2:
2019-07-19 12:20:11 -04:00
Barış Soner Uşaklı
fe0f95a2b1
fix : #7085
2018-12-08 19:51:26 -05:00
Barış Soner Uşaklı
71163421aa
fix: wrong variable #7085
2018-12-08 19:23:22 -05:00
Peter Jaszkowiak
ba619c7ec8
style(eslint): match operator-linebreak preferences
2018-11-30 13:38:59 -05:00
renovate[bot]
64b9dabff8
chore(deps): update dependency eslint-config-airbnb-base to v13 ( #6599 )
...
* chore(deps): update dependency eslint-config-airbnb-base to v13
* chore: #6599 , linting 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
fb6067a7ca
only parse if field is requested
2018-10-25 19:58:01 -04:00
Baris Usakli
5293a6515c
fix lint
2018-10-23 14:11:59 -04:00
Baris Usakli
fdbefa3d1f
remove more parseInts
2018-10-23 13:59:28 -04:00
Barış Soner Uşaklı
b0dad9bd7f
closes #6369
2018-05-31 15:05:12 -04:00
Julian Lam
a367b698e3
a bit more integration for #6463
2018-04-20 13:49:23 -04:00
Julian Lam
82a95a03be
Chat message soft deletion -- closes #6181
...
Squashed commit of the following:
commit f84c06bdcc45f24ef7ffde6a8f33b48d8f97fc36
Author: Julian Lam <julian@nodebb.org >
Date: Mon Dec 18 14:42:47 2017 -0500
added restore handler for chat messages
commit 725cd370c6ea1e8f4a28298350f3dc024d4e668e
Author: Julian Lam <julian@nodebb.org >
Date: Mon Dec 18 14:23:52 2017 -0500
backend logic and testing complete for deletion and restoration of chat messages
commit 072da758319cc93fa4c6f8bc0d672a1b716dc06e
Author: Julian Lam <julian@nodebb.org >
Date: Mon Dec 18 13:52:35 2017 -0500
changing message delete logic to not remove mids, but to filter when retrieving
commit 68bf373305ab82737658a7c31dc5549af4d6d69f
Author: Julian Lam <julian@nodebb.org >
Date: Mon Dec 18 12:37:58 2017 -0500
logic to handle deletion of a deleted chat message -- added some failing tests
commit 6899d0d234fa752e227188aa69cfcabd0d0500cc
Author: Julian Lam <julian@nodebb.org >
Date: Mon Dec 18 11:35:36 2017 -0500
chat message deletion logic
2017-12-18 14:45:06 -05:00
Julian Lam
541aa7fbc6
closes #6177
2017-12-15 16:02:20 -05:00
Peter Jaszkowiak
46fafb20b9
Remove string.js dependency
2017-10-13 21:02:41 -06:00
Peter Jaszkowiak
932ae4e86d
Merge branch 'master' into notif-abort
2017-05-09 11:31:58 -06:00
Peter Jaszkowiak
033ce02e7b
Rename hooks
...
Add `static:messaging.canMessageRoom` as well
2017-04-26 15:22:17 -06:00
Peter Jaszkowiak
42e21d5aa9
Add more messaging hooks
2017-04-26 10:45:40 -06:00
Julian Lam
d18cfced96
Merge remote-tracking branch 'origin/master' into develop
2017-04-12 23:57:14 -04:00
Peter Jaszkowiak
1ed571189c
Make utils and translator easier to require
...
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
barisusakli
6f49509645
fix newSet on redis
2017-03-08 15:09:58 +03:00
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
2017-02-17 19:31:21 -07:00
barisusakli
ba1889f441
messaging refactor
2017-01-03 20:02:24 +03:00