Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Issue 515 #554

Closed
wants to merge 701 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
701 commits
Select commit Hold shift + click to select a range
fc35871
Schema cached in app.vue
Sep 10, 2018
09a72f5
Removed console
Sep 10, 2018
8acbe1a
Merge pull request #391 from FlowzPlatform/Issue#387Caching
nikitam747 Sep 10, 2018
7563312
table pagination
HarshOB Sep 10, 2018
8234531
remove logs
HarshOB Sep 10, 2018
a0ee188
Merge branch 'develop' into 385_TablePagination
faizansaiyed Sep 10, 2018
264ea15
Merge pull request #393 from FlowzPlatform/385_TablePagination
faizansaiyed Sep 10, 2018
664e1c2
Update SchemaView.vue
faizansaiyed Sep 10, 2018
10a831c
Merge pull request #394 from FlowzPlatform/fsaiyedOB-patch-1
HarshOB Sep 10, 2018
f90d1db
Last task added in flowzdata
Sep 10, 2018
5661be5
Merge pull request #395 from FlowzPlatform/Issue#387Caching
HarshOB Sep 10, 2018
bae6f23
schema-new-optimized
nikitam747 Sep 10, 2018
f629eba
some-changes
nikitam747 Sep 10, 2018
8642bcc
Merge branch 'develop' into issue-392-n1
chiragob Sep 10, 2018
a5b2e7d
Merge pull request #397 from FlowzPlatform/issue-392-n1
chiragob Sep 10, 2018
30b65d7
remove ununsed npm packages
HarshOB Sep 11, 2018
f4d7fdc
Merge pull request #399 from FlowzPlatform/UpdatePackageJson
nikitam747 Sep 11, 2018
a5124ce
remove npm package
HarshOB Sep 11, 2018
51c87a5
Merge pull request #400 from FlowzPlatform/UpdatePackageJson
nikitam747 Sep 11, 2018
1884130
Caching on ANalytics page
Sep 11, 2018
b9c473a
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
Sep 11, 2018
4fe5ba0
Fixed permissions page error
Sep 11, 2018
08d3219
Merge pull request #401 from FlowzPlatform/CachingIssue#387
HarshOB Sep 11, 2018
de308b5
Merge pull request #402 from FlowzPlatform/FixesAfterMerge
HarshOB Sep 11, 2018
dfe56db
remove-unwanted-things-and-some-fixes
nikitam747 Sep 11, 2018
5bd332f
remove await and update user details call
chiragob Sep 11, 2018
b8ded54
resolve-conflicts
nikitam747 Sep 11, 2018
96a55ca
Merge pull request #404 from FlowzPlatform/issue-392-n4
chiragob Sep 11, 2018
928f704
Merge branch 'develop' into remove-await
chiragob Sep 11, 2018
988667d
Merge pull request #405 from FlowzPlatform/remove-await
nikitam747 Sep 11, 2018
ac4cd43
resolve user login issue
chiragob Sep 11, 2018
4071d20
Merge branch 'remove-await' of github.com:FlowzPlatform/workflow into…
chiragob Sep 11, 2018
3f46869
Merge pull request #406 from FlowzPlatform/remove-await
nikitam747 Sep 11, 2018
3e288cd
resolve-eslint-error
nikitam747 Sep 11, 2018
40ebdaf
Merge pull request #407 from FlowzPlatform/issue-392-n5
HarshOB Sep 11, 2018
8c40482
Permissions error fixes
Sep 11, 2018
0a908a4
get userDetails form cache
HarshOB Sep 11, 2018
1936176
Remove unused methods
HarshOB Sep 11, 2018
bab729e
Update List.vue
nikitam747 Sep 11, 2018
d0147b4
Merge pull request #409 from FlowzPlatform/InviteUserdetailsCallRemove
nikitam747 Sep 11, 2018
9de7b9e
Merge branch 'develop' into FixesAfterMerge
nikitam747 Sep 11, 2018
3116d1c
Merge pull request #408 from FlowzPlatform/FixesAfterMerge
nikitam747 Sep 11, 2018
93d5a3e
show tripple dot if length grater than width of table cell
HarshOB Sep 11, 2018
cf7895f
Remove comments
HarshOB Sep 11, 2018
91dd686
Merge pull request #410 from FlowzPlatform/TableIdLengthFix
HarshOB Sep 11, 2018
cde0dcf
remove validate call
chiragob Sep 11, 2018
c3653bb
Merge branch 'develop' into remove-await
chiragob Sep 11, 2018
e0a6766
update pagination and handle emailTemplate error
HarshOB Sep 11, 2018
69e65fb
Merge pull request #411 from FlowzPlatform/remove-await
nikitam747 Sep 11, 2018
ef17884
Update SchemaView.vue
nikitam747 Sep 11, 2018
10c1041
Merge pull request #412 from FlowzPlatform/updatePaginationAndEmailTe…
nikitam747 Sep 11, 2018
73dac6a
table css issue resolved
HarshOB Sep 11, 2018
c6ea23b
Merge branch 'updatePaginationAndEmailTemplateError' of https://githu…
HarshOB Sep 11, 2018
bdecbed
erro fixed
HarshOB Sep 11, 2018
9b10b95
resolved form show on list page
Sep 11, 2018
69fbb44
remove console.log
HarshOB Sep 11, 2018
be6dc89
Merge pull request #414 from FlowzPlatform/updatePaginationAndEmailTe…
nikitam747 Sep 11, 2018
7cc6a34
Merge branch 'develop' into ResolvedFormShow
faizansaiyed Sep 11, 2018
2a7da0f
Merge pull request #413 from FlowzPlatform/ResolvedFormShow
HarshOB Sep 11, 2018
de695fd
changes
nikitam747 Sep 11, 2018
8630efe
api/flow
nikitam747 Sep 11, 2018
8aaa754
Merge branch 'develop' into issue-392-n6
chiragob Sep 11, 2018
fd9c059
Merge pull request #415 from FlowzPlatform/issue-392-n6
chiragob Sep 11, 2018
2527a87
syntax-issue-resolve
nikitam747 Sep 11, 2018
6bd6d68
Merge pull request #416 from FlowzPlatform/issue-392-n7
chiragob Sep 11, 2018
f5c9402
flowz edit error resolved
HarshOB Sep 12, 2018
6e76b2b
Merge pull request #417 from FlowzPlatform/FlowErrorResolve
nikitam747 Sep 12, 2018
c85e6bb
Details form is now attached with proof email
HarshOB Sep 12, 2018
72185da
Merge pull request #418 from FlowzPlatform/EmailErrorResolve
chiragob Sep 12, 2018
484f319
add spinner while loading email template and give success/error messa…
HarshOB Sep 12, 2018
bfd974c
Merge pull request #419 from FlowzPlatform/EmailErrorResolve
chiragob Sep 12, 2018
088d3e4
schema field type Current user & time
HarshOB Sep 12, 2018
a0f1b56
remove log
HarshOB Sep 12, 2018
4e3afcc
Merge pull request #421 from FlowzPlatform/420_schemaType
chiragob Sep 12, 2018
d2dc056
Removed old way caching
Sep 12, 2018
0fcae09
caching-applied
nikitam747 Sep 12, 2018
82e0a34
Logs removed. Code cleaned
Sep 12, 2018
204c0f1
conflicts-resolve
nikitam747 Sep 12, 2018
2c8e157
Merge pull request #423 from FlowzPlatform/CachingFixes
chiragob Sep 12, 2018
aa6a82a
Merge pull request #424 from FlowzPlatform/issue-392-n8
chiragob Sep 12, 2018
329fb7c
Fixed schema issu
Sep 12, 2018
66eb201
Merge pull request #425 from FlowzPlatform/GetSchemaFix
chiragob Sep 12, 2018
e6b7a87
error-resolve-flow-at-new/edit
nikitam747 Sep 12, 2018
c4fef85
Merge pull request #426 from FlowzPlatform/issue-392-n9
chiragob Sep 12, 2018
148f02a
Scroll to form fix
Sep 12, 2018
16cdb1d
Merge pull request #427 from FlowzPlatform/GetSchemaFix
nikitam747 Sep 12, 2018
5754bb7
Client side claim and unclaim is added
HarshOB Sep 12, 2018
abec21b
Merge branch 'develop' into 442_clientClaimAndUnclaim
HarshOB Sep 12, 2018
2ab4757
Update SchemaView.vue
HarshOB Sep 12, 2018
21323b0
Update SchemaList.vue
HarshOB Sep 12, 2018
bb9ccfd
Merge pull request #428 from FlowzPlatform/442_clientClaimAndUnclaim
chiragob Sep 12, 2018
4c9b6b5
remove elemntUi
HarshOB Sep 12, 2018
a73868e
Merge pull request #429 from FlowzPlatform/ElementUIRemove
chiragob Sep 12, 2018
f63c078
createdAt-completedAt-changes-and-cache-clear-on-change
nikitam747 Sep 12, 2018
c2a97ae
Removed unwanted files and packages
Sep 12, 2018
f56d20d
Merge branch 'develop' into issue-392-n10
chiragob Sep 12, 2018
7e75fee
Merge pull request #430 from FlowzPlatform/issue-392-n10
chiragob Sep 12, 2018
c94574a
Merge branch 'develop' into GetSchemaFix
faizansaiyed Sep 12, 2018
0a5ad79
Merge pull request #431 from FlowzPlatform/GetSchemaFix
chiragob Sep 12, 2018
67b47d6
changes-package
nikitam747 Sep 12, 2018
845b480
fixed add item on list instance page
Sep 12, 2018
b370096
refresh on claim
Sep 12, 2018
aa3aaf6
Merge pull request #433 from FlowzPlatform/issue-392-n11
chiragob Sep 12, 2018
fe705c0
Merge pull request #434 from FlowzPlatform/AddItemFix
chiragob Sep 12, 2018
148c0d2
some-changes
nikitam747 Sep 12, 2018
866c286
Current cell shows times
Sep 12, 2018
8b9f552
Merge pull request #436 from FlowzPlatform/AnalyticsFix
chiragob Sep 12, 2018
e8898bf
file-aws
nikitam747 Sep 12, 2018
a2d5363
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
nikitam747 Sep 12, 2018
25442e2
splice-remove-from-schemasubformview
nikitam747 Sep 12, 2018
e60ab26
Merge pull request #435 from FlowzPlatform/issue-392-n12
chiragob Sep 12, 2018
0768f36
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
nikitam747 Sep 12, 2018
9e0e2d6
file-type-concat-changes
nikitam747 Sep 12, 2018
ae7e201
Merge pull request #439 from FlowzPlatform/issue-392-n13
HarshOB Sep 13, 2018
359f1b7
property added for currentuser and currenttime
nikitam747 Sep 13, 2018
5c14d94
Merge pull request #441 from FlowzPlatform/issue-392-n14
faizansaiyed Sep 13, 2018
3d83838
Pagination on anlytics, times fixed
Sep 13, 2018
04db058
Removed console
Sep 13, 2018
24a8694
hard refresh and validation before email template load
nikitam747 Sep 13, 2018
4b092dc
Merge pull request #442 from FlowzPlatform/AnalyticsFix
nikitam747 Sep 13, 2018
054f86e
Merge pull request #443 from FlowzPlatform/issue-302-n15
faizansaiyed Sep 13, 2018
85c0e88
Issue #386 socket fix
Sep 13, 2018
3c362b6
Merge pull request #444 from FlowzPlatform/AnalyticsFix
nikitam747 Sep 13, 2018
60681e8
field-wise-permission
HarshOB Sep 13, 2018
b8834b3
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
HarshOB Sep 13, 2018
e33ebe2
resolve-data-save-issue
HarshOB Sep 13, 2018
3bf0828
Merge pull request #445 from FlowzPlatform/issue-392-n16
chiragob Sep 13, 2018
11e25c9
loading button for email
HarshOB Sep 14, 2018
7f269b8
Merge pull request #446 from FlowzPlatform/EmailLoadingButton
nikitam747 Sep 14, 2018
34ac36b
subscription-package-updare
nikitam747 Sep 14, 2018
d6dce4c
Merge pull request #447 from FlowzPlatform/subscription-packege-update
chiragob Sep 14, 2018
76b95d9
remove-unwanted-packages
nikitam747 Sep 14, 2018
78cf28b
Merge pull request #448 from FlowzPlatform/remove-packages
chiragob Sep 14, 2018
d5b8f45
Read and write permission for each schema instance
HarshOB Sep 14, 2018
add394d
Update
HarshOB Sep 14, 2018
d1a9d16
condition added
HarshOB Sep 14, 2018
1004d70
update
HarshOB Sep 14, 2018
3e73a85
Merge pull request #449 from FlowzPlatform/440_Permission
nikitam747 Sep 14, 2018
2089d59
added email templates while BPMN init called
HarshOB Sep 14, 2018
5cf886e
Merge pull request #450 from FlowzPlatform/emailTemplateBPMNIssue
faizansaiyed Sep 14, 2018
cbdcf95
First stage form implemented Issue #330
Sep 14, 2018
a807d89
Merge branch 'develop' into Issue#330
faizansaiyed Sep 14, 2018
e5e1c74
Removed dconsoles
Sep 14, 2018
55fdb98
Merge branch 'Issue#330' of https://github.com/FlowzPlatform/workflow…
Sep 14, 2018
a823256
Merge pull request #451 from FlowzPlatform/Issue#330
nikitam747 Sep 14, 2018
b8a6e2a
remove-bpmn-files-and-some-package
nikitam747 Sep 14, 2018
39175ea
Merge branch 'develop' into remove-bpmn-filess
nikitam747 Sep 14, 2018
16ee169
Merge pull request #452 from FlowzPlatform/remove-bpmn-filess
chiragob Sep 14, 2018
e84ba2c
packge-lock-changes
nikitam747 Sep 14, 2018
eac3f40
Merge pull request #453 from FlowzPlatform/package-lock-change
chiragob Sep 14, 2018
79fec73
No data issue ficxed on instance list page
Sep 17, 2018
f14bc6f
Merge pull request #455 from FlowzPlatform/ListPageFixes
HarshOB Sep 17, 2018
daf1bb7
Click to copy added to tables showing instance list
Sep 17, 2018
86f5664
Merge pull request #456 from FlowzPlatform/ListPageFixes
HarshOB Sep 17, 2018
78d0315
Removed add instance icon from sidebar
Sep 17, 2018
ebc4a31
Removed create instance function
Sep 17, 2018
d4e7d45
Merge pull request #457 from FlowzPlatform/ListPageFixes
nikitam747 Sep 17, 2018
fe34c6c
feildwise-permission-changes
nikitam747 Sep 17, 2018
023f4f4
Merge pull request #458 from FlowzPlatform/issue-440-n1
HarshOB Sep 17, 2018
ec9252b
remove static values
HarshOB Sep 17, 2018
d5386c3
Code Optimization
HarshOB Sep 17, 2018
ac522f0
Removed filter operation from schemalist
Sep 17, 2018
a06cf5e
Removed consoles
Sep 17, 2018
dd5971d
some-changes-sidebar
nikitam747 Sep 17, 2018
aa470f0
Merge pull request #459 from FlowzPlatform/442_reviewChanges
chiragob Sep 17, 2018
1457dce
Merge pull request #460 from FlowzPlatform/ListPageFixes
chiragob Sep 17, 2018
081c950
Merge branch 'develop' into issue-392-n17
chiragob Sep 17, 2018
24f80c4
Merge pull request #461 from FlowzPlatform/issue-392-n17
chiragob Sep 17, 2018
49e3cd0
Code Clean
Sep 17, 2018
aafcb80
UX fix
Sep 17, 2018
ae0b918
Merge pull request #462 from FlowzPlatform/ListPageFixes
nikitam747 Sep 17, 2018
608c189
Scroll to form on select instance run action
Sep 17, 2018
967dbca
Merge branch 'develop' into FzFixes
faizansaiyed Sep 17, 2018
e71358c
CurrentStatus fix
Sep 17, 2018
0ab94fe
Merge pull request #463 from FlowzPlatform/FzFixes
nikitam747 Sep 17, 2018
07060de
caching-of-roles-resources
nikitam747 Sep 17, 2018
1370c76
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
nikitam747 Sep 17, 2018
6cad71b
Some Fixes
Sep 17, 2018
a6b3d9e
Removed consoles
Sep 17, 2018
406498d
Merge pull request #464 from FlowzPlatform/FzFixes
nikitam747 Sep 17, 2018
ff1de5b
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
nikitam747 Sep 17, 2018
b37c637
fixes
nikitam747 Sep 17, 2018
f27cfa6
Merge pull request #465 from FlowzPlatform/issue-387-n2
faizansaiyed Sep 17, 2018
fa6f1f3
Pointer cursor
Sep 17, 2018
cb266a5
Count fix
Sep 17, 2018
e35a82a
first-stage-validation-fix
nikitam747 Sep 17, 2018
b2cc6d8
make form
vishalkanojiya Sep 17, 2018
28a6f36
Merge pull request #467 from FlowzPlatform/FzFixes
nikitam747 Sep 17, 2018
35a57fd
Merge pull request #466 from FlowzPlatform/SidebarFix
nikitam747 Sep 17, 2018
8685dbc
Merge pull request #470 from FlowzPlatform/issue-469-n1
faizansaiyed Sep 17, 2018
2a37f5d
Merge pull request #473 from FlowzPlatform/develop
faizansaiyed Sep 18, 2018
625e9c9
admin-side-count-fix
nikitam747 Sep 18, 2018
8f440cd
Merge pull request #474 from FlowzPlatform/issue-469-n2
HarshOB Sep 18, 2018
8444c44
Table column update according to permission
HarshOB Sep 18, 2018
525c196
remove logs
HarshOB Sep 18, 2018
78c7c64
Merge pull request #476 from FlowzPlatform/440_tableHideShow
nikitam747 Sep 18, 2018
75ced0b
File Button on file attactment open in new tab
Sep 18, 2018
d8cf24e
Merge branch 'develop' into FzFixes
faizansaiyed Sep 18, 2018
15b77e4
Merge pull request #478 from FlowzPlatform/FzFixes
nikitam747 Sep 18, 2018
80d82d4
File name on hover file button
Sep 18, 2018
b9915d2
Merge branch 'FzFixes' of https://github.com/FlowzPlatform/workflow i…
Sep 18, 2018
83e80a5
Merge pull request #479 from FlowzPlatform/FzFixes
HarshOB Sep 18, 2018
80f1bc9
Merge pull request #480 from FlowzPlatform/develop
faizansaiyed Sep 18, 2018
8bfa8f6
File button fix
Sep 18, 2018
29e611d
plugin file will be called asynchronous
HarshOB Sep 18, 2018
771c810
Merge pull request #481 from FlowzPlatform/FzFixes
nikitam747 Sep 18, 2018
afaafd4
Merge pull request #482 from FlowzPlatform/454_emailCDN
faizansaiyed Sep 18, 2018
ad7b4b5
removed tinymce globally import
HarshOB Sep 18, 2018
e4f3aea
Merge pull request #483 from FlowzPlatform/454_emailCDN
nikitam747 Sep 18, 2018
a71c886
removed tinymce globally import
HarshOB Sep 18, 2018
7d25cf4
Merge pull request #484 from FlowzPlatform/454_emailCDN
nikitam747 Sep 18, 2018
0faa14c
validation complete
vishalkanojiya Sep 18, 2018
524da3c
created service for flows data
chiragob Sep 18, 2018
086c6af
check if permission.otherwise display all data
HarshOB Sep 19, 2018
77c3880
Merge pull request #485 from FlowzPlatform/PermissionReadWriteIssue
nikitam747 Sep 19, 2018
e0eaee7
update custom service code
chiragob Sep 19, 2018
8773bb2
Merge pull request #486 from FlowzPlatform/custom-service-flowzdata
nikitam747 Sep 19, 2018
76a7bf8
bpmn-plugins-hook-changes
nikitam747 Sep 19, 2018
b6e8c9a
Merge pull request #487 from FlowzPlatform/issue-469-n2
faizansaiyed Sep 19, 2018
84797ae
dynamic component loading
HarshOB Sep 19, 2018
dd2083a
New user login fix
Sep 19, 2018
47c45a1
dynamic component loading
HarshOB Sep 19, 2018
739c87e
Merge pull request #489 from FlowzPlatform/FzFixes
HarshOB Sep 19, 2018
9406eee
Merge pull request #490 from FlowzPlatform/ComponentImportChange
faizansaiyed Sep 19, 2018
4455b7c
Add Plugins
vishalkanojiya Sep 19, 2018
b984910
dynamic component loading
HarshOB Sep 19, 2018
6d87aaa
setup seprate socket for custom service
chiragob Sep 19, 2018
794779f
set tolowercase
chiragob Sep 19, 2018
7ce4e58
Merge pull request #492 from FlowzPlatform/custom-service-flowzdata
nikitam747 Sep 19, 2018
3649192
show all data if permission is not avaiable
HarshOB Sep 19, 2018
f9f3b55
Merge pull request #491 from FlowzPlatform/ComponentImportChange
nikitam747 Sep 19, 2018
2602221
Merge pull request #493 from FlowzPlatform/469_FormPermissionFIx
faizansaiyed Sep 19, 2018
56d4c82
Add plugins form
vishalkanojiya Sep 19, 2018
ace2756
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
vishalkanojiya Sep 19, 2018
67be527
file validation
Vishal-Dhimmar Sep 19, 2018
c5cb976
Merge pull request #495 from FlowzPlatform/issue-472
HarshOB Sep 19, 2018
ad30caa
Socket fix on list page
Sep 19, 2018
8f3bbd1
Removed consoles
Sep 19, 2018
c0cf655
Merge pull request #498 from FlowzPlatform/SocketFixing
HarshOB Sep 19, 2018
427d2fc
Table claim and unclaim issue fix
HarshOB Sep 20, 2018
b6426db
Table claim and unclaim issue fix
HarshOB Sep 20, 2018
25ab072
Add plugins form
vishalkanojiya Sep 20, 2018
21dc81b
Permission table data is show all stages
HarshOB Sep 20, 2018
b127c3e
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
vishalkanojiya Sep 20, 2018
14ff03c
Merge pull request #499 from FlowzPlatform/ClaimUnclaimIssueFIx
nikitam747 Sep 20, 2018
d75f327
Merge pull request #500 from FlowzPlatform/PermissionIssue
nikitam747 Sep 20, 2018
a8aab5b
Merge pull request #496 from FlowzPlatform/issue-471
nikitam747 Sep 20, 2018
6b6ed6d
screen size headers should be responsive
vishalkanojiya Sep 20, 2018
dac5a3b
Merge branch 'develop' of https://github.com/FlowzPlatform/workflow i…
vishalkanojiya Sep 20, 2018
7c5e245
Socket fix in flows page
vishalkanojiya Sep 25, 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
111 changes: 81 additions & 30 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,105 @@ services:
branches:
only:
- master
- demo
- develop
- staging
- QA

