Skip to content

Instantly share code, notes, and snippets.

@dobeerman7
Last active February 21, 2019 17:48
Show Gist options
  • Save dobeerman7/75ced26d97e4215d6f4a84a4f98ea811 to your computer and use it in GitHub Desktop.
Save dobeerman7/75ced26d97e4215d6f4a84a4f98ea811 to your computer and use it in GitHub Desktop.

Compare staging to master

Below are important or breaking changes are implemented to the staging in comparing to the master branch

Needs to be merged!

The API specification includes all changes made last 6 month. Hopefully ;)


Added

  • ADDED Typescrypt. Refactored tons of code are includes a services, models and much more.
  • ADDED Encryption. The migration is affected all messages' body to be encrypted by key created for specific organization for the day that message was sent. See src/migrations/0067-encrypt-messages.js. For the safety migration on production, the body_backup field was added to the message model temporary.
  • Added new feature to get ability to archive chats. See migration src/migrations/0069-add-enableArchiving-field.js
  • email template for password reseting email-templates/reset-password.pug

Changed

  • Greetings and Standard replies are refactored to Contextual Dialogs. See src/migrations/0068-add-is-standard-reply-to-tree.js
  • removed questions' patch method from publish to channel in src/channels.js
  • changed permission to allow contact support. See migration src/migrations/0070-allow-contact-support.js
  • removed dangling roles in migration src/migrations/0071-remove-dangling-roles.js
  • added migration to archive chats of deleted bots. See src/migrations/0073-archive-convs-for-deleted-bots.js

Added

  • added Test chat to the Bot settings page src/pages/App/Bots/Edit/TestChat.vue
  • templates/eb7v2/variables to keep all sass variables we uses in the WebChat
  • added src/components/NativeScroll.vue
  • added NativeScroll to src/pages/App/Messages/AnswerCandidateManager.vue and src/pages/App/Messages/index.vue
  • added new filter to the message center to ability to filter archived chats in src/pages/App/Messages/components/ConvFilters.vue
  • added new method to reset password in src/pages/App/Orgs/components/User.vue
  • added property to repeat alert sound in src/pages/App/Settings/index.vue
  • added new method to ability to change password in src/pages/Verify.vue
  • added new permission orgs:ManageOrg:* to src/permissions-list.js
  • added new patch methods in src/store/modules/user.js

Changed

  • changed location rule for socket connections to support versioning in nginx/nginx.conf.ctmpl
  • added new location rule for API calls to support a subdomains
  • added new request header extraAtStart for subdomains
Old code New code
location ~* ^/v0/socket.io/(.*) {
    proxy_pass http://bot-engine/socket.io/$1$is_args$args&external=true;
location ~* ^/(?<apiver>v[0-9.]+)/socket.io/(.*) {
    proxy_pass http://bot-engine/socket.io/$1$is_args$args&external=true&apiVersion=$apiver;
location ~ ^/(?<apiver>v[0-9.]+)/(?<apipath>.*) location ~ ^(/(?<extrastart>.*))?/(?<apiver>v[0-9.]+)(/(?<apipath>.*))$ {
...
    proxy_set_header extraAtStart "$extrastart";
  • added new condition to check messages' encription expiration to src/components/Chat/ChatMessage.vue. If message is expired, an agent will see only Nachricht abgelaufen message instead of normal one. The expireAfter settings are temporary disabled in src/pages/App/Bots/Edit/BotSettingsEdit.vue:44
  • added new required props to src/components/Chat/ChatToBot/ChatFeedbackTab.vue.
Old props New props
onFeedbackModalClick: { type: Function, required: true } onFeedbackModalClick: { type: Function, required: true },
bot: { required: true },
conv: { required: true },
  • added new support for repeating an alert sound to src/components/DesktopNotification.vue
  • removed highlight mixin from src/components/HtmlEditor/index.vue
  • removed highlight support from src/components/Fact/Question.vue
  • removed highlight support from src/components/HtmlEditor/mixins/methods.js
  • changed type of property of the SaveButton in src/components/SaveButton.vue
Old property New property
savable: { type: Number, required: true }, savable: { type: [Boolean, Number], required: true },
  • changed permissions for /orgs/ path insrc/components/SidebarMenu.vue`
Old handler New handler
'/orgs': this.user.isAdmin '/orgs': this.user.isAdmin || this.hasPermission(`orgs:ManageOrg:${_.get(this.org, '_id')}`)
  • added hysterical cry to the file src/components/VerticalFill.vue. So, now we uses only native scroll.
  • custom browser detection method replaced with bowser package in src/helpers/is-browser-outdated.js
  • changed UI of the Bot settings page, added Test chat. See Added section.
  • removed vertical-fill from src/pages/App/Messages/index.vue
  • refactored src/pages/App/Orgs/Edit.vue to avoid unauthorized users to edit the Orgs' page
  • removed breadcrumbs in src/pages/App/index.vue
  • removed meta needsAdmin: true from /orgs route in src/routes/app/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment