Skip to content
This repository was archived by the owner on Aug 29, 2022. It is now read-only.

Commit d22730c

Browse files
authored
Merge pull request #223 from navigateconsulting/release_candidate
Release candidate
2 parents a0cdc6b + 28bcfcf commit d22730c

37 files changed

+264
-93
lines changed

RELEASE.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,22 @@ Bug fixes
2929

3030
## Major Features and Improvements
3131

32+
* [223](https://github.com/navigateconsulting/eva/pull/223) Added authentication for mongo, and redis containers<br/>
33+
Lazy loading for conversations API and UI<br/>
34+
Changes In Routes (Separate for each component eg: Actions, Conversations, Projects, etc.)<br/>
35+
CSS Tweaks in Conversations Chat Components
36+
Added Entity Display feature respective to the intent selected in the chat
3237

3338
## Bug Fixes and Other Changes
3439

3540
* [213](https://github.com/navigateconsulting/eva/pull/213) Updated documentation
3641
* [214](https://github.com/navigateconsulting/eva/pull/214) Spinner was continously spinning in loop even after the training had completed and getting the completed status in the front end.
3742
* [215](https://github.com/navigateconsulting/eva/pull/215) npm dependancy in package.json file upgraded from 6.13.4 to 6.14.6
38-
* [216](https://github.com/navigateconsulting/eva/pull/216) loadash dependancy in package.json file upgraded from 4.17.15 to 4.17.19
43+
* [216](https://github.com/navigateconsulting/eva/pull/216) and [217](https://github.com/navigateconsulting/eva/pull/217) loadash dependancy in package.json file upgraded from 4.17.15 to 4.17.19
44+
* [218](https://github.com/navigateconsulting/eva/pull/218) and [219](https://github.com/navigateconsulting/eva/pull/219) changes in populating default actions for projects
45+
* [220](https://github.com/navigateconsulting/eva/pull/220) elliptic dependancy in package-lock.json upgraded from 6.5.2 to 6.5.3.
46+
* [221](https://github.com/navigateconsulting/eva/pull/221) removed Credentials yml file from rasa container, presence of this caused rasa to assume channels are used.
47+
* [222](https://github.com/navigateconsulting/eva/pull/222) Sorted Conversations in descending order with respect to timestamp of comversation date and added Full Date on the right side panel in try now page
3948

4049
# Release 2.0.3
4150

@@ -49,4 +58,4 @@ Bug fixes
4958

5059
* [207](https://github.com/navigateconsulting/eva/pull/207) changes to UI
5160
* [210](https://github.com/navigateconsulting/eva/pull/210) Spinner issue on Manage Project Page has now been resolved, earlier there was a delay in showing the spinner. Conversations Chat was not displaying the slot values earlier, now the issue is fixed.
52-
* [211](https://github.com/navigateconsulting/eva/pull/211) Displaying Conversations In Descending Order so that the latest conversation would be displayed first in the list.
61+
* [211](https://github.com/navigateconsulting/eva/pull/211) Displaying Conversations In Descending Order so that the latest conversation would be displayed first in the list.

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ A snippet of how this application works !
3131

3232
We used below projects as chat bot framework.
3333

34-
* [Rasa Open Source](https://github.com/RasaHQ/rasa) Version 1.10.3
34+
* [Rasa Open Source](https://github.com/RasaHQ/rasa) Version 1.10.11
3535

3636
The Application stack is built with Python as backend and Angular as front end.
3737

docker-compose.build_from_source.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ services:
1010
- THREADS=50
1111
- REDIS_URL=redis
1212
- REDIS_PORT=6379
13+
- REDIS_PASS=Y7T6r5re3t8j9yr
1314
- MONGODB_HOST=mongodb
1415
- MONGODB_PORT=27017
16+
- MONGODB_USERNAME=eva
17+
- MONGODB_PASS=evapass
1518
- RASA_SERVER=http://va_custom_rasa:5005/model
1619
ports:
1720
- "3000:3000"
@@ -21,12 +24,15 @@ services:
2124
- redis
2225

2326
redis:
24-
image: 'redis:4-alpine'
27+
image: redis:latest
28+
command: redis-server --requirepass Y7T6r5re3t8j9yr
2529
ports:
2630
- '6379:6379'
2731

2832
va_trainer_worker:
2933
build: './trainer_worker'
34+
environment:
35+
- REDIS_PASS=Y7T6r5re3t8j9yr
3036
volumes:
3137
- rasa_projects:/rasa_projects
3238
depends_on:
@@ -39,8 +45,8 @@ services:
3945
environment:
4046
- MONGO_DATA_DIR=/data/db
4147
- MONGO_LOG_DIR=/dev/null
42-
- MONGODB_USER="eva"
43-
- MONGODB_PASS="evapass"
48+
- MONGO_INITDB_ROOT_USERNAME=eva
49+
- MONGO_INITDB_ROOT_PASSWORD=evapass
4450
volumes:
4551
- mongodb:/data/db
4652
ports:
@@ -70,8 +76,6 @@ services:
7076
- run
7177
- --endpoints
7278
- config/endpoints.yml
73-
- --credentials
74-
- config/credentials.yml
7579
- --debug
7680
- --enable-api
7781
- --cors

docker-compose.ngrok_example.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ services:
1212
- THREADS=50
1313
- REDIS_URL=redis
1414
- REDIS_PORT=6379
15+
- REDIS_PASS=Y7T6r5re3t8j9yr
1516
- MONGODB_HOST=mongodb
1617
- MONGODB_PORT=27017
18+
- MONGODB_USERNAME=eva
19+
- MONGODB_PASS=evapass
1720
- RASA_SERVER=http://va_custom_rasa:5005/model
1821
ports:
1922
- "3000:3000"
@@ -23,14 +26,17 @@ services:
2326
- redis
2427

2528
redis:
26-
image: 'redis:4-alpine'
29+
image: redis:latest
30+
command: redis-server --requirepass Y7T6r5re3t8j9yr
2731
ports:
2832
- '6379:6379'
2933

3034
va_trainer_worker:
3135
build: './trainer_worker'
3236
volumes:
3337
- rasa_projects:/rasa_projects
38+
environment:
39+
- REDIS_PASS=Y7T6r5re3t8j9yr
3440
depends_on:
3541
- redis
3642
- va_api_gateway
@@ -41,8 +47,8 @@ services:
4147
environment:
4248
- MONGO_DATA_DIR=/data/db
4349
- MONGO_LOG_DIR=/dev/null
44-
- MONGODB_USER="eva"
45-
- MONGODB_PASS="evapass"
50+
- MONGO_INITDB_ROOT_USERNAME=eva
51+
- MONGO_INITDB_ROOT_PASSWORD=evapass
4652
volumes:
4753
- mongodb:/data/db
4854
ports:
@@ -72,8 +78,6 @@ services:
7278
- run
7379
- --endpoints
7480
- config/endpoints.yml
75-
- --credentials
76-
- config/credentials.yml
7781
- --debug
7882
- --enable-api
7983
- --cors

docker-compose.test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ services:
2020
- THREADS=50
2121
- REDIS_URL=redis
2222
- REDIS_PORT=6379
23+
- REDIS_PASS=Y7T6r5re3t8j9yr
2324
- MONGODB_HOST=mongodb
2425
- MONGODB_PORT=27017
26+
- MONGODB_USERNAME=eva
27+
- MONGODB_PASS=evapass
2528
- RASA_SERVER=http://custom_rasa:5005/model
2629
ports:
2730
- "3000:3000"
@@ -31,12 +34,15 @@ services:
3134
- redis
3235

3336
redis:
34-
image: 'redis:4-alpine'
37+
image: redis:latest
38+
command: redis-server --requirepass Y7T6r5re3t8j9yr
3539
ports:
3640
- '6379:6379'
3741

3842
trainer_worker:
3943
build: './trainer_worker'
44+
environment:
45+
- REDIS_PASS=Y7T6r5re3t8j9yr
4046
volumes:
4147
- rasa_projects:/rasa_projects
4248
depends_on:
@@ -49,8 +55,8 @@ services:
4955
environment:
5056
- MONGO_DATA_DIR=/data/db
5157
- MONGO_LOG_DIR=/dev/null
52-
- MONGODB_USER="eva"
53-
- MONGODB_PASS="evapass"
58+
- MONGO_INITDB_ROOT_USERNAME=eva
59+
- MONGO_INITDB_ROOT_PASSWORD=evapass
5460
volumes:
5561
- mongodb:/data/db
5662
ports:
@@ -82,8 +88,6 @@ services:
8288
- run
8389
- --endpoints
8490
- config/endpoints.yml
85-
- --credentials
86-
- config/credentials.yml
8791
- --debug
8892
- --enable-api
8993
- --cors

docker-compose.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ services:
1111
- THREADS=50
1212
- REDIS_URL=redis
1313
- REDIS_PORT=6379
14+
- REDIS_PASS=Y7T6r5re3t8j9yr
1415
- MONGODB_HOST=mongodb
1516
- MONGODB_PORT=27017
17+
- MONGODB_USERNAME=eva
18+
- MONGODB_PASS=evapass
1619
- RASA_SERVER=http://va_custom_rasa:5005/model
1720
ports:
1821
- "3000:3000"
@@ -22,13 +25,16 @@ services:
2225
- redis
2326

2427
redis:
25-
image: 'redis:4-alpine'
28+
image: redis:latest
29+
command: redis-server --requirepass Y7T6r5re3t8j9yr
2630
ports:
2731
- '6379:6379'
2832

2933
va_trainer_worker:
3034
#image: docker.pkg.github.com/navigateconsulting/virtual-assistant/trainer_worker:latest
3135
image: navigateconsulting/va_trainer_worker
36+
environment:
37+
- REDIS_PASS=Y7T6r5re3t8j9yr
3238
volumes:
3339
- rasa_projects:/rasa_projects
3440
depends_on:
@@ -41,8 +47,8 @@ services:
4147
environment:
4248
- MONGO_DATA_DIR=/data/db
4349
- MONGO_LOG_DIR=/dev/null
44-
- MONGODB_USER="eva"
45-
- MONGODB_PASS="evapass"
50+
- MONGO_INITDB_ROOT_USERNAME=eva
51+
- MONGO_INITDB_ROOT_PASSWORD=evapass
4652
volumes:
4753
- mongodb:/data/db
4854
ports:
@@ -75,8 +81,6 @@ services:
7581
- run
7682
- --endpoints
7783
- config/endpoints.yml
78-
- --credentials
79-
- config/credentials.yml
8084
- --debug
8185
- --enable-api
8286
- --cors

rasa_custom/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Extend the official Rasa SDK image
2-
FROM rasa/rasa:1.10.3-full
2+
FROM rasa/rasa:1.10.11-full
33

44
# Use subdirectory as working directory
55
#WORKDIR /app/config

rasa_custom/endpoints.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ tracker_store:
44
store_type: mongod
55
url: mongodb://mongodb:27017
66
db: eva_platform
7+
username: eva
8+
password: evapass
79
auth_source: admin
810
collection: conversations

trainer_worker/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
celery[redis]
2-
rasa[convert]==1.10.3
2+
rasa[convert]==1.10.11

trainer_worker/tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
logger = get_task_logger(__name__)
77

8-
app = Celery('tasks', broker='redis://redis:6379/0', backend='redis://redis:6379/0')
8+
redis_url = 'redis://:' + os.environ['REDIS_PASS'] + '@redis:6379/0'
9+
10+
app = Celery('tasks', broker=redis_url, backend=redis_url)
911

1012

1113
@app.task()

0 commit comments

Comments
 (0)