Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Releases: ovh/tat

5.2.5

13 Aug 08:34
a6052d1
Compare
Choose a tag to compare
v5.2.5

feat: add basic auth support for tatcli (#74)

5.2.4

03 Aug 11:26
a40019c
Compare
Choose a tag to compare
Fix/update dependency (#72)

* chore: Add .env to gitignore

* feat: Update "now" dependency

5.2.3

02 Oct 21:31
Compare
Choose a tag to compare

See changes with previous release 50d6af7...6979f50

v5.2.2

20 Apr 11:57
Compare
Choose a tag to compare
5.2.2

5.2.1

22 Jan 13:18
Compare
Choose a tag to compare

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

21 Jan 23:48
Compare
Choose a tag to compare

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

21 Jan 17:19
Compare
Choose a tag to compare

Major

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

06 Nov 14:53
Compare
Choose a tag to compare

Major Update

Changelog since 2.0.0 : v2.0.0...v3.0.0

2.0.0

20 Jun 11:39
Compare
Choose a tag to compare

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

08 May 16:40
Compare
Choose a tag to compare

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