Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
58a37ca
Epankou/feature microservice cli (#294)
epankou Oct 30, 2018
4e8d388
Epankou/feature microservice cli (#296)
dbusel Oct 31, 2018
5829a64
Epankou/feature microservice cli (#297)
epankou Oct 31, 2018
04d1c31
Update README.md (#298)
Oct 31, 2018
44fa372
EWC-279 error messages refactoring (#299)
Railag Oct 31, 2018
a8f0f22
Epankou/bug flow deactivation ewc 293 (#301)
epankou Nov 1, 2018
cbaf033
Dbusel/bug ewc 301 Flow get list (#302)
dbusel Nov 1, 2018
e48d714
Dbusel/bug ewc 301 flow get (#304)
dbusel Nov 1, 2018
9008590
Dbusel/bug ewc 304 Microservice get (#305)
dbusel Nov 1, 2018
f32936a
add user check for flow name duplicate (#307)
dbusel Nov 1, 2018
daefc16
EWC-297 EWC-298 fixed email activation, added user id to signup respo…
Railag Nov 1, 2018
ced30a4
EWC-303 fixed microservice create validation & duplicate name for dif…
Railag Nov 1, 2018
67fb167
EWC-298 new registry bug (#308)
epankou Nov 2, 2018
36a2142
fixed CLI config email activation update (#309)
Railag Nov 2, 2018
16e06b5
Update .travis.yml
dbusel Nov 2, 2018
02503c9
Running migrations and seeders programmatically (#300) (#311)
Railag Nov 2, 2018
138c2bc
v1.0.0 and NODE_ENV processing fix (#295)
mchepelev Nov 2, 2018
04ad3b1
user endpoints fixes (#310)
Railag Nov 2, 2018
b663f4f
EWC-311 postman QA collections for user, controller, agent + some cod…
Railag Nov 5, 2018
6d687d0
EWC-313 postman QA flow section (#314)
Railag Nov 5, 2018
beb85f8
EWC-312 postman QA catalog (#315)
Railag Nov 5, 2018
e961dca
EWC-316 postman QA tunnel (#316)
Railag Nov 5, 2018
5197b70
EWC-308 postman QA microservices (#318)
Railag Nov 6, 2018
176c505
postinstall script deleted (#319)
mchepelev Nov 6, 2018
646af5d
EWC-310 postman QA iofog (#321)
Railag Nov 6, 2018
90a84a3
EWC-317 postman QA registry (#322)
Railag Nov 6, 2018
de083f0
fix cli image snapshot (#323)
alexandershpak Nov 6, 2018
fae52b9
cert in connector cli fix (#320)
mchepelev Nov 6, 2018
a3841d2
get fog list params in query (#324)
mchepelev Nov 6, 2018
efcd570
small fix snapshot in windows os (#325)
alexandershpak Nov 6, 2018
a05980f
fixed image snapshot endpoint in postman qa collection (#326)
Railag Nov 6, 2018
4c590f1
EWC-300 registry patch endpoint & some fixes (#327)
Railag Nov 6, 2018
23ac681
Epankou/feature microservice removal ewc 306 (#312)
epankou Nov 8, 2018
6b19766
change tracking refactoring and renaming ewc 262 (#317)
mchepelev Nov 8, 2018
e3c0ac6
EWC-322 config cli log messages (#330)
epankou Nov 8, 2018
143c2d4
EWC-321 lastActive agent decorator (#329)
Railag Nov 8, 2018
8064944
EWC-331 restrict uuid field in iofog create endpoint (#331)
Railag Nov 8, 2018
ac2c2b8
migration from v1.0.0 to umzug ewc 327 (#328)
mchepelev Nov 8, 2018
f8045bc
postman collection (#332)
epankou Nov 8, 2018
2d7167e
EWC-330 fixed redundant timestamp fields in response (#334)
Railag Nov 8, 2018
2cf43de
rename endpoints (#333)
dbusel Nov 9, 2018
21307ac
Rename updatedBy/createdBy field to userId (#335)
dbusel Nov 9, 2018
cd540e5
EWC-338 fixed email activation field in config CLI (#337)
Railag Nov 9, 2018
33a2047
small fix (#338)
alexandershpak Nov 9, 2018
f39a6d2
transaction validation in decorator (#336)
mchepelev Nov 9, 2018
d7ad23d
updated postman collection for microservice update endpoint (#339)
Railag Nov 9, 2018
8f78ad2
Ashpak/bug change content type for save image (#341)
alexandershpak Nov 9, 2018
7079e1b
Epankou/feature volume mapping ewc 332 (#340)
epankou Nov 12, 2018
97ee67f
Epankou/bug cli config messages (#342)
epankou Nov 12, 2018
d332296
CLI fixes EWC 340 (#344)
Railag Nov 12, 2018
542bdfc
fix file size, rename (#345)
alexandershpak Nov 12, 2018
fbb0a9f
Epankou/bug swagger fix & connector cli fix (#343)
epankou Nov 12, 2018
4b2696c
Connector CLI validation EWC 343 (#347)
Railag Nov 12, 2018
f17d9c5
Epankou/bug non dev mode connector ewc 339 (#346)
epankou Nov 12, 2018
2c441c9
Epankou/bug microservice removal ewc 306 (#348)
epankou Nov 13, 2018
1ccad6e
fix return empty json (#349)
alexandershpak Nov 13, 2018
f29d897
fixed migration constaints (#351)
Railag Nov 13, 2018
368bc00
fixed migrations constaints (#352)
Railag Nov 13, 2018
cbfbc94
feature transactions ewc 337 (#353)
mchepelev Nov 13, 2018
2850c19
bug portmapping and routes api fixes (#354)
mchepelev Nov 14, 2018
8f68760
cli iofog help improvement ewc 342 (#355)
mchepelev Nov 14, 2018
64deaac
EWC-340 additional CLI validation (parameters per 1 command) (#356)
Railag Nov 14, 2018
919a75b
redundant lib querystring was deleted. qs used instead (#357)
mchepelev Nov 14, 2018
ca6583b
EWC-347 fixed user activate/suspend handling (#358)
Railag Nov 14, 2018
85b9586
fArgs.length check in transaction decorator (#359)
mchepelev Nov 14, 2018
f436023
fix swagger response list (#360)
alexandershpak Nov 14, 2018
5f1ba9e
WIP: EWC-344 automated packaging (#350)
dbusel Nov 14, 2018
1b462a0
Update .travis.yml
dbusel Nov 14, 2018
81122a8
chore: dev version 1.0.1
Nov 14, 2018
35850d1
Update package.json
dbusel Nov 14, 2018
596ce6e
Update package-lock.json
dbusel Nov 14, 2018
b558b4e
chore: dev version 1.0.14
Nov 14, 2018
b375bdb
Update .travis.yml
dbusel Nov 15, 2018
74db44a
bluetooth and microservice creation on fog update fix: (#362)
mchepelev Nov 15, 2018
57fdf51
correct delete and create routes on update iofognode field of microse…
mchepelev Nov 15, 2018
06f1db0
EWC-351 type of catalog-id and flow-id in microservice cli was change…
mchepelev Nov 16, 2018
629f37a
todo in iofog-service was done (#363)
mchepelev Nov 16, 2018
94e5094
user preparation in microservice cli (#366)
mchepelev Nov 16, 2018
1276f7b
EWC-353 renaming in microservice cli: (#365)
mchepelev Nov 16, 2018
4941386
Update README.md (#367)
Nov 16, 2018
663d38e
Maksimchepelev/bug cli microservice update ewc 354 (#368)
mchepelev Nov 19, 2018
6c22861
Update .gitignore
dbusel Nov 19, 2018
96b45b0
chore: dev version 1.0.15
Nov 19, 2018
47f427b
EWC-352 self signed cert fixes: (#369)
mchepelev Nov 19, 2018
35efcdc
EWC-353 renaming in microservice cli help: (#370)
mchepelev Nov 20, 2018
0e4762d
restoring old db on update controller (#371)
mchepelev Nov 20, 2018
e92cab5
remove auto version increment
dbusel Nov 21, 2018
ed87d6d
Epankou/bug catalog item images cli (#372)
epankou Nov 21, 2018
9bd1c25
Update package.json
dbusel Nov 21, 2018
1b08382
EWC-360 preinstall to preuninstall (#374)
mchepelev Nov 21, 2018
1d49b5f
Update package.json
dbusel Nov 21, 2018
dbef006
Merge branch 'master' into develop
dbusel Nov 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iofogcontroller",
"version": "1.0.16",
"version": "1.0.17",
"description": "ioFog Controller project for Eclipse IoFog @ iofog.org \\nCopyright (c) 2018 Edgeworx, Inc.",
"main": "./src/main.js",
"author": "Saeid Baghbidi",
Expand Down Expand Up @@ -37,7 +37,7 @@
"start": "NODE_ENV=production node ./src/main.js start",
"start-dev": "NODE_ENV=development node ./src/main.js start",
"build": "export NODE_ENV=production && cd src/sequelize && ../../node_modules/.bin/sequelize db:migrate && ../../node_modules/.bin/sequelize db:seed:all",
"preinstall": "bash scripts/preinstall.sh",
"preuninstall": "bash scripts/preuninstall.sh",
"postinstall": "bash scripts/postinstall.sh",
"lint": "./node_modules/.bin/eslint \"**/*.js\""
},
Expand Down
19 changes: 19 additions & 0 deletions scripts/preuninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

#store prev ver number
export PREV_IOFOG_CONTROLLER_VER=$(npm list --depth=0 -g --silent | grep iofogcontroller | awk -F "@" '{print $2}')
printf 'prev_ver: '$PREV_IOFOG_CONTROLLER_VER > /tmp/iofogcontroller_install_variables

#backup db
IOFOG_CONTROLLER_BIN_DIR=$(whereis iofog-controller | awk -F " " '{print $2}')
IOFOG_CONTROLLER_BIN_DIR=${IOFOG_CONTROLLER_BIN_DIR%"iofog-controller"}
IOFOG_CONTROLLER_SEQUELIZE_DIR=$IOFOG_CONTROLLER_BIN_DIR'../lib/node_modules/iofogcontroller/src/sequelize'

DEV_DB_FILE=$IOFOG_CONTROLLER_SEQUELIZE_DIR'/dev_database.sqlite'
if [ -f $DEV_DB_FILE ]; then
mv $DEV_DB_FILE /tmp/
fi
PROD_DB_FILE=$IOFOG_CONTROLLER_SEQUELIZE_DIR'/prod_database.sqlite'
if [ -f $PROD_DB_FILE ]; then
mv $PROD_DB_FILE /tmp/
fi