Commit Graph
44 Commits
Author SHA1 Message Date
Umputun 0590246112 move comment alter functionality from rest and admin to store service 2019-05-16 20:49:07 -05:00
UmputunandGitHub 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 bc714480d4 lint: multiple shadowed errors, missed comments for exported methods 2019-03-19 20:54:05 -05:00
Umputun 76d0cc32e2 use repeater context to avoid long calls 2019-01-30 15:59:00 -06:00
Umputun 2c988aa226 fix tg send test 2019-01-21 13:34:42 -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 492f92e660 minor fixes for #247 2019-01-13 15:02:44 -06:00
Sergey c08a31809c moving back assert.equal 2019-01-12 01:22:08 +05:00
Sergey dd9b7d46ac telegram: increase coverage 2019-01-12 01:15:50 +05: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 b6b818253f make notifier store to local interface for testability 2018-12-19 13:24:23 -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 7233e95774 restore goroutine in notify non-blocking send 2018-11-14 11:08:25 -06:00
Umputun 3e49972e05 revert multiple attempt to notify, may cause dbl-posting 2018-11-14 11:05:37 -06:00
Umputun 35f8b17ac3 fix test with closed flag 2018-11-12 03:23:45 -06:00
Umputun c60c8d3f15 make norify close flag atomic 2018-11-12 02:26:52 -06:00
Umputun cbb534d2df init repeater in send loop 2018-11-12 02:10:22 -06:00
Umputun 30225e0fd0 repeater in tg send 2018-11-12 02:08:37 -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 5dd20062e2 adjust test to tg post 2018-10-26 12:42:46 -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 d80b2d33cb and nop notifier 2018-10-26 00:37:58 -05:00
Umputun cc3786b9e0 change dead port 2018-10-25 23:30:30 -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
UmputunandGitHub 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