Denis Arh
500e8e317c
Improve SMTP
...
API can now be started without properly configured SMTP (it complains when it is used)
Send() function can now use alternative dialers (mostly used for testing)
Added mailhog service (make mailhog.up) to ease mail testing
Add default .env example that points to localhost:1025 (mailhog) setup
Proper unit testing
2019-01-13 14:45:27 +01:00
Tit Petric
11b25bd091
update mocks for sam/ and system/
2019-01-11 15:28:49 +01:00
Tit Petric
513152c277
add(all): include SMTP flags into apps
2019-01-09 19:08:30 +01:00
Denis Arh
ec9a08b42e
Thread filter now returns only threads current user created or replied to
2019-01-03 22:01:17 +01:00
Denis Arh
a83c1ed3e6
MarkAsUnread now returns number of unread messages
2019-01-03 21:37:41 +01:00
Denis Arh
93f8eed8f3
Some protection for empty sets passed to ... IN (?) queries...
2018-12-12 13:32:58 +01:00
Tit Petric
fb8f6dcdb3
add(sam): migrate messages to utf8mb4
2018-12-05 15:35:43 +01:00
Tit Petric
43554592e4
upd(codegen): enable imports with requests
2018-12-04 15:26:51 +01:00
Tit Petric
d9606440b7
add(sam): spec and scaffold of permissions api
2018-12-04 14:38:31 +01:00
Tit Petric
f2dfffbab2
update:
...
- codegen includes rbac since it's used everywhere,
- update permissions structure naming for title/subtitle
2018-12-04 14:38:31 +01:00
Denis Arh
1387f56f35
Fix bug when creating new group chan
2018-12-02 07:39:53 +01:00
Tit Petric
6a3fd9bc3b
upd(codegen): follow golang standard pkg layout
2018-11-25 11:41:46 +01:00
Tit Petric
338b340998
upd(sam,system): moved system tables away from sam
2018-11-24 20:41:36 +00:00
Tit Petric
297ffda5ad
add(all): migrations for tests, statik update
2018-11-24 19:50:07 +00:00
Tit Petric
7aff95096e
upd(sam): drop old events tables, unused
2018-11-24 18:57:37 +00:00
Tit Petric
5a747d746f
del(sam): remove unused proto file
2018-11-24 18:56:31 +00:00
Tit Petric
491efca67b
del(codegen): remove all go:generate macros
2018-11-21 15:54:13 +01:00
Tit Petric
9feda8823b
upd(sam): rename generated perms files, move codegen
2018-11-21 15:01:12 +01:00
Denis Arh
e5ff3ae7b3
Improve type-set generator, apply to system, sam
2018-11-21 07:02:57 +01:00
Denis Arh
8c488b83b0
Count unread messages on mark-as-unread
2018-11-19 08:52:32 +01:00
Denis Arh
eabd0b2314
Tweak security rules for channel fetching
2018-11-15 17:14:17 +01:00
Denis Arh
f51f0f80a5
Unreads, channel (and message) activity capabilities extended
2018-11-15 16:46:33 +01:00
Denis Arh
277b7412d1
Add support for unread in threads
2018-11-15 16:46:33 +01:00
Denis Arh
0f1f545b90
Add thread participants to msg struct
2018-11-14 05:57:55 +01:00
Denis Arh
01dee6f85c
Fix sec check for channel join/part
2018-11-13 16:05:26 +01:00
Denis Arh
d74825b40e
Add security checks for channel, membership updating
2018-11-13 13:56:56 +01:00
Denis Arh
c5f49b347e
Fix channel changing system messages
2018-11-13 11:03:43 +01:00
Tit Petric
9494271380
add(crm): chart mock api and statik codegen
2018-11-12 15:40:18 +01:00
Denis Arh
0ee0951630
Add support for fetching pinned & bookmarked messages
2018-11-08 22:48:55 +01:00
Denis Arh
5b832bbea1
Implement mentions
...
Extends internal type and outgoing structs
2018-11-07 11:21:11 +01:00
Denis Arh
db5f7623e5
Message flag repo struct renamed (from reaction to messageFlag)
2018-11-07 11:21:11 +01:00
Denis Arh
8dd11b6b0e
Send back changed message
2018-11-06 10:07:20 +01:00
Tit Petric
170c0a13ee
upd(sam): spec.js naming convention update
2018-11-05 16:14:31 +01:00
Tit Petric
3963aa9653
fix(sam): spec for attachments
2018-11-05 15:09:54 +01:00
Tit Petric
72e34f77d7
add(system): user, teams and orgs apis, refactor auth
2018-11-05 13:38:25 +01:00
Tit Petric
ae9e60b967
upd(all): codegen docs update
2018-11-05 13:37:49 +01:00
Tit Petric
fdf24b3e2c
Refactor for new system service
...
- upd(all): indent spec.json files on all apps
- upd(auth): rename auth app to cmd
- upd(sam): move orgs, teams to system
- upd(system): extend spec.json for check
- upd(codegen): include system/
- upd(codegen): always generate spec files
- upd(sam): references from auth to system
2018-11-05 12:04:04 +01:00
Denis Arh
67c1a47b16
Message pin/reaction events are now sent standalone (w/o message obj)
2018-11-02 18:19:45 +01:00
Denis Arh
242408e83e
Refactor and polish flags (reactions, pins & bookmarks)
2018-11-02 10:07:32 +01:00
Denis Arh
71986df8d3
More options for msg search queries
2018-11-01 14:34:08 +01:00
Denis Arh
52cd5d33da
Move messages search rest endpoint under /search/messages, add controller, fix searching by query
2018-11-01 11:49:17 +01:00
Denis Arh
c0c0a88aeb
Allow nameless (groups) channels
2018-10-31 13:07:30 +01:00
Denis Arh
2fb769ab57
Fix *%!s(MISSING)* when channel is created
2018-10-31 10:12:24 +01:00
Denis Arh
af204260c4
Add missing repo call for unarchiving
2018-10-31 09:37:09 +01:00
Denis Arh
7ac8b9b5f7
Redone channel (un)deleting/(un)archiving
2018-10-31 08:36:09 +01:00
Denis Arh
a14980bb5e
Disable message lenght validation
2018-10-30 12:21:45 +01:00
Denis Arh
77011522bc
Flip order of chan-deleted and msg-about-chan-deleted events
...
This will force clients to unsubscribe from deleted channels and ignore the chan-delete message.
2018-10-30 11:52:47 +01:00
Denis Arh
cc1e914987
Improved system messages on channel rename/join/part...
2018-10-30 09:54:17 +01:00
Denis Arh
deddcb1c5d
Message length validation
2018-10-30 09:48:39 +01:00
Denis Arh
e97cbcea51
Redo service mocking, add ch name & topic length validation
2018-10-30 09:31:47 +01:00