JohnC
864ad144e6
MF-1478 - TimescaleDB writer and reader add-on ( #1542 )
...
* MF-1478 - TimescaleDb Reader/Writer Add-on
Signed-off-by: John Cleasby <john.cleasby@gmail.com>
* pull request 1542 change requests
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* pull request 1542 change requests 2
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* removed unused separator const from timescale reader and writer cmd
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* Fixed naming of timescaleRepo instance
Signed-off-by: corp0529 <john.cleasby@gmail.com>
* Fixed indentation and renamed repo to tr
Signed-off-by: corp0529 <john.cleasby@gmail.com>
2022-01-18 12:08:54 +01:00
Manuel Imperiale
b18c9e79dc
NOISSUE - Add timestamp transformation rules for specifc JSON fields ( #1514 )
...
* NOISSUE - Add timestamp transformation rules for specifc JSON fields
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests and defaults
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Created
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix READMEs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Config file
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve the timestamp Config structure
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typos
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix smpp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm duplicated Unmarshal
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Extract the error var
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Return error if time field transformation fails
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-12-14 11:17:23 +01:00
Burak Sekili
b78928c998
NOISSUE - Listing Policies ( #1498 )
...
* allow admin to fetch all things
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* enable users to fetch their own things via owner field in db
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* add listpolicies RPC
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* add listPolicies gRPC methods for client and server, and update keto initialization
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update fetching things method
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* remove log
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update retrieving policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* fix linter error
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update mock
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* remove checking subject set while parsing subject sets
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* move subject declaration to constant value
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-19 14:32:38 +01:00
Dušan Borovčanin
27d4646db4
MF-1443 - Add policies ( #1482 )
...
* MF-1443 - add policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* fix users create
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Add Policies for sharing a Thing (#1463 )
* MF-1454 - Add policies for sharing a Thing
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add a test case for sharing thing and update mock of AddPolicy
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update ShareThing parameter naming
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Policy Removal (#1466 )
* Add DeletePolicy gRPC endpoint in auth package
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update default admin creation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add policy addition endpoint (#1479 )
* NOISSUE - Add policy addition endpoint
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update name of the method
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
remove build tag
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add tests for AddPolicies (#1480 )
* NOISSUE - Add tests for adding policy and update authz check
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add more tests and update request body validation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update test case structure and utilize mock prefix for test ids
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Add initial policies for Group access control (#1467 )
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Resolve PR comments
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Author: Burak Sekili <buraksekili@gmail.com>
2021-10-27 00:38:28 +02:00
Ivan Milošević
66d3da0531
NOISSUE - Add SMPP notifier ( #1464 )
...
* Add SMPP notifier
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix readme
remove env file
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* resolve conversations
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Remove debug log
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Rename transmiter and transformer fields in struct
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix typo
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-10-06 14:34:23 +02:00
Burak Sekili
5ac1203b55
MF-1421 - Make flattening of JSON transformer only available on InfluxDB ( #1432 )
...
* MF-1421 - Add a flag for making flattening JSON transformer optional
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add test cases for JSON transformer without flattening
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add a comment for Transform
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Separate TestTransformJSON into two tests
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Replace flatten flag
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Remove unnecessary flattening while reading a message
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-07-22 11:20:47 +02:00
Ivan Milošević
cddfdf4038
NOISSUE - Use github action for showing OpenAPI spec with Swagger UI ( #1427 )
...
* init swaggerui action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove dep
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix filename
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add checkout master
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* try diffrent action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path for search
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* put almost all openapi spec to one folder
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix pattern
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* try servers changing
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* test k8s
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove servers
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use blokovi action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add cname
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Parameters ready for PR to upstream
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Fix errors in Auth openapi spec
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove white line
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix link in README
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change docs and api links in readme files
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-06-23 13:31:46 +02:00
Manuel Imperiale
9e5e50b347
NOISSUE - Update docker-compose images to latest release ( #1419 )
...
* MF-1390 - Fix docker-compose env_file
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Update README
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUE - Update docker-compose images to latest release
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use Postgres 13.3-alpine
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-05-24 18:35:07 +02:00
Dušan Borovčanin
516c02bebe
MF-1378 - Update dependencies ( #1379 )
...
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix compose files and configs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Upgrade image versions
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Postgres version
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update test dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix fkey error handling
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-05-20 20:53:56 +02:00
Dušan Borovčanin
e04d94ecc7
MF-1288 - Add tests for JSON messages in message writers and readers ( #1407 )
...
* Add JSON Writer tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Posgres Reader JSON tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add ID comment
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add MongoDB Reader tests for JSON
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename test message
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add tests for InfluxDB JSON messages
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use test file for constants block
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename MongoDB imports
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Cassandra reader JSON tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Simplify test payload
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Handle wrong format uniformly across Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-04-20 21:33:26 +02:00
Manuel Imperiale
9245e2593b
MF-1368 - Add internal http api package for query params reading ( #1384 )
...
* MF-1368 - Add internal http api package for query params reading
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use internal/http and internalhttp alias
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv errors types to pkg
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil/query.go and remove aliases
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add blank lines after error definitions
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add ReadBoolValueQuery
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv readBoolValueQuery
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* User ErrNotFoundParam instead of pointer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert ReadUintQuery to use default values
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use default values for all query readers
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-03-23 11:48:05 +01:00
Dušan Borovčanin
24b902d049
Fix env configuration and documentation ( #1360 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-02-08 22:38:52 +01:00
Dušan Borovčanin
13c426c09c
NOISSUE - Support disabling Email Agent authentication ( #1356 )
...
* Fix mailer configuration
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove unused Driver option
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Email Agent README
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-02-08 13:21:52 +01:00
Manuel Imperiale
ca5ff63dfb
NOISSUE - Upgrade Mongo, Cassandra and Influx docker images ( #1354 )
...
* NOISSUE - Upgrade Mongo, Cassandra and Influx docker images
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use cassandra version 3.11.9
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add MF_INFLUXDB_HTTP_AUTH_ENABLED envar
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use influxdb 1.8.4-alpine
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use influxdb 1.8.4
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-02-05 12:32:21 +01:00
Mirko Teodorovic
39a649c1bb
MF-1342 - Use environment variables in docker-compose to use tagged version of image ( #1343 )
...
* add MF_RELEASE_TAG
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme file for MF_RELEASE_TAG
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme file for MF_RELEASE_TAG
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix explanation, space
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bad search/replace
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bad search/replace
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve explanation for tag
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace snippet with link to code section
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve explanation for tag
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace snippet with link to code section
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove MF_RELEASE_TAG from service readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2021-02-02 16:26:02 +01:00
Dušan Borovčanin
a3dbfecb2d
MF-1311 - Add Notifications service ( #1324 )
...
* Add repo to Notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add initial repo implementation
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Subscriptions repo implementation
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add working version of main method
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Notifier API
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add API layer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Notifier interface
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix SMTP notifier main
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix email sending
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix main log
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Readme and fix env vars
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update README
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove commented code
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename notifiers to notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Consumer API to writers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix contact naming
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix spacing in init.go
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix API
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add mocks
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add initial service test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use pagination
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update List method
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix listing
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename SubscriptionPage to Page
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Finish service tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add DB tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add more API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove Things dependency
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add API docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Things references
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix AuthN typo
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix linter warnings
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add license comments
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix test order
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use service error for wrappers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix repo setup test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use total const in tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use constant contacts
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix code formatting
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename notifier implementation
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename Notify to Notifiers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Resolve remarks
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix naming and docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix docker-compose
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename Subscriptions to Notifiers service
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix logging
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix formatting and typo
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Resolve remarks
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix topic request
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-02-01 14:08:10 +01:00
Dušan Borovčanin
bf5ede086a
Fix Postgres writer transaction handling ( #1335 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-01-23 02:03:33 +01:00
Dušan Borovčanin
5cfc9305e5
Make Transformer type configurable ( #1331 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-01-20 13:10:40 +01:00
Dušan Borovčanin
6b7dc54c8b
NOISSUE - Switch to Consumers interface ( #1316 )
...
* Replace Writer with Consumer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Notifications package
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Consumer Start
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Consumer naming
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add repo to Notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove notify
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename consumer field in middlewares
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix remarks and add Readme
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-01-11 23:55:34 +01:00