Dmitry Verkhoturov and Umputun
cab3b8a831
move admin email notifications call to rest/api module
2020-04-06 16:27:19 -05:00
Dmitry Verkhoturov and Umputun
30c42ce36b
Multiple CI and code fixes ( #486 )
...
* enable golangci-lint for momeory_store example
* add race_test option to makefile
* prune lost goroutine in TestRest_Shutdown
* run race tests without cache
* fix ci pipeline
* fix typos
2019-12-09 12:30:07 -06:00
Dmitry Verkhoturov and Umputun
b40cb7866b
Email sender implementation ( #471 )
...
* email sender initial implementation
* add VerificationMetadata into notify.Request
* multiple review fixes
- customizable verification notification message subject
- clarify autoFlush nature in its commentary
- defer writer.Close in Email.sendEmail instead of calling it manually,
potentially missing the call if error happened between the creation and
closing.
* add explanatory commentary to notify.Request structure
* fix TCP connection timout commentary typo
* improve table tests presence
* introduce parallelism to tests
* abstract smtpClientWithMaker away
* fix incorrect Email reference in Email.sendMessages
* naming fixes, remove t.Parallel() from tests
* consistent space in commentary
* rename sendEmail to smtpSend, rearrange variables definitions
* switch Email to create new connection for every Send request
* fix tests for connection-per-submit email sending
* fix tests
* simplify sender object
2019-12-02 18:59:32 -06:00
Dmitry Verkhoturov
6c73a38c49
switch notify.Submit to receive notify.Request instead of store.Comment
2019-11-23 13:24:57 +01:00
Umputun and GitHub
4adbca22b2
Refactor rest ( #320 )
...
* fresh vendor
* enforce vendor flag with env
* move tree to service package
* move controllers routing to rest.go, remove separate subrouters
* cleanup/formatting
* missing vendor packages
* move rss, img proxy, robots and getstarted to top-level routes
* simplify logger middleware usage
* randomize server test ports
* check for non-admin in admin tests
* lint: minor warns
* admin test to jwt admin
2019-05-07 01:54:19 -05:00
Umputun
76d0cc32e2
use repeater context to avoid long calls
2019-01-30 15:59:00 -06:00
Umputun
1a78c6eec6
add @ prefix for non-integer tg channelID #255
2019-01-21 13:28:03 -06:00
Pavel Alimpiev
a9909a91f4
Remove prefixing of a @ character to the channel name
2019-01-18 12:50:13 +03:00
Umputun
781d90e98b
switch to lgr
2019-01-07 22:32:50 -06:00
Umputun
ad6491ff14
tg link with post title
2019-01-05 17:48:39 -06:00
Umputun
c9ce07c2e8
repeat telegram init attempt #225
2018-11-30 11:43:58 -06:00
Umputun
cefb5324d5
double telegram timeout
2018-11-30 11:30:55 -06:00
Umputun
0f3243e19b
close notifier in shutdown sequence
2018-11-04 11:51:08 -06:00
Umputun
c589b5d65c
eliminate manual json marshaling in tg
2018-10-26 13:58:31 -05:00
Umputun
16411c9375
unescape tg message
2018-10-26 12:55:30 -05:00
Umputun
ae5aa5c1b7
switch tg to post
2018-10-26 12:40:18 -05:00
Umputun
07f3e07871
change arrows symb
2018-10-26 10:55:08 -05:00
Umputun
aac58fac1e
restore icon in tg message
2018-10-26 02:57:34 -05:00
Umputun
43b97f8d56
typo in comment linl
2018-10-25 23:21:24 -05:00
Umputun
431e8f2971
more tests for unhappy tg path
2018-10-25 20:27:35 -05:00
Umputun
f08144d19e
unicode arrow for tg orig link
2018-10-25 13:07:57 -05:00
Umputun
0ab71de95d
unicode arrow for tg from->to
2018-10-25 12:48:23 -05:00
Umputun
7db2959eb1
mack to markdown tg formatting, html is way too limited
2018-10-25 12:38:55 -05:00
Umputun
bc510f8c8e
replace br to \n for telegram
2018-10-25 12:22:59 -05:00
Umputun
8f90af8343
fix br to one telegram may like more
2018-10-25 12:14:10 -05:00
Umputun
b1a4d9b2da
p to br in telegram formatter
2018-10-25 12:05:51 -05:00
Umputun
092161ff6f
show url on err message
2018-10-25 11:52:53 -05:00
Umputun
3866d8e3b9
details to failed telegram send
2018-10-25 11:41:35 -05:00
Umputun
f550438236
change telegram msg to html
2018-10-25 11:29:55 -05:00
Umputun
cdea2bc293
diable web page to true
2018-10-24 22:56:10 -05:00
Umputun
a7b0a4bbf6
disable_web_page_preview for telegram notif
2018-10-24 22:47:00 -05:00
Umputun and GitHub
8c5531b178
Notify ( #211 )
...
* add notify service with no destinations
* change to request for destinations
* add telegram notify and wire to main
* lint: missed err checks
* fix notify factory
* externalize timeout for notify
* fix race in notifier mock
* lint: check notify send status in tests
* lint: write warn
* lint: wrong assignment
* lint: two more writes in tests
* missing notif timeout default
2018-10-24 22:28:56 -05:00