This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
Releases: ovh/tat
Releases · ovh/tat
5.2.5
5.2.4
5.2.3
See changes with previous release 50d6af7...6979f50
v5.2.2
5.2.1
Feature
Stream messages and display only username and text.
tatcli msg list /Internal/Alerts --stream --streamFormat '$TAT_MSG_AUTHOR_USERNAME $TAT_MSG_TEXT '
Stream messages and execute foo.sh on each message with 2 arguments: message ID and message Text.
echo 'echo $* >> foo.log' > foo.sh && chmod +x foo.sh
tatcli msg list /Internal/Alerts --stream --exec './foo.sh $TAT_MSG_ID $TAT_MSG_TEXT'
You can use :
$TAT_MSG_ID
$TAT_MSG_TEXT
$TAT_MSG_TOPIC
$TAT_MSG_INREPLYOFID
$TAT_MSG_INREPLYOFIDROOT
$TAT_MSG_NBLIKES
$TAT_MSG_NBVOTESUP
$TAT_MSG_NBVOTESDOWN
$TAT_MSG_DATECREATION
$TAT_MSG_DATECREATION_HUMAN
$TAT_MSG_DATEUPDATE
$TAT_MSG_DATEUPDATE_HUMAN
$TAT_MSG_AUTHOR_USERNAME
$TAT_MSG_NBREPLIES
$TAT_MSG_MSG_LABELS
$TAT_MSG_MSG_TAGS
$TAT_MSG_LIKERS
$TAT_MSG_VOTERSUP
$TAT_MSG_VOTERSDOWN
$TAT_MSG_USERMENTIONS
$TAT_MSG_URLS
5.1.0
Feature:
Execute 'myLights' binary for each new message on topic /YourTopic/YourSubTopic
tatcli msg list /YourTopic/YourSubTopic --stream --exec "./myLights --pulse blue --duration=1000"
Execute 'myLights' binary for each new message on topic /YourTopic/YourSubTopic and
another command if there is an error while requesting tat.
tatcli msg list /YourTopic/YourSubTopic --stream --exec "./myLights --pulse blue --duration=1000" --exec "./myLights --pulse red --duration=2000"
Count messages with label open on topic /Internal/Alerts, then :
- if there is 0 message, execute
blinkstick --morph green
- if there are between 1 and 5 messages, execute
blinkstick --morph yellow
- if there are more than 5 messages, execute
blinkstick --morph red
- if there is an error while requesting tat, execute
blinkstick --pulse red --duration=2000
tatcli msg list /Internal/Alerts --label=open --stream --exec 0:0:'blinkstick --morph green' --exec 1:5:'blinkstick --morph blue' --exec 6::'blinkstick --morph yellow' --execErr "blinkstick --pulse red --duration=2000"
5.0.2
Major
- tatcli now on https://github.com/ovh/tat, releases https://github.com/ovh/tat/releases
Features
- api: new stats distribution topics, GET /stats/distribution/topics
- api: max replies / topic - default: 30 replies
- api: message: new action relabelorcreate
- api: graylog integration
- api: sortBy
- tatcli: add --stream and --exec parameter on tatcli msg list
Doc
- relabelorcreate
- tatdashing
- tat2es
- mongo version min
- new repo tat-contrib
Fix
- default timeout on db must be < timeout api
- tune logs
3.0.0
Major Update
- Cache with Redis (optional)
- TAT Documentation Website: https://ovh.github.io/tat/
- SDK, godoc at http://godoc.org/github.com/ovh/tat#Client, example: https://ovh.github.io/tat/sdk/golang-simple-main/
- Hooks: webhooks, kafka, XMPP (with tat2xmpp) output
- Filters saved
- Allow update message (or like, vote, etc...) by using only a tagReference, a label... see https://ovh.github.io/tat/engine/api-messages/#action-on-a-existing-message
- Add many date filters on messages list, see https://ovh.github.io/tat/engine/api-messages/#examples
Changelog since 2.0.0 : v2.0.0...v3.0.0
2.0.0
Major update
- A message belongs to one topic only now.
- A GET on /Private/username/Tasks returns message in this topic and all message with label doing:username
- the field "topics" is kept for backwards compatibility
- new mongo index for more efficiency, with new field topic
Migrate from tat 1.x
http POST https://urltat/messages/countConvertTasksToV2 Tat_username:yourUsername Tat_password:yourTatPassword
http POST https://urltat/messages/doConvertTasksToV2 Tat_username:yourUsername Tat_password:yourTatPassword
http POST https://urltat/messages/countConvertManyTopics Tat_username:yourUsername Tat_password:yourTatPassword
http POST https://urltat/messages/doConvertManyTopics Tat_username:yourUsername Tat_password:yourTatPassword
http POST https://urltat/messages/ensureIndexesV2 Tat_username:yourUsername Tat_password:yourTatPassword
http POST https://urltat/messages/countEmptyTopic Tat_username:yourUsername Tat_password:yourTatPassword
The last command gives you number of topics not migrate to tat 2.x (field topic not exists or empty)
Chore / packaging
- logs/iot key
- update deps
Feat
- add async for /countEmptyTopic
- add prod logger
- allow http:// in tag
- check date on list
- list presences, get without topic name
- remove condition on move msg
Fix
- 401 if wrong auth
- err on find topic
- get msg in unknown topic
- remove admin user
- remove log fatal
- remove unused log / return on unknown topic
Refactor
- remove action bookmark
- task: add label doing and doing:username
1.2.1
Packaging
- add template for mesos/marathon
- Dockerfile with alpine
- vendoring with govendor
- go 1.6.2 and add logs on packaging
- static binary for linux amd64
Features
- enable / disable notifications on all topics
- add healthCheck entry
- add new Index on Presences collection
- /me/disable/notifications/alltopics -> except /Private/*
- add onlyFavorites param on topics list
- force usercheck on verify
- add log if err on mgo.dial
- add delete presence & check presences
FIX
- search by text, don't do OR on comma
- add to task if DM msg written by other
- list topics without criteria.OnlyFavorites
- timeout en read/write
- default group / topic for trusted users
- add unique index on presence
Others
refactor: move to models usefull structs
style: fmt -s & badge quality
doc: remove Sailabove doc