Skip to content

Commit

Permalink
Release merge (#467)
Browse files Browse the repository at this point in the history
* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* 1.0.31 Release

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* Release merge (#449)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* 1.0.31 Release (#448)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* fix(cli): fix bug with generating access token for user in cli (EWC-453)

* Release 1.0.32 (#462)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* 1.0.31 Release (#448)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release (#434)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Release (#435)

* release merge (#433)

* Release 1.0.28

* EWC-379 migrations between versions (#410)

* Maksimchepelev/bugs (#411)

* EWC-385 cli helps' outputs

* EWC-395 cli `microservice port-mapping-remove` error message fix

* EWC-389 cli `diagnostics strace-update` correct parsing of boolean

* EWC-390 cli `diagnostics strace-...` correct validation error messages

* EWC-392 cli `diagnostics strace-info` microservice validation

* EWC-394 sequelize (deprecated)find -> findOne

* EWC-388 validation of flowId in delete flow service

* EWC-393 validation of microserviceUuid in image snapshot services

* Maksimchepelev/bugs (#412)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* Maksimchepelev/bugs (#417)

* fix(code): delete routes on microservice deletion

Closes EWC-362

* update version 1.0.27 (#418)

* Merge versions (#420)

* release 1.0.27 version (#419)

* feat(core): add migration between versions (EWC-379)

* feat(core): add cli help output (EWC-385)

* fix(bug): fix cli `microservice port-mapping-remove` error message (EWC-395)

* fix(bug): fix cli `diagnostics strace-update` parsing of boolean (EWC-389)

* fix(bug): fix cli `diagnostics strace-...` validation error messages (EWC-390)

* feat(core): add cli `diagnostics strace-info` microservice validation (EWC-392)

* refactor(core): replace sequelize (deprecated)find -> findOne (EWC-394)

* refactor(core): edit validation of flowId in delete flow service (EWC-388)

* feat(core): add validation of microserviceUuid in image snapshot services (EWC-393)

* fix(help): Fix rsa-key description in cli tunnel help

need to update description for parameter -k, --rsa-key in help for tunnel from 'Tunnel RSA key' to 'Path to tunnel RSA key'

Closes EWC-396

* fix(tunnel): if port range not provided in config use default values

default range: 2000-10000

Closes EWC-397

* fix(tests): rename logLimit -> logSize (#416)

create microservice request in Postman Collection diagnostics block

Closes EWC-401

* feat(npm-scripts): allow to use only one image on catalog item creation (#415)

Closes EWC-399

* fix(transactions): fix transaction validation if last method's arg is undefined (#414)

Closes EWC-400

* feat(npm-scripts): init db automatically after installation (#413)

Closes EWC-368

* fix(code): delete routes on microservice deletion

Closes EWC-362

* Update CHANGELOG.md

* Release of version 1.0.27

* test(core) unit tests for user-controller (EWC-382)

* docs(core) Remove swagger.yml, remove CLI docs in README, add PULL_REQUEST_TEMPLATE.md (#422)

* remove swagger.yml - its content moved to https://github.com/ioFog/iofog.org/blob/master/content/docs/1.0.0/controllers/rest-api.md

* Add PULL_REQUEST_TEMPLATE.md

* remove docs from README, instead use https://iofog.org/

* Maksimchepelev/bugs (#421)

* fix(cli): user can't update deviceScanFrequency via cli

deviceScanFrequency -> deviceFrequency in build cli data object

Closes EWC-350

* fix(catalog): forbid to create system microservices

Closes EWC-409

* fix(cli): forbid to delete connector when it used

Closes EWC-364

* fix(connector): add certificates on close port request

Closes EWC-411 EWC-406

* fix(cli): fix messages on incorrect requests

Closes EWC-403

* fix(catalog): add validation in catalog service

registryId validation
empty update object validation

Closes EWC-417

* changed connector error message variable

* test(core) unit tests for microservices & registry controllers (EWC-382) (#423)

* add build stage for release branch

* Pre-release 1.0.28 (#429)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* Release 1.0.28 [skip ci]

* Release 1.1.0 [skip ci]

* Update package.json

* Update CHANGELOG.md

* Update package.json

* Merge (#436)

* fix(bug) fixed system microservices (HAL, bluetooth) launch (EWC-413) (#424)

* fix(bug) added registry email validation (EWC-418)

* test(core) unit tests for iofog-controller (EWC-382) (#426)

* test(core) unit tests for flow & diagnostics controllers, updated postman collection & refactored diagnostics (EWC-382) (#427)

* bug(fix) CLI diagnostics: Incorrect error message is displayed when user try to get strace-info (#428)

* test(core) unit tests for catalog, controller and agent controllers (EWC-382) (#430)

* bug(fix) CLI diagnostics ftp: Incorrect error message is displayed when user try to get strace-info (EWC-431)

* Release 1.1.0 [skip ci]

* Update package.json

* Release 1.1.0 [skip ci]

* Update package.json

* remove automated release

* bug(fix) strace feature bug (EWC-421)

* bug(fix) fixed deprecation warnings (EWC-422) (#438)

* bug(fix) CLI diagnostics ftp: invalid microservice uuid

* bug(fix) CLI diagnostics ftp: invalid microservice id (update) (#440)

* bug(fix) CLI diagnostics ftp: invalid microservice id (update)

* bug(fix): update id to uuid

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* test(core) unit tests progress for agent & access-token services (EWC-383) (#442)

* feat(npm-scripts): npm scripts improvements (EWC-358 EWC-430)

1. save configs during releases
2. migrate to new encryption algorithm

* bug(fix): microservices are shown after deleting user, new error message



* bug(fix): microservices are shown after deleting user, new error message (up test)

* bug(fix): microservices are shown after deleting user, new error message (up test2)

* feat(microservice): update change tracking on delete port mapping (#445)

Closes EWC-441

* version 1.0.31

* Epankou/bug network containers not removed ewc 424 (#450)

* EWC-418 added registry email validation

* EWC-421 strace feature bug

* EWC-421 strace feature bug fix

* bug(fix) iofog agent API: core network containers are returned when flow isn't active (EWC-424)

* bug(fix) microservice removal: port mapping removal (EWC-424)

* bug(fix) microservice removal: switched to const (EWC-424)

* test(core) unit tests for agent service progress (EWC-383) (#452)

* fix(cli): fix bug with generating access token for user in cli (#453)

Closes EWC-443

* test(core) unit tests for agent-service (EWC-383) (#455)

* bug(fix) fixed deprecated warning about Buffer constructor (EWC-422)

* test(core) unit tests for catalog service (EWC-383) (#458)

* Maksimchepelev/bugs (#457)

* fix(cli): fix validation on delete connector

Closes EWC-447

* fix(cli): fix data types and descriptions in help

'... settings JSON file' -> 'Path to ... settings JSON file'
flowId and
catalogId type 'string' -> 'number' in help

Closes EWC-445 EWC-446

* Maksimchepelev/bugs (#459)

* fix(iofog): add validation for version command

compare version command with isReadyToUpgrade and isReadyToRollback
fields

Closes EWC-448

* fix(code): fix logger is not defined error in app-helper

Closes EWC-397

* test(core) unit tests for change-tracking service (EWC-383) (#460)

* version 1.0.32 (#461)
  • Loading branch information
Railag authored Dec 28, 2018
1 parent 207e54a commit 36a65cd
Show file tree
Hide file tree
Showing 20 changed files with 1,513 additions and 148 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iofogcontroller",
"version": "1.0.31",
"version": "1.0.32",
"description": "ioFog Controller project for Eclipse IoFog @ iofog.org \\nCopyright (c) 2018 Edgeworx, Inc.",
"main": "./src/main.js",
"author": "Saeid Baghbidi",
Expand Down
4 changes: 2 additions & 2 deletions src/cli/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ class Catalog extends BaseCLIHandler {
group: [constants.CMD]
},
{
name: 'file', alias: 'f', type: String, description: 'Catalog item settings JSON file',
name: 'file', alias: 'f', type: String, description: 'Path to catalog item settings JSON file',
group: [constants.CMD_ADD, constants.CMD_UPDATE]
},
{
name: 'item-id', alias: 'i', type: String, description: 'Catalog item ID',
name: 'item-id', alias: 'i', type: Number, description: 'Catalog item ID',
group: [constants.CMD_UPDATE, constants.CMD_REMOVE, constants.CMD_INFO]
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/cli/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class Flow extends BaseCLIHandler {
},
{
name: 'file', alias: 'f', type: String,
description: 'Application flow settings JSON file',
description: 'Path to application flow settings JSON file',
group: [constants.CMD_ADD, constants.CMD_UPDATE]
},
{
name: 'flow-id', alias: 'i', type: String,
name: 'flow-id', alias: 'i', type: Number,
description: 'Application flow ID',
group: [constants.CMD_UPDATE, constants.CMD_REMOVE, constants.CMD_INFO]
},
Expand Down
2 changes: 1 addition & 1 deletion src/cli/iofog.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class IOFog extends BaseCLIHandler {
group: [constants.CMD]},
{
name: 'file', alias: 'f', type: String,
description: 'ioFog settings JSON file',
description: 'Path to ioFog settings JSON file',
group: [constants.CMD_ADD, constants.CMD_UPDATE]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/cli/microservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Microservice extends BaseCLIHandler {
group: [constants.CMD]
},
{
name: 'file', alias: 'f', type: String, description: 'Microservice settings JSON file',
name: 'file', alias: 'f', type: String, description: 'Path to microservice settings JSON file',
group: [constants.CMD_ADD, constants.CMD_UPDATE]
},
{
Expand Down
1 change: 1 addition & 0 deletions src/helpers/app-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
const crypto = require('crypto');
const Errors = require('./errors');

const logger = require('../logger');
const fs = require('fs');
const Config = require('../config');
const path = require('path');
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ module.exports = {
INVALID_INTERNAL_PORT: 'Internal parsing error. Please provide valid internal port.',
INVALID_ROUTE: 'Route parsing error. Please provide valid route.'
},
CONNECTOR_IS_IN_USE: 'You can\'t delete connector, because it is used for routing now.'
CONNECTOR_IS_IN_USE: 'You can\'t delete connector, because it is used for routing now.',
INVALID_VERSION_COMMAND: 'Can\'t {} version now.'
};
8 changes: 4 additions & 4 deletions src/sequelize/managers/iofog-provision-key-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
*
*/

const BaseManager = require('../managers/base-manager')
const BaseManager = require('../managers/base-manager');
const models = require('./../models');
const FogProvisionKey = models.FogProvisionKey
const FogProvisionKey = models.FogProvisionKey;

class FogProvisionKeyManager extends BaseManager {
getEntity() {
return FogProvisionKey
}
}

const instance = new FogProvisionKeyManager()
module.exports = instance
const instance = new FogProvisionKeyManager();
module.exports = instance;
8 changes: 4 additions & 4 deletions src/sequelize/managers/iofog-version-command-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
*
*/

const BaseManager = require('../managers/base-manager')
const BaseManager = require('../managers/base-manager');
const models = require('./../models');
const FogVersionCommand = models.FogVersionCommand
const FogVersionCommand = models.FogVersionCommand;

class FogVersionCommandManager extends BaseManager {
getEntity() {
return FogVersionCommand
}
}

const instance = new FogVersionCommandManager()
module.exports = instance
const instance = new FogVersionCommandManager();
module.exports = instance;
10 changes: 6 additions & 4 deletions src/services/agent-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const formidable = require('formidable');
const Sequelize = require('sequelize');
const Op = Sequelize.Op;

const IncomingForm = formidable.IncomingForm;

const agentProvision = async function (provisionData, transaction) {

await Validator.validate(provisionData, Validator.schemas.agentProvision);
Expand Down Expand Up @@ -129,7 +131,7 @@ const updateAgentConfig = async function (updateData, fog, transaction) {

const getAgentConfigChanges = async function (fog, transaction) {

const changeTracking = await ChangeTrackingService.getByFogId(fog.uuid, transaction);
const changeTracking = await ChangeTrackingService.getByIoFogUuid(fog.uuid, transaction);
if (!changeTracking) {
throw new Errors.NotFoundError(ErrorMessages.INVALID_NODE_ID)
}
Expand Down Expand Up @@ -398,16 +400,16 @@ const putImageSnapshot = async function (req, fog, transaction) {
throw new Errors.ValidationError(ErrorMessages.INVALID_CONTENT_TYPE);
}

const form = new formidable.IncomingForm(opts);
const form = new IncomingForm(opts);
form.uploadDir = path.join(appRoot, '../') + 'data';
if (!fs.existsSync(form.uploadDir)) {
fs.mkdirSync(form.uploadDir);
}
await saveSnapShot(req, form,fog, transaction);
await _saveSnapShot(req, form, fog, transaction);
return {};
};

const saveSnapShot = function (req, form, fog, transaction) {
const _saveSnapShot = function (req, form, fog, transaction) {
return new Promise((resolve, reject) => {
form.parse(req, async function (error, fields, files) {
const file = files['upstream'];
Expand Down
194 changes: 93 additions & 101 deletions src/services/catalog-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const CatalogItemImageManager = require('../sequelize/managers/catalog-item-imag
const CatalogItemInputTypeManager = require('../sequelize/managers/catalog-item-input-type-manager');
const CatalogItemOutputTypeManager = require('../sequelize/managers/catalog-item-output-type-manager');
const Op = require('sequelize').Op;
const validator = require('../schemas/index');
const Validator = require('../schemas/index');
const RegistryManager = require('../sequelize/managers/registry-manager');

const createCatalogItem = async function (data, user, transaction) {
await validator.validate(data, validator.schemas.catalogItemCreate);
await Validator.validate(data, Validator.schemas.catalogItemCreate);
await _checkForDuplicateName(data.name, {userId: user.id}, transaction);
await _checkForRestrictedPublisher(data.publisher);
const catalogItem = await _createCatalogItem(data, user, transaction);
Expand All @@ -38,7 +38,7 @@ const createCatalogItem = async function (data, user, transaction) {
};

const updateCatalogItem = async function (id, data, user, isCLI, transaction) {
await validator.validate(data, validator.schemas.catalogItemUpdate);
await Validator.validate(data, Validator.schemas.catalogItemUpdate);

const where = isCLI
? {id: id}
Expand All @@ -50,76 +50,6 @@ const updateCatalogItem = async function (id, data, user, isCLI, transaction) {
await _updateCatalogItemIOTypes(data, where, transaction);
};

const _updateCatalogItem = async function (data, where, transaction) {
let catalogItem = {
name: data.name,
description: data.description,
category: data.category,
configExample: data.configExample,
publisher: data.publisher,
diskRequired: data.diskRequired,
ramRequired: data.ramRequired,
picture: data.picture,
isPublic: data.isPublic,
registryId: data.registryId
};

catalogItem = AppHelper.deleteUndefinedFields(catalogItem);
if (!catalogItem || AppHelper.isEmpty(catalogItem)) {
return
}
const registry = await RegistryManager.findOne({id: data.registryId}, transaction);
if (!registry) {
throw new Errors.NotFoundError(AppHelper.formatMessage(ErrorMessages.INVALID_REGISTRY_ID, data.registryId));
}

const item = await _checkIfItemExists(where, transaction);
await _checkForDuplicateName(data.name, item, transaction);
await CatalogItemManager.update(where, catalogItem, transaction);
};

const _updateCatalogItemImages = async function (data, transaction) {
if (data.images) {
for (let image of data.images) {
switch (image.fogTypeId) {
case 1:
await CatalogItemImageManager.updateOrCreate({
catalogItemId: data.id,
fogTypeId: 1
}, image, transaction);
break;
case 2:
await CatalogItemImageManager.updateOrCreate({
catalogItemId: data.id,
fogTypeId: 2
}, image, transaction);
break;
}
}
}
};

const _updateCatalogItemIOTypes = async function (data, where, transaction) {
if (data.inputType && data.inputType.length != 0) {
let inputType = {
catalogItemId: data.id,
infoType: data.inputType.infoType,
infoFormat: data.inputType.infoFormat
};
inputType = AppHelper.deleteUndefinedFields(inputType);
await CatalogItemInputTypeManager.updateOrCreate({catalogItemId: data.id}, inputType, transaction);
}
if (data.outputType && data.outputType.length !== 0) {
let outputType = {
catalogItemId: data.id,
infoType: data.outputType.infoType,
infoFormat: data.outputType.infoFormat
};
outputType = AppHelper.deleteUndefinedFields(outputType);
await CatalogItemOutputTypeManager.updateOrCreate({catalogItemId: data.id}, outputType, transaction);
}
};

const listCatalogItems = async function (user, isCLI, transaction) {
const where = isCLI
? {category: {[Op.ne]: 'SYSTEM'}}
Expand Down Expand Up @@ -162,6 +92,37 @@ const deleteCatalogItem = async function (id, user, isCLI, transaction) {
return affectedRows;
};

async function getNetworkCatalogItem(transaction) {
return await CatalogItemManager.findOne({
name: 'Networking Tool',
category: 'SYSTEM',
publisher: 'Eclipse ioFog',
registry_id: 1,
user_id: null
}, transaction)
}

async function getBluetoothCatalogItem(transaction) {
return await CatalogItemManager.findOne({
name: 'RESTBlue',
category: 'SYSTEM',
publisher: 'Eclipse ioFog',
registry_id: 1,
user_id: null
}, transaction)
}

async function getHalCatalogItem(transaction) {
return await CatalogItemManager.findOne({
name: 'HAL',
category: 'SYSTEM',
publisher: 'Eclipse ioFog',
registry_id: 1,
user_id: null
}, transaction)
}


const _checkForDuplicateName = async function (name, item, transaction) {
if (name) {
const where = item.id
Expand All @@ -175,7 +136,7 @@ const _checkForDuplicateName = async function (name, item, transaction) {
}
};

const _checkForRestrictedPublisher = async function(publisher) {
const _checkForRestrictedPublisher = async function (publisher) {
if (publisher === 'Eclipse ioFog') {
throw new Errors.ValidationError(ErrorMessages.RESTRICTED_PUBLISHER);
}
Expand Down Expand Up @@ -267,35 +228,66 @@ const _createCatalogItemOutputType = async function (data, catalogItem, transact
return await CatalogItemOutputTypeManager.create(catalogItemOutputType, transaction);
};

async function getNetworkCatalogItem(transaction) {
return await CatalogItemManager.findOne({
name: 'Networking Tool',
category: 'SYSTEM',
publisher: 'Eclipse ioFog',
registry_id: 1,
user_id: null
}, transaction)
}

async function getBluetoothCatalogItem(transaction) {
return await CatalogItemManager.findOne({
name: 'RESTBlue',
category: 'SYSTEM',
publisher: 'Eclipse ioFog',
registry_id: 1,
user_id: null
}, transaction)
}
const _updateCatalogItem = async function (data, where, transaction) {
let catalogItem = {
name: data.name,
description: data.description,
category: data.category,
configExample: data.configExample,
publisher: data.publisher,
diskRequired: data.diskRequired,
ramRequired: data.ramRequired,
picture: data.picture,
isPublic: data.isPublic,
registryId: data.registryId
};

async function getHalCatalogItem(transaction) {
return await CatalogItemManager.findOne({
name: 'HAL',
category: 'SYSTEM',
publisher: 'Eclipse ioFog',
registry_id: 1,
user_id: null
}, transaction)
}
catalogItem = AppHelper.deleteUndefinedFields(catalogItem);
if (!catalogItem || AppHelper.isEmpty(catalogItem)) {
return
}
const registry = await RegistryManager.findOne({id: data.registryId}, transaction);
if (!registry) {
throw new Errors.NotFoundError(AppHelper.formatMessage(ErrorMessages.INVALID_REGISTRY_ID, data.registryId));
}

const item = await _checkIfItemExists(where, transaction);
await _checkForDuplicateName(data.name, item, transaction);
await CatalogItemManager.update(where, catalogItem, transaction);
};

const _updateCatalogItemImages = async function (data, transaction) {
if (data.images) {
for (const image of data.images) {
await CatalogItemImageManager.updateOrCreate({
catalogItemId: data.id,
fogTypeId: image.fogTypeId
}, image, transaction);
}
}
};

const _updateCatalogItemIOTypes = async function (data, where, transaction) {
if (data.inputType && data.inputType.length !== 0) {
let inputType = {
catalogItemId: data.id,
infoType: data.inputType.infoType,
infoFormat: data.inputType.infoFormat
};
inputType = AppHelper.deleteUndefinedFields(inputType);
await CatalogItemInputTypeManager.updateOrCreate({catalogItemId: data.id}, inputType, transaction);
}
if (data.outputType && data.outputType.length !== 0) {
let outputType = {
catalogItemId: data.id,
infoType: data.outputType.infoType,
infoFormat: data.outputType.infoFormat
};
outputType = AppHelper.deleteUndefinedFields(outputType);
await CatalogItemOutputTypeManager.updateOrCreate({catalogItemId: data.id}, outputType, transaction);
}
};

module.exports = {
createCatalogItem: TransactionDecorator.generateTransaction(createCatalogItem),
Expand Down
Loading

0 comments on commit 36a65cd

Please sign in to comment.