* Fix total field when search by name
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix tests to check total count
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* NOISSUE - Fix Docker for ARM
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Correct ARGs
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Fix docker-compose for ARM
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add docker manifest
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* cp not mv qemu from mf root
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix amd64 docker names for ui and mqtt images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* edit ci.sh for testing purposes
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove bachslash from make manifest
edits in ci for testing purposes
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix manifest call
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add manifest on version realese
delete space before latest argument
fix for loop in manifest creation
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* include tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* docker system prune
remove tests for testin purposes
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add variant in manifest file for armv7
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove white space
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* paralelise the compilation
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix place of -j$NPROC
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove installing non-existent package from ci
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove branch master condition in ci.sh to test it
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix syntax error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* update apt
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* build arm images for latest release
push ui and mqtt arm images
install only qemu-user-static
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* clean docker after pushing amd64 images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* installing all qemu app
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove docker images before building ui and mqtt arm-images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* prune dockers and test only arm build
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix syntax error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix moving qemu-arm-static
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* installing qemu with apt-get
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add another apt-get update
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* apt install one liner
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* testing ci script
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* After installing qemu, get appropriate version
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Test ci without amd64 dockers
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove tests from ci for test purpose
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Uncomment commands
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove whitespace and change order of building images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* NOISSUE - Add searchable Things name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add postgres schema validation and tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add namme tests in requests_test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUE - Add searchable Channels name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix bootstrap mocks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add arm Dockerfiles
Change version of postgres images in docker-compose to use versions with multiarch
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* docker compose file
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove bin qemu file
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove unnecesarry comments
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add make dockers_arm32v7 in Makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove docker/Dockerfile.arm
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add build for arm32v7 in ui Makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add arm32v7 tags
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add docker-compose for arm
remove thing-db in docker compose (use same db as user)
fix dockerfile and makefile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix thing database env variable
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Switch back to separate database for things and users
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* rename arm32v7 to arm
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove arm32v7 tag
rename arm32v7 image names
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Rename command for making mqtt and ui individual images, to match other miscroservices
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Push arm docker images
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix fucntion call in ci.sh
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* mergiing ui/Dockerfile
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* NOISSUE - Add searchable Things name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add postgres schema validation and tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add namme tests in requests_test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo fix
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm requests_test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add name in ListThings loggins
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add invalidName var for tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Set maxNameSize to 1024
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix postgres test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix total when filtering things by name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add single user mode to things service
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add tests for things/users package
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update init order in main
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update version of the Nginx image
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add undefined check for HTTP and WS
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add username, password and port env var
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Update existing readme files with new env vars
Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
* Add compile tests to CI script
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix parallelization flag
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add support for channel filtering using config
Add support for channel filtering using yaml configuration files
for writers.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update writers documentation with new env var
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add info comment to configuration file
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix configuration and update yaml dep
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update config from yaml to toml
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add support for setting up thing key manually
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix existing tests and add new ones
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update SQL schema for things entity
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add update thing key endpoint to swagger docs
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix response code when handling conflicting key
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add pagination response to the readers
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Remove println from influx reader
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
This commit, intruduces changes to the current behavior of the "make cleandocker" command.
From now on, an extra parameter must be given in order to delete the persistent volumes, which up until now was done by default. The new command which represents the old behavior (deleting all artifacts created from the docker composition) is "make pv=true cleandocker".
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
* added filter and a switch for volume deletion
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
* added persistent volume configuration
Signed-off-by: Jovan Kostovski <chombium@gmail.com>
* Add check if Channels already exist
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update streams tests to use time offset
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Redis connection error handling in MQTT adapter
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add separate env vars for ES in MQTT adapter
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Create dedicated redis service for ES
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update docs according to changes
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add event sourcing section in dev guide
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix spelling in the docs
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix notice formatting in docs
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix typos in docs
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add highlight for event type
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update metadata type in things service
Update things service so that metadata has map type. Update repo
implementation by adding sqlx lib.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add sqlx lib to bootstrap service
Add sqlx lib to bootstrap service and update metadata field type.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update metadata in redis streams consumer
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update tests for bootstrap service
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix mongo reader logging and driver version
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix mongo reader and writer
Fix mongo reader and writer by updating driver version.
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update SDK with new metadata format
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update LoRa adapter with new metadata format
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update users service in order to use sqlx
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Replace anonymous struct with map
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Update docs for LoRa adapter
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix LoRa application metadata format
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Fix metadata format in LoRa docs
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add metadata2 var to SDK things test
Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
* Add initial Bootstrap event producer
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add operation name to events
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add ES path for BS events
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add BS event sourcing tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add connections update events
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract event XADD to separeate method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add header comments
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix service docs typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update BS service README.md
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update Service method tests
Tests for handler methods are not added.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove debugging message from response of handle error function
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Print error in debug console in case of bad body HTTP response
Signed-off-by: Ivan Milošević <iva@blokovi.com>