jobs:
include:
- stage: Seneca-Jobqueue-Flowz
# - stage: Seneca-Jobqueue-Flowz
# script:
# - 'if [ ${TRAVIS_BRANCH} = "master" ]; then
# docker login -u="$DOCKER_USERNAME_FLOWZ" -p="$DOCKER_PASSWORD_FLOWZ";
# docker build -t seneca_jobqueue_flowz:latest ./JobQue/;
# docker images;
# docker tag seneca_jobqueue_flowz:latest $DOCKER_USERNAME_FLOWZ/seneca_jobqueue_flowz:latest;
# docker push $DOCKER_USERNAME_FLOWZ/seneca_jobqueue_flowz:latest;
# elif [ ${TRAVIS_BRANCH} = "develop" ]; then
# docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
# docker build -t seneca_jobqueue_flowz:dev ./JobQue/;
# docker images;
# docker tag seneca_jobqueue_flowz:dev $DOCKER_USERNAME/seneca_jobqueue_flowz:dev;
# docker push $DOCKER_USERNAME/seneca_jobqueue_flowz:dev;
# elif [ ${TRAVIS_BRANCH} = "staging" ]; then
# docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
# docker build -t seneca_jobqueue_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER ./JobQue/;
# docker tag seneca_jobqueue_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER $DOCKER_USERNAME/seneca_jobqueue_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER;
# docker tag seneca_jobqueue_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER $DOCKER_USERNAME/seneca_jobqueue_flowz:staging;
# docker images;
# docker push $DOCKER_USERNAME/seneca_jobqueue_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER;
# docker push $DOCKER_USERNAME/seneca_jobqueue_flowz:staging;
# else
# docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
# docker build -t seneca_jobqueue_flowz:qa ./JobQue/;
# docker images;
# docker tag seneca_jobqueue_flowz:qa $DOCKER_USERNAME/seneca_jobqueue_flowz:qa;
# docker push $DOCKER_USERNAME/seneca_jobqueue_flowz:qa;
# fi'
- stage: Flowz-Frontend-Flowz
script:
- 'if [ ${TRAVIS_BRANCH} = "demo" ]; then
echo "not build seneca_jobqueue_flowz image";
- 'if [ ${TRAVIS_BRANCH} = "master" ]; then
docker login -u="$DOCKER_USERNAME_FLOWZ" -p="$DOCKER_PASSWORD_FLOWZ";
docker build -t flowz_frontend_flowz:latest --build-arg accesskey="$AWS_ACCESSKEY" --build-arg secretkey="$AWS_SECRETKEY" --build-arg domainKey="$DOMAINKEY_MASTER" ./client/;
docker images;
docker tag flowz_frontend_flowz:latest $DOCKER_USERNAME_FLOWZ/flowz_frontend_flowz:latest;
docker push $DOCKER_USERNAME_FLOWZ/flowz_frontend_flowz:latest;
elif [ ${TRAVIS_BRANCH} = "develop" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t flowz_frontend_flowz:dev --build-arg accesskey="$AWS_ACCESSKEY" --build-arg secretkey="$AWS_SECRETKEY" --build-arg domainKey="$DOMAINKEY_DEVELOP" ./client/;
docker images;
docker tag flowz_frontend_flowz:dev $DOCKER_USERNAME/flowz_frontend_flowz:dev;
docker push $DOCKER_USERNAME/flowz_frontend_flowz:dev;
elif [ ${TRAVIS_BRANCH} = "staging" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t flowz_frontend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER --build-arg accesskey="$AWS_ACCESSKEY" --build-arg secretkey="$AWS_SECRETKEY" --build-arg domainKey="$DOMAINKEY_STAGING" ./client/;
docker tag flowz_frontend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER $DOCKER_USERNAME/flowz_frontend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER;
docker tag flowz_frontend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER $DOCKER_USERNAME/flowz_frontend_flowz:staging;
docker images;
docker push $DOCKER_USERNAME/flowz_frontend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER;
docker push $DOCKER_USERNAME/flowz_frontend_flowz:staging;
else
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t seneca_jobqueue_flowz:$TRAVIS_BRANCH ./JobQue/;
docker build -t flowz_frontend_flowz:qa --build-arg accesskey="$AWS_ACCESSKEY" --build-arg secretkey="$AWS_SECRETKEY" --build-arg domainKey="$DOMAINKEY_QA" ./client/;
docker images;
docker tag seneca_jobqueue_flowz:$TRAVIS_BRANCH $DOCKER_USERNAME/seneca_jobqueue_flowz:$TRAVIS_BRANCH;
docker push $DOCKER_USERNAME/seneca_jobqueue_flowz:$TRAVIS_BRANCH;
docker tag flowz_frontend_flowz:qa $DOCKER_USERNAME/flowz_frontend_flowz:qa;
docker push $DOCKER_USERNAME/flowz_frontend_flowz:qa;
fi'
- stage: Flowz-Frontend-Flowz
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker build -t flowz_frontend_flowz:$TRAVIS_BRANCH --build-arg accesskey="$AWS_ACCESSKEY" --build-arg secretkey="$AWS_SECRETKEY" ./client/
- docker images
- docker tag flowz_frontend_flowz:$TRAVIS_BRANCH $DOCKER_USERNAME/flowz_frontend_flowz:$TRAVIS_BRANCH
- docker push $DOCKER_USERNAME/flowz_frontend_flowz:$TRAVIS_BRANCH
- stage: Flowz-Backend-Flowz
script:
- 'if [ ${TRAVIS_BRANCH} = "demo" ]; then
echo "not build flowz_backend_flowz image";
- 'if [ ${TRAVIS_BRANCH} = "master" ]; then
docker login -u="$DOCKER_USERNAME_FLOWZ" -p="$DOCKER_PASSWORD_FLOWZ";
docker build -t flowz_backend_flowz:latest ./service/;
docker images;
docker tag flowz_backend_flowz:latest $DOCKER_USERNAME_FLOWZ/flowz_backend_flowz:latest;
docker push $DOCKER_USERNAME_FLOWZ/flowz_backend_flowz:latest;
elif [ ${TRAVIS_BRANCH} = "develop" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t flowz_backend_flowz:dev ./service/;
docker images;
docker tag flowz_backend_flowz:dev $DOCKER_USERNAME/flowz_backend_flowz:dev;
docker push $DOCKER_USERNAME/flowz_backend_flowz:dev;
elif [ ${TRAVIS_BRANCH} = "staging" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t flowz_backend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER ./service/;
docker tag flowz_backend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER $DOCKER_USERNAME/flowz_backend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER;
docker tag flowz_backend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER $DOCKER_USERNAME/flowz_backend_flowz:staging;
docker images;
docker push $DOCKER_USERNAME/flowz_backend_flowz:$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER;
docker push $DOCKER_USERNAME/flowz_backend_flowz:staging;
else
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker build -t flowz_backend_flowz:$TRAVIS_BRANCH ./service/;
docker build -t flowz_backend_flowz:qa ./service/;
docker images;
docker tag flowz_backend_flowz:$TRAVIS_BRANCH $DOCKER_USERNAME/flowz_backend_flowz:$TRAVIS_BRANCH;
docker push $DOCKER_USERNAME/flowz_backend_flowz:$TRAVIS_BRANCH;
docker tag flowz_backend_flowz:qa $DOCKER_USERNAME/flowz_backend_flowz:qa;
docker push $DOCKER_USERNAME/flowz_backend_flowz:qa;
fi'
- stage: Upgrade Rancher Service
script:
- 'if [ ${TRAVIS_BRANCH} = "demo" ]; then
bash ./upgrade_demo.sh;
else
bash ./upgrade.sh;
fi'

- bash ./upgrade.sh
- stage: Finish Rancher Service
script:
- 'if [ ${TRAVIS_BRANCH} = "demo" ]; then
bash ./finish_demo.sh;
else
bash ./finish.sh;
fi'
- bash ./finish.sh

notifications:
email:
Expand Down
1 change: 1 addition & 0 deletions JobQue/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ selenium-debug.log
package-lock.json
worker/
example/worker/
seneca-job-queue/logs

# Editor directories and files
.idea
Expand Down
1 change: 1 addition & 0 deletions JobQue/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flowcharts related to scheduler and process flow of jobqueue can be found in this folder
Binary file added JobQue/docs/capacity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added JobQue/docs/lifeCycle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added JobQue/docs/workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion JobQue/scheduler/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scheduler_table": "scheduler",
"system_logs_table": "system_logs",
"qJobTimeout": 3600000,
"qJobRetryMax": 0,
"qJobRetryMax": 5,
"chokidar": {
"persistent": true,
"ignoreInitial": false,
Expand Down
23 changes: 12 additions & 11 deletions JobQue/scheduler/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = function (options, PINO_DB_OPTION, PINO_C_OPTION) {
if (numberOfExternalSchema != 0 && !externalCheck) {

let sourceCounts = targetJob.data.sourceCount ? Object.values(targetJob.data.sourceCount) : []

if (sourceCounts.length < numberOfExternalSchema || (capacity && Math.min(...sourceCounts) != capacity)) {
await this.updateProcess(targetJob, 'created')
await this.updateLog(targetJob, 'created', false)
Expand Down Expand Up @@ -568,6 +568,7 @@ module.exports = function (options, PINO_DB_OPTION, PINO_C_OPTION) {
this.constructor.prototype.newInstance = async function (flowInstance, fId, next) {
return new Promise (async (resolve, reject) => {
try{

for (let i=0; i<flowInstance.start_states.length; i++) {

let startStateId = flowInstance.start_states[i]
Expand Down Expand Up @@ -695,16 +696,16 @@ module.exports = function (options, PINO_DB_OPTION, PINO_C_OPTION) {
if (inputAvailability) {
//if all inputs are available, update the latest mapping done and begin the process
//i.e. change status of the job for that process in it's respective worker queue to `waiting`
pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).info({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'next job')
pino(PINO_C_OPTION).info({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'next job')
//pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).info({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'next job')
//pino(PINO_C_OPTION).info({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'next job')
// await this.beginProcess(targetJobs[i])
await this.beginProcess(targetJobs[0])
}
else {
//i.e. all inputs are still not available so just update the latest mapping done
//(it's status in it's respective worker queue will not be changed)
pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).warn({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'all inputs not available')
pino(PINO_C_OPTION).warn({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'all inputs not available')
//pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).warn({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'all inputs not available')
//pino(PINO_C_OPTION).warn({'fId': jobData.fId, 'job': targetSchema.id, 'jobId': targetJobs[0].id}, 'all inputs not available')
// let tmp = await this.updateProcess(targetJobs[i])
}
// }
Expand Down Expand Up @@ -796,21 +797,21 @@ module.exports = function (options, PINO_DB_OPTION, PINO_C_OPTION) {
if (inputAvailability) {
//if all inputs are available, update the latest mapping done and begin the process
//i.e. change status of the job for that process in it's respective worker queue to `waiting`
pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).info({'fId': fId, 'jobId': targetId}, 'next job')
pino(PINO_C_OPTION).info({'fId': fId, 'jobId': targetId}, 'next job')
//pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).info({'fId': fId, 'jobId': targetId}, 'next job')
//pino(PINO_C_OPTION).info({'fId': fId, 'jobId': targetId}, 'next job')
await this.beginProcess(targetJobs[i])
}
else {
//i.e. all inputs are still not available so just update the latest mapping done
//(it's status in it's respective worker queue will not be changed)
var mappingRequired = capacity ? false : this.externalMappingRequired(targetJobs[i])
if (mappingRequired) {
pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).warn({'fId': fId, 'jobId': targetId}, 'mapping required')
pino(PINO_C_OPTION).warn({'fId': fId, 'jobId': targetId}, 'mapping required')
//pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).warn({'fId': fId, 'jobId': targetId}, 'mapping required')
//pino(PINO_C_OPTION).warn({'fId': fId, 'jobId': targetId}, 'mapping required')
}
else {
pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).warn({'fId': fId, 'job': targetId, 'jobId': targetJobs[i].id}, 'all inputs not available')
pino(PINO_C_OPTION).warn({'fId': fId, 'job': targetId, 'jobId': targetJobs[i].id}, 'all inputs not available')
//pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).warn({'fId': fId, 'job': targetId, 'jobId': targetJobs[i].id}, 'all inputs not available')
//pino(PINO_C_OPTION).warn({'fId': fId, 'job': targetId, 'jobId': targetJobs[i].id}, 'all inputs not available')
}
// let tmp = await this.updateProcess(targetJobs[i])
}
Expand Down
55 changes: 26 additions & 29 deletions JobQue/scheduler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ module.exports = function (options) {
if (options.logs.console == false) PINO_C_OPTION.level = 'silent'
if (options.logs.db == false) {
PINO_DB_OPTION.level = 'silent'
}
else {
} else {
const SYSTEM_LOGS_TABLE = options.logs.table ? options.logs.table : app.system_logs_table
enableWatcher(logs_table)
}
}
else {
} else {
enableWatcher(app.system_logs_table)
}

Expand All @@ -37,48 +35,47 @@ module.exports = function (options) {
const CHOKIDAR_OPTION = app.chokidar
var watcher = chokidar.watch('./logs', CHOKIDAR_OPTION)

watcher.on('change', path =>
fs.readFile('./logs','utf8', function (err, data) {
if (err) throw err
let parsedData = JSON.parse(data)
rdash.table(SYSTEM_LOGS_TABLE).insert(parsedData).run(function (err , result) {
if (err) {
pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).error({},err)
pino(PINO_C_OPTION).error({},err)
}
})
})
)
// watcher.on('change', path =>
// // fs.readFile('./logs','utf8', function (err, data) {
// // if (err) throw err
// // let parsedData = JSON.parse(data)
// // rdash.table(SYSTEM_LOGS_TABLE).insert(parsedData).run(function (err , result) {
// // if (err) {
// // pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).error({},err)
// // pino(PINO_C_OPTION).error({},err)
// // }
// // })
// // })
// )
}

const func = new scheduler_functions(options, PINO_DB_OPTION, PINO_C_OPTION)

q.process(async (job, next) => {
q.process(async(job, next) => {

try {

const fId = job.data.fId
const flowInstance = await func.getFlowInstance(fId) //get flow instance from db
// pino(PINO_C_OPTION).info(job.data)
const flowInstance = await func.getFlowInstance(fId).catch(err => {throw err}); //get flow instance from db
// pino(PINO_C_OPTION).info(job.data)
if (job.data.processNotification) {
//the condition will be satisfied if the job is created by some process worker as a part
//of notifying schcduler that the process completed succesfully a that particular worker

func.notificationACK(flowInstance, fId, job.data, next, cxnOptions, qOptions)
}
else if (job.data.isExternalInput) {
func.notificationACK(flowInstance, fId, job.data, next, cxnOptions, qOptions).catch(err => {throw err});
} else if (job.data.isExternalInput) {
//the condition will be satisfied if the job is created in
//order to provide external input to certain process

await func.performExternalOperation(flowInstance, job.data, fId, next)
}
else {
await func.performExternalOperation(flowInstance, job.data, fId, next).catch(err => {throw err});
} else {
//i.e. the job in scheduler was created as a result of a new flowz instance
await func.newInstance(flowInstance, fId, next)
await func.newInstance(flowInstance, fId, next).catch(err => {throw err});
}
} catch (err) {
pino(PINO_DB_OPTION,fs.createWriteStream('./logs')).error({},'... error in process\n'+err)
pino(PINO_C_OPTION).error({},'... error in process '+err)
return next(err)
pino(PINO_DB_OPTION, fs.createWriteStream('./logs')).error({}, '... error in process\n' + err)
pino(PINO_C_OPTION).error({}, '... error in process ' + err)
return next(new Error(err.message),null)
}
})
}
2 changes: 1 addition & 1 deletion JobQue/scheduler/logs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"level":40,"time":1514959372879,"msg":"all inputs not available","pid":19672,"hostname":"OBLAP-51","fId":"1d54ad55-3606-4a22-af98-29895fa4e0c8","job":"Task_0a65jhx","jobId":"73de6e4e-2732-47c2-a737-e3f5269721a1","v":1}
{"level":30,"time":1532702300476,"msg":"End Process","pid":18901,"hostname":"OBLAP-28","fId":"c8fe645b-4d59-4b08-9f9f-4fbb079c9fe3","jobId":"EndEvent_0f72gx5","v":1}
1 change: 1 addition & 0 deletions JobQue/scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"rethinkdb": "^2.3.3",
"rethinkdb-job-queue": "^3.1.4",
"twit": "^2.2.9",
"underscore": "^1.8.3",
"vm": "^0.1.0"
},
"devDependencies": {
Expand Down
24 changes: 18 additions & 6 deletions JobQue/scheduler/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ const vm = require('vm')
const rp = require('request-promise')
const pino = require('pino')
const config = require('./default.json')
const { exec, fork } = require('child_process')
const PINO = config.pinoConsole

global.options = []
for (var i=4; i<process.argv.length; i++) {
for (var i = 4; i < process.argv.length; i++) {
options.push(process.argv[i])
}
const PROCESS_URL = process.argv[3]

async function getProcess (jobType) {
async function getProcess(jobType) {
return new Promise((resolve, reject) => {
rp(PROCESS_URL + jobType)
.then(function (jobProcessCode) {
Expand All @@ -25,12 +26,23 @@ async function getProcess (jobType) {
let executeProcess = async function (jobType) {
try {
let processCode = await getProcess(jobType)
const script = new vm.Script(`(function(require) {`+processCode +`})`, { filename: 'processTrace.vm' })
const script = new vm.Script(`(function(require) {` + processCode + `})`, { filename: 'processTrace.vm' })
script.runInThisContext()(require)
pino(PINO).info({Process: jobType, fId: process.argv[6], pId: process.pid}, 'process created')
pino(PINO).info({ Process: jobType, fId: process.argv[6], pId: process.pid }, 'process created')
} catch (e) {
pino(PINO).error(e)
pino(PINO).error('unable to load child process')
let file = __filename;
pino(PINO).error(e.message)
let error = e.message.split("'");
error[0] = error[0].slice(0, -1);
if (error[0] === 'Cannot find module') {
exec('cd ../scheduler && npm i ' + error[1], (error, stdout, stderr) => {
console.log(`${stdout}`);
process.argv.splice(0, 2);
fork(`${file}`, process.argv)
})
} else {
pino(PINO).error('unable to load child worker', jobType)
}
}
}

Expand Down
Empty file removed JobQue/seneca-job-queue/logs
Empty file.
4 changes: 3 additions & 1 deletion JobQue/seneca-job-queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"child_process": "^1.0.2",
"chokidar": "^1.7.0",
"cors": "^2.8.4",
"emailjs": "^2.2.0",
"express": "^4.16.2",
"express-fileupload": "^0.3.0",
"fs": "0.0.1-security",
Expand All @@ -26,13 +27,14 @@
"request": "^2.83.0",
"request-promise": "^4.2.2",
"rethinkdb": "^2.3.3",
"rethinkdb-job-queue": "^3.1.4",
"rethinkdb-job-queue": "^3.1.7",
"rethinkdbdash": "^2.3.31",
"seneca": "^3.4.3",
"seneca-web": "^2.1.0",
"seneca-web-adapter-express": "^1.0.2",
"socket.io": "^2.0.4",
"socket.io-client": "^2.0.4",
"underscore": "^1.8.3",
"vm": "^0.1.0"
}
}
Loading