Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Make literals and chart flow configurable.

  • Keep files in blob storage public accessible.

  • While doing a build for chatbot/router run the below commands in the docker file

    Code Block
    FROM node:10.19.0 as builder
    WORKDIR /app
    COPY . /app
    
    ADD http://source.file/config/literals  /config/literals.js 
    ADD http://source.file/config/chatflow  /config/chatflow.js
    RUN npm install
    
    FROM node:10.19-slim
    COPY --from=builder /app .
    EXPOSE 4000 8443
    CMD [ "node", "appRest.js" ]
  • For every build, it will download it from the blob and add it /router/config/* files.

  • So now we can change only those required files and do build and deploy

...

(plus) Easy to maintain, add, and modify any time Menu options and query answers.

...

(plus) It will help to revert back to the old version of files if something went wrong with the new version of files.

(minus) Only authorized users can upload and edit the config.

(minus) Only a tech person can do it over, Jenkins

Create a separate  application for accessing and modifying the file
User onboard via API(backend)
Share credentials with user

...

Services to perform actions:

Code Block
Create
{{host}}/chatbot/config/create
Update
{{host}}/chatbot/config/update

This will take place in Jenkins job, Any owner can update config.

...

(plus) Easy to create and update using API’s

...

(plus) non-tech guys can easily update using API

(minus) Can't revert back to the old version config.

(minus) Difficult to maintain versioning of files.