dusan
db1676cb0f
NOISSUE - Update Mockery version
...
Signed-off-by: dusan <borovcanindusan1@gmail.com >
2026-03-11 09:54:10 +01:00
Nataly Musilah
8203666e58
NOISSUE - Update READMEs ( #380 )
...
* fix web url
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
* add new readmes
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
* add other services
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
* fix docker link
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
* fix reports examples
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
* revert go.sum change
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
---------
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
2026-01-22 14:16:52 +01:00
Dušan Borovčanin
60e256c267
NOISSUE - Replace interface{} with any ( #285 )
...
Signed-off-by: dusan <borovcanindusan1@gmail.com >
2025-08-26 13:26:32 +02:00
Felix Gateru
c07922e0be
NOISSUE - Update e2e tests ( #261 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-08-04 11:14:17 +02:00
Felix Gateru
f7dad77613
NOISSUE - Move codecov yaml file ( #252 )
...
* refactor: move codecov.yaml file
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: remove config yaml referece
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: add auto generated api files to ignore
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
---------
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-07-18 10:55:41 +02:00
Steve Munene
748a3dcb49
NOISSUE - Update mockery files ( #251 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2025-07-14 10:35:47 +02:00
Steve Munene
2e0432bdb5
MG-134 - Add support for Report templates ( #180 )
...
* initial implementation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* initial implementation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add remove report from nats handler
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* move runinfo to pkg
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update report handler
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update reports handler
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update handler in reports
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update go.mod and go.sum
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update package to chromedp
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* change update reorts to use chromium
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update report template
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add endpoint and repo methods
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add template validation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove repeated code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix template formatting
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update report template
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix mocks and tests
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove debug logs
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix api docs
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove pointers
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix template path
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix template path
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing validation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix logic
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* revert ui variable changes
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* rename method
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update to browserless service
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix go mod file
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
---------
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2025-07-09 18:44:59 +02:00
Steve Munene
5566c0970d
NOISSUE - Fix mockery ( #205 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2025-06-16 15:45:04 +02:00
Steve Munene
dcd5ff914d
MG-136 - Move reports to a separate service ( #152 )
...
* initial implementation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* initial implementation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add remove report from nats handler
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add license header
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unused code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update docker compose
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* move runinfo to pkg
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update report handler
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update reports handler
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update handler in reports
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update repo method from time to due
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix validation methods
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update reports port to 9017
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update nginx to support reports
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix reports location in nginx
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update env variable
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
---------
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2025-06-16 12:10:50 +02:00
Dusan Borovcanin
c35bc42210
NOISSUE - Fix typos
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-06-06 14:05:18 +02:00
Steve Munene
02da121280
MG-94 - Add backend support for reports ( #107 )
...
* initial implementation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix missing variable
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix api and add report config to rule engine
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix repo command
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix download request
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix download api
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix add report config
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unused parameters
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add limit field to config
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add test and address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unused code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add logger
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove logger
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* uncomment code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add status check
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* resolve conflicts
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* rebase code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix startdate when zero
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unused code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add time expression parser and logics
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix postgres methods
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix pdf and csv generation
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add description for reports
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove aggregation field
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unused code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove logs
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix go mod file
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix endpoint and postgres methods
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update report config update methods
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix service test
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unnecessary check
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove endpoints
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unused code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix generate PDF and CSV
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove unused code
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* address comments
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* revert UI variable
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* add empty line
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix go mod file
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update download api
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* revert UI variable
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix download endpoint
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* update generateREport method
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing tests
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* refactor generate api
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix failing linter
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix csv column
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* fix csv generator
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* remove logs
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
* updated reports logic and api
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix time conversion
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
---------
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
Signed-off-by: Arvindh <arvindh91@gmail.com >
Co-authored-by: Arvindh <arvindh91@gmail.com >
2025-04-28 09:09:22 +02:00
b1ackd0t
b3e2f41194
NOISSUE - Add Alarms ( #106 )
...
* WIP: alarms service
* fix(alarms): remove rule entity since it is not stored here
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* test(alarms): add tests cases for invalid alarms
* feat(alarms): add authorization
* feat(alarms): add docker deployment files
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix: update go mod file
* feat(alarms): support filtering by resolved_by, updated_by and severity
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* style: fix linter errors
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): provide correct otel naming for create alarm
Fixes https://github.com/absmach/magistrala/pull/106#discussion_r2030151971
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): group routes appropriately
Resolves https://github.com/absmach/magistrala/pull/106#discussion_r2030160891
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): extract alarm id from url path rather than query params
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): add all status to help in decoding
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* style(alarms): maintain consistent import as naming for supermq api package
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* refactor(alarms): update supermq dependecy to the latest
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): Add domains gRPC service config to alarms service
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* test(alarms): all CRUD operations from the service
Return empty results instead of nil
This standardizes error responses across alarm endpoints to return empty
result structs rather than nil. Also renames entityReq to alarmReq and
adds HTTP status codes for created/deleted alarms.
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* test(alarms): fix failing tests due to introduction of context on sdk
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): remove channel id
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): standardize error handling across CRUD operations
Updated error responses to use specific repository errors for consistency
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): add assignment fields to Alarm model and database
Introduced AssignedAt and AssignedBy fields to the Alarm struct and updated the database schema accordingly. Enhanced the UpdateAlarm function to handle these new fields, ensuring proper assignment tracking in the alarms system.
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): enhance Alarm model with measurement attributes
Updated the Alarm struct to include Measurement, Value, Unit, and Cause fields. Modified the validation logic to ensure these fields are present. Adjusted logging and tracing middleware to reflect the new attributes. Updated database schema and related functions to accommodate these changes, ensuring comprehensive alarm data management.
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): consume events from pubsub for creation of alarms
Removed session dependencies from CreateAlarm method and enhanced alarm validation to ensure all required fields are present
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* style(alarms): add newline at the end of docker compose
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): Add assignee id and metadata fields when consuming messages
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): add acknowledged field
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): Add threshold value for the specific measurement
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): Add channel, thing, and subtopic fields to Alarm model
This change adds required fields for tracking alarm sources and reorganizes
alarm-related fields for better grouping. Alarms now track the channel,
thing, and subtopic that triggered them, along with domain and rule info.
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* test(alarms): add service layer tests
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): consume created at from message rather than creating it
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): ready alarm as a gob encoded object
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): read alarms from alarms queue and remove transformer
g
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): update version of supermq
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* feat(alarms): add gob transformer
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): rename thing id to client id
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): create alarms stream
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): check on logic to create new alarm
create new alarm if severity, status, subtopic changes
enhance logging with additional details for alarms management
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* remove conusmer and use pubsub
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* fix(alarms): use build tags for rabbitmq and nats
* fix(alarms): add health and metrics endpoint
* fix(magistrala): use supermq as build flags to see version and commit
* fix(alarms): use js config
* fix(alarms): remove validation when updating an alarm
fix authorization too
---------
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
2025-04-15 19:32:09 +02:00
Dusan Borovcanin
faaf42941d
Sync with SMQ
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-04-11 15:31:55 +02:00
Dusan Borovcanin
dd1df566c7
NOISSUE - Simplify generated mocks check
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-04-01 19:10:33 +02:00
Dusan Borovcanin
0b19ac9f65
NOISSUE - Fix license header check
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-04-01 13:39:41 +02:00
Dušan Borovčanin
b34a6cb457
NOISSUE - Simplify Mockery config ( #101 )
...
* Fix Mockery config
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Simplify Mockery config
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
---------
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-04-01 12:13:52 +02:00
Dušan Borovčanin
d6477a484f
NOISSUE - Update YAML files ( #100 )
...
* Rename yml to yaml extensions
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update Docker project name
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update SMQ YAML files
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update Mockery
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update Mockery version
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Remove mocks before running Mockery
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update check order
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Fix tests
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
---------
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-04-01 10:41:26 +02:00
Dušan Borovčanin
8f9a496ed6
NOISSUE - Fix SMQ script and dependencies ( #96 )
...
* Update Makefile
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update SMQ dependencies
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Fix Makefile
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update CI linter
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update Codecov version
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update Mockery version
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
---------
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2025-03-28 19:38:37 +01:00
b1ackd0t
1b772d3bbe
NOISSUE - Fix e2e script ( #85 )
...
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
2025-03-18 13:58:51 +01:00
Felix Gateru
cd528e75d3
NOISSUE - Add Readers and Consumers SDK ( #33 )
...
* refactor: aligh bootstrap with new supermq architecture
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: rename env variables
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* style: add empty line to config files and bootstrap docker compose file
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: add supermq sdk to magistrala sdk
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: extend supermq sdk in magistrala sdk
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* reafctor: update responses
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* feat: add readers and consumers sdk
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* ci(messages.go): fix filename
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* feat: add readers sdk
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: remove notifier interface
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: remove notifier interface
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
---------
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-01-13 10:31:45 +01:00
Felix Gateru
ec71a5edfd
MG-28 - Align Bootstrap with SuperMQ ( #31 )
...
* refactor: aligh bootstrap with new supermq architecture
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* feat: add sdk and update api docs
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: rename env variables
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* style: add empty line to config files and bootstrap docker compose file
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: add supermq sdk to magistrala sdk
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* refactor: extend supermq sdk in magistrala sdk
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* reafctor: update responses
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
* ci: update api docs dir in swagger-ui deployment
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
---------
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2025-01-10 14:56:17 +01:00
Dušan Borovčanin
3bbb25bd64
NOISSUE - Remove SuperMQ duplicates ( #23 )
...
* Update docker-compose to use SuperMQ
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Remove duplicate services
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update Bootstrap
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Update other services to use SMQ
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Switch config prefix to SMQ
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Remove leftovers
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Remove duplicate interface definitions
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Remove unused actions
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Remove unused API docs
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Resolve linter comments
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
* Fix provision
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
---------
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-12-31 11:04:17 +01:00
Felix Gateru
233bbf9861
NOISSUE - Update Users tests ( #2498 )
...
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
2024-11-04 09:42:09 +01:00
Nataly Musilah
0019f71b46
MG-2426 - Replace generic Clients in Users service ( #2436 )
...
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Co-authored-by: Arvindh <arvindh91@gmail.com >
Co-authored-by: Felix Gateru <felix.gateru@gmail.com >
Co-authored-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-10-30 19:19:31 +01:00
Steve Munene
f88e11bdb2
NOISSUE - Remove domain from token ( #2468 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2024-10-25 14:41:51 +02:00
Steve Munene
ca8ed3b006
MG-2441 - Add domain ID to API ( #2442 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2024-10-23 21:40:13 +02:00
Dušan Borovčanin
eb881690c7
MG-2443 - Move Auth to the middleware ( #2444 )
...
Signed-off-by: 1998-felix <felix.gateru@gmail.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Signed-off-by: Felix Gateru <felix.gateru@gmail.com >
Signed-off-by: Arvindh <arvindh91@gmail.com >
Co-authored-by: Felix Gateru <felix.gateru@gmail.com >
Co-authored-by: Arvindh <arvindh91@gmail.com >
Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com >
2024-10-17 16:24:53 +02:00
Steve Munene
e5765c6a9b
MG-2359 - Replace Vault with Absmach certs ( #2425 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Co-authored-by: b1ackd0t <28790446+rodneyosodo@users.noreply.github.com >
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@abstractmachines.fr >
2024-10-14 15:51:15 +02:00
Dušan Borovčanin
4552b7c7ab
NOISSUE - Ignore tools dir in CI tests ( #2452 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-10-07 17:54:29 +02:00
dependabot[bot]
5f0235ce67
NOISSUE - Bump github.com/authzed/authzed-go from 0.15.0 to 0.16.0 ( #2445 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-09-30 11:23:15 +02:00
Felix Gateru
48c4a7e7d4
MG-2264 - Split Auth Client into Separate Clients for AuthN/AuthZ and Policy CRUD ( #2392 )
...
Signed-off-by: 1998-felix <felix.gateru@gmail.com >
2024-09-03 16:50:28 +02:00
Steve Munene
6c54214732
MG-887 - Create certs, messages, health, consumers CLI tests ( #2350 )
...
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com >
2024-07-18 17:23:20 +02:00
JMboya
468362aac4
MG-2193 - Generate mocks for proto interface ( #2324 )
...
Signed-off-by: JeffMboya <jangina.mboya@gmail.com >
2024-07-12 10:36:12 +02:00
Felix Gateru
42be65a3d2
MG-2186 - Migrate gocoap library from v2 to v3.3 ( #2183 )
...
Signed-off-by: 1998-felix <felix.gateru@gmail.com >
2024-05-22 12:35:47 +02:00
b1ackd0t
3cfcf14a50
NOISSUE - Fix provision test command ( #2182 )
...
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2024-04-17 09:40:08 +02:00
Dušan Borovčanin
a39d46238b
NOISSUE - Fix links in README.md file ( #2129 )
...
Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com >
2024-04-03 11:55:06 +02:00
Nataly Musilah
8c084b177e
MG-234 - Improve Logging ( #255 )
...
Signed-off-by: Musilah <nataleigh.nk@gmail.co >
Signed-off-by: Musilah <nataleigh.nk@gmail.com >
Co-authored-by: Musilah <nataleigh.nk@gmail.co >
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@abstractmachines.fr >
2024-01-18 15:28:04 +01:00
b1ackd0t
6d2096cda9
NOISSUE - Fix e2e Testing Tool ( #135 )
...
* fix(e2e): Add admin role and permission
This commit adds a new constant and modifies the `createUser` function. The function now creates a user with an admin role and a domain with admin permissions.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* chore(ci): add e2e testing on CI
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* Remove unnecessary time.Sleep calls and optimize code execution
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-12-15 11:20:48 +01:00
b1ackd0t
a0c40ba462
NOISSUE - Update Copyright Notice ( #39 )
...
* chore(license): update copyright notices
Add CI check for non go files to check that the files contain a license
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* fix(ci): log failed files
When the CI fails during check for license header, log the failed file to console so that someone can check on the actual file. Also simplify the grep check to make it more human readable and understandable
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-11-17 12:37:30 +01:00
Arvindh
48dddc4bba
NOISSUE - Add Domains to the SDK ( #45 )
...
* add: domains sdk
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: error
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: cli users token and refresh
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: cli provision
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add domains cli
Signed-off-by: Arvindh <arvindh91@gmail.com >
* remove test program
Signed-off-by: Arvindh <arvindh91@gmail.com >
* update cli command for list domains
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add list user domain cli cmd
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix varaible naming
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: comments grammar & varabile; add package headers
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
2023-11-17 11:42:53 +01:00
b1ackd0t
44408395e6
NOISSUE - Fix renaming issues ( #17 )
...
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-11-02 14:48:13 +01:00
dusanb94
7066101996
Rename Mainflux to Magistrala
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
2023-10-26 12:50:56 +02:00
b1ackd0t
6da9a5da21
NOISSUE - Fix Linting ( #1938 )
...
* Fix linting
Signed-off-by: rodneyosodo <blackd0t@protonmail.com >
* Remove parentID when creating groups
Signed-off-by: rodneyosodo <blackd0t@protonmail.com >
---------
Signed-off-by: rodneyosodo <blackd0t@protonmail.com >
2023-10-21 23:26:47 +02:00
b1ackd0t
34f293220c
NOISSUE - Refactor e2e Testing Tool ( #1905 )
...
* Refactor e2e testing tool.
- Enable creation of things and channels over 100 values
using batched requests.
- Change library of generating random names to a better
one.
- Fix WS sending of messages.
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
* Refactor e2e test configuration
The e2e test configuration has been refactored to improve readability and maintainability. The following changes have been made:
- Removed the defReaderURL constant as it is no longer used.
- Added usersPort and thingsPort constants for the respective URLs.
- Updated the ThingsURL and UsersURL in the Test function to use the new constants.
These changes make the code more modular and easier to understand.
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com >
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-10-18 22:45:41 +02:00
b1ackd0t
89fcf1207d
Fix linting ( #1934 )
...
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-10-18 14:05:08 +02:00
Arvindh
cd82cc5a43
NOISSUE: Listing of shared things with users & Update SDK ( #1923 )
...
* NOISSUE - Fix Bugs (#20 )
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add Connect Disconnect endpoints (#23 )
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix list of things in a channel and Add connect disconnect endpoint
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix list of things in a channel and Add connect disconnect endpoint
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add: Things share with users (#25 )
* fix list of things in a channel and Add connect disconnect endpoint
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: things share with other users
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add: Listing of things, channels, groups, users (#26 )
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add: List of user groups & removed repeating code in groups (#29 )
* removed repeating code in list groups
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: list of user group
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: otel handler operator name for endpoints
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* add: listing of shared things and users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: listing of shared things and users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: new SDK
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: new SDK
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: comment
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: sdk function names
Signed-off-by: Arvindh <arvindh91@gmail.com >
* update: api spec
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: channels connect request
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: listing of clients and groups
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: CLI
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: array len comparision
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: nginx
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com >
2023-10-17 15:38:06 +02:00
b1ackd0t
5e060d5620
NOISSUE - Add More Linters ( #1924 )
...
* Fix linting errors
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(linters): add ineffassign linter
This commit adds the `ineffassign` linter to the project's `.golangci.yml` configuration file. The `ineffassign` linter helps identify and flag assignments to variables that are never used, helping to improve code quality and maintainability.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* Add extra linters
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(golangci): Add header check
- Added goheader check to ensure all files have license headers
- Added build tags for "nats" in the .golangci.yml file to include the necessary dependencies for the "nats" package during the build process.
- Also, increased the maximum number of issues per linter and the maximum number of same issues reported by the linter to improve the code quality analysis.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(.golangci.yml): Add new linters
Add the following new linters to the .golangci.yml configuration file:
- asasalint
- asciicheck
- bidichk
- contextcheck
- decorder
- dogsled
- errchkjson
- errname
- execinquery
- exportloopref
- ginkgolinter
- gocheckcompilerdirectives
These linters will help improve code quality and catch potential issues during the code review process.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
2023-10-16 11:43:33 +02:00
Dušan Borovčanin
3d3aa525a6
NOISSUE - Switch to Google Zanzibar Access control approach ( #1919 )
...
* Return Auth service
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update Compose to run with SpiceDB and Auth svc
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update auth gRPC API
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Remove Users' policies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Move Groups to internal
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Use shared groups in Users
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Remove unused code
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Use pkg Groups in Things
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Remove Things groups
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Make imports consistent
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update Groups networking
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Remove things groups-specific API
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Move Things Clients to the root
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Move Clients to Users root
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Temporarily remove tracing
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Fix imports
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Add buffer config for gRPC
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update auth type for Things
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Use Auth for login
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Add temporary solution for refresh token
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update Tokenizer interface
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Updade tokens issuing
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Fix token issuing
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update JWT validator and refactor Tokenizer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Rename access timeout
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Rename login to authenticate
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update Identify to use SubjectID
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Add Auth to Groups
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Use the Auth service for Groups
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update auth schema
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Fix Auth for Groups
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Add auth for addons (#14 )
Signed-off-by: Arvindh <arvindh91@gmail.com >
Speparate Login and Refresh tokens
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Merge authN and authZ requests for things
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Add connect and disconnect
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update sharing
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Fix policies addition and removal
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Update relation with roels
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Add gRPC to Things
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Assign and Unassign members to group and Listing of Group members (#15 )
* add auth for addons
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add assign and unassign to group
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add group incomplete repo implementation
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Move coap mqtt and ws policies to spicedb (#16 )
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Remove old policies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
NOISSUE - Things authorize to return thingID (#18 )
This commit modifies the authorize endpoint to the grpc endpoint to return thingID. The authorize endpoint allows adapters to get the publisher of the message.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Add Groups to users service (#17 )
* add assign and unassign to group
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add group incomplete repo implementation
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users stable 1
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users stable 2
Signed-off-by: Arvindh <arvindh91@gmail.com >
* groups for users & things
Signed-off-by: Arvindh <arvindh91@gmail.com >
* Amend signature
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix merge error
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Fix es code (#21 )
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Fix Bugs (#20 )
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Test e2e (#19 )
* fix: connect method
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* fix: e2e
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* fix changes in sdk and e2e
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(docker): remove unnecessary port mapping
Remove the port mapping for MQTT broker in the docker-compose.yml file.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* Enable group listing
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(responses): update ChannelsPage struct
The ChannelsPage struct in the responses.go file has been updated. The "Channels" field has been renamed to "Groups" to provide more accurate naming. This change ensures consistency and clarity in the codebase.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(things): add UpdateClientSecret method
Add the UpdateClientSecret method to the things service. This method allows updating the client secret for a specific client identified by the provided token, id, and key parameters.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Use smaller buffers for gRPC
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Clean up tests (#22 )
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add Connect Disconnect endpoints (#23 )
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix bugs
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix list of things in a channel and Add connect disconnect endpoint
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix list of things in a channel and Add connect disconnect endpoint
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add: Things share with users (#25 )
* fix list of things in a channel and Add connect disconnect endpoint
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: things share with other users
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Rename gRPC Services (#24 )
* Rename things and users auth service
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* docs: add authorization docs for gRPC services
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* Rename things and users grpc services
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* Remove mainflux.env package
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add: Listing of things, channels, groups, users (#26 )
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: listing of channels, users, groups, things
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Clean Up Users (#27 )
* feat(groups): rename redis package to events
- Renamed the `redis` package to `events` in the `internal/groups` directory.
- Updated the file paths and names accordingly.
- This change reflects the more accurate purpose of the package and improves code organization.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(auth): Modify identity method
Change request and response of identity method
Add accessToken and refreshToken to Token response
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* clean up users, remove dead code
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(users): add unit tests for user service
This commit adds unit tests for the user service in the `users` package. The tests cover various scenarios and ensure the correct behavior of the service.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Add: List of user groups & removed repeating code in groups (#29 )
* removed repeating code in list groups
Signed-off-by: Arvindh <arvindh91@gmail.com >
* add: list of user group
Signed-off-by: Arvindh <arvindh91@gmail.com >
* fix: otel handler operator name for endpoints
Signed-off-by: Arvindh <arvindh91@gmail.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Clean Up Things Service (#28 )
* Rework things service
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* add tests
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Clean Up Auth Service (#30 )
* clean up auth service
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
* feat(auth): remove unused import
Remove the unused import of `emptypb` in `auth.pb.go`. This import is not being used in the codebase and can be safely removed.
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
---------
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* NOISSUE - Update API docs (#31 )
Signed-off-by: rodneyosodo <blackd0t@protonmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Remove TODO comments and cleanup the code
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
* Update dependenices
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
---------
Signed-off-by: Arvindh <arvindh91@gmail.com >
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com >
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com >
Signed-off-by: rodneyosodo <blackd0t@protonmail.com >
Co-authored-by: b1ackd0t <28790446+rodneyosodo@users.noreply.github.com >
Co-authored-by: Arvindh <30824765+arvindh123@users.noreply.github.com >
2023-10-15 22:02:13 +02:00
Washington Kigani Kamadi
e2992cbede
NOISSUE - Change import name aliases ( #1868 )
...
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Change import name aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Change import aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
Fix aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
FIx errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
Fix error
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
FIx merge
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix import alias
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix errors
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix import
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Add linter to CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Remove unused aliases
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix merge issues
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix gci
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Add gofumpt
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Remove multiple gofupmt in CI
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Remove unnecessary changes
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix linter
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
* Fix CI pipeline
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
---------
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com >
2023-08-11 11:30:25 +02:00
Sammy Kerata Oina
7758f42f6b
NOISSUE - Improve graceful shutdown and code quality ( #1821 )
...
* remove single case switch
remove duplicate cases
Signed-off-by: SammyOina <sammyoina@gmail.com >
* remove single case switch \n format comments
Signed-off-by: SammyOina <sammyoina@gmail.com >
* graceful exit on main func
Signed-off-by: SammyOina <sammyoina@gmail.com >
* remove fatal from imported packages
Signed-off-by: SammyOina <sammyoina@gmail.com >
* reuse exit function
Signed-off-by: SammyOina <sammyoina@gmail.com >
* return nill for empty configs
Signed-off-by: SammyOina <sammyoina@gmail.com >
* return nil for config file not found
Signed-off-by: SammyOina <sammyoina@gmail.com >
---------
Signed-off-by: SammyOina <sammyoina@gmail.com >
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com >
2023-07-28 03:01:27 +02:00