Manuel Imperiale
1bf485b71b
NOISSUE - Upgrade influxdb and postgres docker images ( #1341 )
...
* NOISSUE - Upgrade influxdb and postgres docker images
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Upgrade grafana version
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Upgrade influxdb to 1.8.3-alpine
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-29 12:37:50 +01:00
Manuel Imperiale
8c87ee8328
NOISSUE - Revert cli to use user token from command args ( #1339 )
...
* NOISSUE - Revert cli to use user token from command args
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove CLI binary
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add offset, limit, name and rawOutput to config file
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert cli.ParseConfig()
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check config values before to use them
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-28 11:29:32 +01:00
Manuel Imperiale
0631900d5c
MF-1276 - Fix openapi IDs and Keys format ( #1338 )
...
* MF-1276 - Fix openapi IDs and Keys format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix jwt
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix acces-by-key
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-27 11:42:55 +01:00
Manuel Imperiale
4619576e94
MF-1061 - Add PageMetadata to readers ( #1333 )
...
* MF-1061 - Add PageMetadata to readers
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge conflicts
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv Total to MessagesPage
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix readers mock and add filters tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add Total check and allow combinations of query parameters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use slices length as Total
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify readers mock
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add empty lines
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-26 12:23:15 +01:00
Dušan Borovčanin
31f5bf714a
NOISSUE - Fix run script and compiler warnings ( #1336 )
...
* Fix NATS server naming in run script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix warnings
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix typo
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-01-26 01:07:06 +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
Manuel Imperiale
85f73a87b6
MF-1061 - Implement v, vb, vs, vd and from/to mongodb-reader filters ( #1326 )
...
* MF-1061 - Implement v, vb, vs, vd and from/to mongodb-reader filters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm duplicated test parameters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use pubID2 naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm unecessary *bson.D pointer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use from >= and to <= conditions and add tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert to half open interva
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-19 09:30:48 +01:00
Manuel Imperiale
0f856f5667
NOISSUE - Rename package aliases uuidProvider into uuid ( #1323 )
...
* NOISSUE - Rename pkg aliases uuidProvider into uuid and fix authn typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add missing error checks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use global uuidProvider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use expTime globally
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix user uuid provider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use idProvider name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use idProvider instead of uuidProvider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use idProvider instead of uuidProvider
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-17 23:12:45 +01:00
Ivan Milošević
0516fe2fd7
MF-1034 - Wrapping MQTT client ( #1318 )
...
* use subscribe interface
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* delete old implementation
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add subscribeToLoRaBroker method
change declaration
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove alias for package
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-01-15 23:22:18 +01:00
Manuel Imperiale
a8c652f96c
MF-1061 - Fix cassandra-reader count for json format ( #1327 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-13 10:23:05 +01:00
Manuel Imperiale
8e5a9cfc9a
MF-1061 - Implement v, vb, vs, vd and from/to cassandra-reader filters ( #1325 )
...
* MF-1061 - Implement v, vb, vs, vd and from/to cassandra-reader filters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert JSON implementation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-12 20:39:31 +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
Manuel Imperiale
973ca177ea
MF-1061 - Implement protocol, name, v, vb, vs, vd and from/to Postgres reader… ( #1322 )
...
* MF-1061 - Implement protocol, name, v, vb, vs, vd and from/to postgres-reader filters and tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-11 13:17:12 +01:00
Manuel Imperiale
a185855c06
MF-1061 - Add name, protocol and publisher tests to influxdb-reader ( #1320 )
...
* MF-1061 - Add name, protocol and publisher tests to influxdb-reader
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use short package aliases
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-11 10:53:38 +01:00
Manuel Imperiale
ac09815457
NOISSUE - Fix Auth typo ( #1319 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-11 10:00:13 +01:00
Ivan Milošević
3eca6920e1
NOISSUE - Add health check for MQTT broker ( #1305 )
...
* Add health check
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* update readme
use constants
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* close body after each HEAD request
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* log and close health check response body
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use healthcheck endpoint instead ping for docker healthcheck
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove for loop, only one check and exit if failed healthcheck
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* changed cmd for healthcheck
new version of verne image
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use false instead exit 1
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* return for loop
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* review
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add continue after unsuccesful http.get
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Use backoff package
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* extracting healtcheck function outside main()
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* go mod vendor
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* go mod tidy
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* go mod vendor
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-01-05 19:45:09 +01:00
Dušan Borovčanin
e326494166
MF-1264 - Add support for JSON readers ( #1295 )
...
* MF-1254 - Create universal JSON writer (#1260 )
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add JSON support to Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influx Reader tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix messages format query
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Postgres reader
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Cassandra Readers and writers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Mongo reader
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Extract utility method to the JSON transformer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influx and Postgres count
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update JSON transformer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influxdb Reader total count
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor init.go for Cassandra writer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Create a Payload type
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add comments for defaults
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix variable declarations
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace interface{} with a new type
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Don't set channel just to overwrite it later
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix range search
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename Messages field
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-12-30 15:43:04 +01:00
Mirko Teodorovic
47217cb5b9
NOISSUE - Merge authz and authn into new service auth ( #1313 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move authz into authn and merge into new service
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add group type
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mocks, some renaming, refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update proto
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mocks, some renaming, refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter err,and comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* undo renaming, add interface for authn and authz
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam some variables
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra slashes from comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving small remarks
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-29 23:02:35 +01:00
Manuel Imperiale
b2ccbaec27
MF-1061 - Implement InfluxDB filters value, v, vb, vs, vd, from, to ( #1312 )
...
* MF-1061 - Implement InfluxDB filters value, v, vb, vs, vd, from, to
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use time filters as float64 instead of int64
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove unnecessary cast
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use a const for limit in tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert float64 cast when dividing
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove value filter in favour to v
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use v, vb, vs, vd
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use v, vb, vs, vd
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm unecessary cast
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-12-25 19:23:54 +01:00
Manuel Imperiale
cb9985d160
NOISSUE - Correct readers openapi.yml ( #1310 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-12-21 11:45:37 +01:00
Dušan Borovčanin
1810cec82b
NOISSUE - Fix MQTT Forwarder client id ( #1309 )
...
* Fix MQTT Forwarder client ID
Don't set client ID for MQTT client in MQTT forwarder. It results in
error in case of multiple instances of the MQTT adapter because they all
share MQTT client ID, which makes broker disconnect all the other
adapters.
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Inline broker address option
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add MQTT client username
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2020-12-17 17:17:33 +01:00
Mirko Teodorovic
d2af0602a0
NOISSUE - Fix dates not being init properly on save, change path construction, replace UUID with ULID for group ID ( #1300 )
...
* fix path, group saving with parent
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change path, enable name change
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes for port
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace UUID with ULID
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix migrations
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert user groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid provider
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* enable group name change
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use null string for parent id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove migrations, disable group delete if group not empty
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert docker compose
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid provider
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove dash character replacment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename UUIDProvider
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename package alias
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused error
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-17 17:08:28 +01:00
Mirko Teodorovic
8aadc0ff40
NOISSUE - Remove authz from docker comp ( #1307 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove authz from docker
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert init.go
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-16 18:15:27 +01:00
Darko Draskovic
c7d2feb434
Shorten descriptions and add formats ( #1306 )
...
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-12-16 16:00:56 +01:00
Mirko Teodorovic
18dd8967cc
NOISSUE - remove owner id from user table and object ( #1303 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-15 15:57:37 +01:00
Darko Draskovic
9864b27271
NOISSUE - Add missing fields to openapi specs and enclose http codes in single quotes ( #1302 )
...
* Add req body to token req
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Shorten summaries and add/remove keys
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add single quotes to html response codes
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-12-15 00:20:42 +01:00
Manuel Imperiale
3653e6b5d2
MF-1290 - Sort Things and Channels by name ( #1293 )
...
* MF-1290 - Sort Things and Channels by name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add sort HTTP parameter and use PageMetadata to pass filters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix channels conn list
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix logs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace sort naming by order
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add order in responses
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve order tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve getNameQuery func
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix commits
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add name-asc and name-desc
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add dir query parameter
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test messages and openapi.yml
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi uuid format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check query parameters in endpoint layer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add asc endpoint tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename pageMeta into pageMetadata
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-12-08 21:30:47 +01:00
Mirko Teodorovic
fbba7aaa1a
MF-1248 - Add access policies for users ( #1246 )
...
* authz service init
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* authz service init
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add proto
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add proto
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* authorize method
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add casbib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add casbib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add casbib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add policy grpc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add policy grpc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix db connection, add environment variables, docker-compose
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add model.conf policy
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add model.conf policy
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests, and token for auth
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix auth service
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, add model conf env var
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove users grpc for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix error
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* some cosmetics
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolvin minor comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change endpoint, add file to fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix docker env
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix alignment and path for model.conf
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-08 17:04:09 +01:00
Ivan Savčić
20f5290d7a
Fixes, without spaces. ( #1296 )
...
Signed-off-by: Ivan Savcic <isavcic@gmail.com>
2020-12-04 18:59:16 +01:00
Darko Draskovic
23bc822433
Add different CNs for CA and certs ( #1292 )
...
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-11-26 15:32:52 +01:00
Mirko Teodorovic
7195cad0f6
MF-397 - Introduce Thing Groups ( #1259 )
...
* add things group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add parents and children methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add parents and children methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix logging message and temporary test fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bootstrap test fail
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to internal
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to internal
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix import
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments, add hierarchy info when retrieving groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* code refactor, separate http into multiple files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* code refactor, separate http into multiple files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix group update
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use user id when saving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use user id when saving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove temporary test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments, fix responses in api for groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add checks for name length
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix validation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
small change to response
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add comment for Level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level to limit hierarchy retrieval
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
tidy vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level to limit hierarchy retrieval
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
mod tidy
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
revert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
small naming and code organize refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
revert Member type
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix typo
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
use ltree
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
use ltree
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level for retrieving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add ltre
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
upgrade postgres version in test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add ltre
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
remove test for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
minor fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix id setting
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix tree endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
minor style changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, adding new lines
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change function signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change primary key
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change function signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplufy code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups test for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tabulation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix whitespace
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove white space, fix grammar
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sqls so that not additional retrieve is needed
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sqls so that not additional retrieve is needed
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix primary key
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
remove retrive by name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove name and parent update
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix cound sql
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify sql, fix table name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add date
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add date
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add timestamp to api
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix var name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix var name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-11-23 11:34:29 +01:00
Dušan Borovčanin
663bd4e18d
Add Enhancement section to the issue template ( #1284 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-11-17 22:52:56 +01:00
Darko Draskovic
c03644524e
Fix hardcoded env var values ( #1283 )
...
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-11-16 20:44:25 +01:00
Dušan Borovčanin
f1aa32d89c
NOISSUE - Improve AuthN service docs ( #1282 )
...
* Update AuthN service README
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Authn service docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-11-13 21:46:04 +01:00
João Matos
3273c30d8b
MF-1268 - CLI improvements ( #1274 )
...
* Prefix error messages in CLI with a bold "error: ".
Signed-off-by: Joao Matos <joao@tritao.eu>
* Remove duplicated "Usage: " from groups command help.
Signed-off-by: Joao Matos <joao@tritao.eu>
* Add a raw output mode for CLI and use it on logCreated.
Signed-off-by: Joao Matos <joao@tritao.eu>
* Add CLI global flag for user auth token.
Signed-off-by: Joao Matos <joao@tritao.eu>
* Add CLI config flag and parsing logic.
Signed-off-by: Joao Matos <joao@tritao.eu>
* Refactor CLI users commands outside array structure.
Signed-off-by: Joao Matos <joao@tritao.eu>
* Refactor CLI certificates commands using flags.
Signed-off-by: Joao Matos <joao@tritao.eu>
* Refactor CLI things create command using flags.
Signed-off-by: Joao Matos <joao@tritao.eu>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
2020-11-01 00:29:06 +01:00
João Matos
46c675cd5f
NOISSSUE - Vault integration as an addon. ( #1266 )
...
Integrates Vault PKI service as a service addon.
Also adds some helper scripts to help setup the CA in Vault, as well as
some docs to explain how to use them.
Originally based from https://github.com/mteodor/vault .
Signed-off-by: Joao Matos <joao@tritao.eu>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2020-10-31 21:44:25 +01:00
Dušan Borovčanin
02db4066b1
Fix naming in Authn API tests ( #1275 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-10-27 20:08:16 +01:00
Dušan Borovčanin
f6b1ae735c
MF-1244 - Return UserID alongside with user Email in Identify response ( #1245 )
...
* Add both an ID and an Email to API key requests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use return UserIdentity response
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace GetValue with GetEmail
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor Mainflux Key
Add `Subject` field and reorganize Key manipulation.
**Remove backward compatibility**
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix service test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix DB tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix JWT tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Uncomment and fix API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix SQL statements alignment
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Issue method docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Retrieve API and API docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-10-27 19:42:53 +01:00
Manuel Imperiale
926e9799d6
NOISSUE - Fix ViewGroup and UpdateGroup ( #1269 )
...
* NOISSUE - Fix ViewGroup and UpdateGroup
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add ID check and fix naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix id in groupUpdateReq
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-10-27 11:26:32 +01:00
Manuel Imperiale
1c298d8f27
NOISSUE - Add ListUsers, ViewUser and ViewProfile methods ( #1262 )
...
* NOISSUE - Add admin method in users service to return users list
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix loggings and metrics
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add email and metadata filters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Retrieve User infos by ID if Admin
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove admin checks and fix comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix missing query
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use generic funccs to create email and metadata queries
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add /users/profile endpoint
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify db helpers
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix View, List, Retrieve prefix methods naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tracer endpoints naming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests and remove TODO comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-10-26 10:17:08 +01:00
Manuel Imperiale
420b598ac7
NOISSUE - Rm users http package ( #1256 )
...
* NOISSUE - Mv users http gokit layers to http package
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove users/api/http dir
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-10-16 18:00:24 +02:00
Manuel Imperiale
86fe3f7cdb
NOISSUE - Remove content-type check from decodeListUserGroupsRequest ( #1255 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-10-16 12:54:27 +02:00
Darko Draskovic
3c794d4a03
NOISSUE - Migrate swaggers to openapi 3 spec ( #1250 )
...
* Migrate authn swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate http swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate bootstrap swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Fix users spec parameters indentation
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor user svc errs to return input related errors
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate certs swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate provision swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate provision swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate readers swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate twins swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor and rename bootstrap swagger
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Rename certs, http, provision and readers swagger to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor and rename user swagger to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor twins swagger and rename to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor things swagger and rename to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Cleanup whitespace
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-10-09 15:25:09 +02:00
Dušan Borovčanin
8dd59f8557
Update MQTT Broker Docker scripts ( #1253 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-10-09 11:57:08 +02:00
Ivan Milošević
bc41c32cf5
update mproxy version ( #1251 )
...
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2020-10-09 01:55:09 +02:00
Mirko Teodorovic
42e4e054c2
NOISSUE - Fix group retrieval when parent id is not specified ( #1247 )
...
* fix group retrieval
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor for better readability
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-10-01 17:03:35 +02:00
Mirko Teodorovic
9ed5f8334f
NOISSUE - Add new endpoint to retrieve configuration to be used as a template. ( #1242 )
...
* add provision service
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix code style
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test for provision
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* extra line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* return map[string]interface instead of interface
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-09-29 10:25:26 +02:00
Mirko Teodorovic
8ea26c5ab7
NOISSUE - Add user groups ( #1228 )
...
* adding group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding user group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add retrieve methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default admin user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default admin user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* changes signature for AssignUser
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* bug fixing retrieving groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* bug fixing retrieving groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* retrieve groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change environment for admin
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change environment for admin
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* retrieve groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove adding default group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* expose port for debugging purposes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tests, and linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add prefix Users for groups endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter problems
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix endpoint prefix url
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add group features in cli
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove println
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when user is created return id in response
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when user is created return id in response
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding default admin env
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* proper alignment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* proper alignment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename method
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* return user id when created
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* return user id when created
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused variable
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix to retrieve whole tree starting from parent
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add endpoint to list groups for user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add readme for groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fixing bugs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fixing bugs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add group commands for add and remove user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace default email, use example.com
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix capital letters beginning of sentence
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove warning for deprecated api, mistakenly copied
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify repo methods, rely on db driver rather than the check before operation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* check if group is valid
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* openapi spec 3.0
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove check for existing users in groups before delete
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change func signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change func signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bugs, resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bugs, resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix alignment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add missing command
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize envs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix doc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix compile
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize cli commands
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor corrections
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments, minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-09-23 23:18:53 +02:00
Darko Draskovic
043d1e0aac
MF-1237 - Return to transport only things service errors ( #1236 )
...
* Replace error messages for things and channels with error messages for entities
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add db and cache errors
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate swagger to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Remove db and cache specific err msgs and generalize errs
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Redefine status codes
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Define endpoint error codes in service and swagger
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Fix tests
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor sdk errors
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Fix grpc tests
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Reformat and add err check
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-09-23 15:44:39 +02:00