281 Commits
Author SHA1 Message Date
sony-mathew 6efa994096 Merge branch 'hotfix/1.0.3' - Support for authenticated redis connections v1.0.3 2020-01-26 22:47:00 +05:45
sony-mathew 2168f823a5 [#446] Redis authentication support
Previously we did not support authentication for redis anywhere. Also in the docker compose we were exposing redis port 6379 without any authentication. In the app side for the connections that app server (for storing keys as well as for socket connections made using action cable) and Sidekiq were making to redis server did not support authentication.

With this commit, we support authentication for redis connections from app side and Sidekiq. This is supported in docker-compose as well.

The changes include :
* Added support for new env variable REDIS_PASSWORD
* This redis password is now supported by action cable connections, Sidekiq connections and app side redis connections
* Since Sidekiq did not have an initializer, added an initializer to pass custom config to Sidekiq (for now it's options for redis)
* Changes in docker-compose to pickup a password set in .env file to protect the redis server running in docker
* Added necessary documentation changes in `docker.md` and `environment-variables.md`
2020-01-26 22:46:34 +05:45
Sojan e04ff6441b Merge branch 'hotfix/1.0.2' v1.0.2 2020-01-09 14:36:35 +05:30
Sojan 6c0076665a Bugfix: Production autoload issue for bot.rb
- add app/bot to auto load path
2020-01-09 14:36:20 +05:30
Sojan 9c2f37d0f9 Merge branch 'hotfix/1.0.1'
Bugfix: Sidekiq queues getting stuck [#411]
v1.0.1
2020-01-09 11:59:56 +05:30
Sojan 8e6b735299 Bugfix: Sidekiq queues getting stuck [#411]
ref: https://github.com/rails/rails/issues/36810
closes: #411
2020-01-09 11:59:31 +05:30
Sojan 4f875dae4c Merge branch 'release/1.0.0' v1.0.0 2020-01-03 12:57:16 +05:30
Pranav Raj SandSojan Jose f178429df2 Docs: Update year in license file (#401) 2020-01-02 12:27:22 +05:30
Pranav Raj SandSojan Jose 439e064d90 Feature: Contact Panel with conversation details (#397)
* Add Contact panel changes

* Fix parent iframe blocked

* Add Conversation Panel, Contact messages

* Update contact panel with conversation details

* Update designs in sidebar

* Fix specs

* Specs: Add specs for conversationMetadata and contact modules

* Fix currentUrl issues

* Fix spelling

* Set default to empty string
2020-01-01 22:30:43 +05:30
Cadu RibeiroandSojan Jose 434d6c2656 Reduce docker image size (#394)
Reduce docker image size based on:  https://cadu.dev/reduce-your-docker-images-an-example-with-ruby/
2019-12-31 18:23:18 +05:30
Pranav Raj SandGitHub 7c4cc68561 Bug: Force fetch inbox settings on route change (#400) 2019-12-30 11:53:16 +05:30
Sojan JoseandPranav Raj S bacc0b2f18 Enhancement: Use S3 for active storage (#398) 2019-12-29 11:13:28 +05:30
Pranav Raj SandSojan Jose e2aeeeca43 Specs: Add specs for Facebook::SendReplyService (#396) 2019-12-28 23:14:09 +05:30
Jonathan AlzettaandPranav Raj S 790877c056 Docs: Fix typo in website channel setup (#395) 2019-12-28 22:26:20 +05:30
Pranav Raj SandSojan Jose 5ddc46c474 Refactor: Inbox store, remove inboxes from sidebar (#387)
* Refactor: Inbox store, remove inboxes from sidebar

* Add a new page for inbox settings

* Show inboxes on sidebar

* Add inbox_members API

* Disable similar-code check

* Fix codeclimate scss issues

* Add widget_color update API and actions

* Add specs for inbox store

* Fix Facebook auth flow

* Fix agent loading, inbox name
2019-12-28 21:56:42 +05:30
Mukesh ChaudharyandSojan Jose 96f8070e79 Add specs for Policies (#392)
* Add specs for Policies

* Fix CI issues
2019-12-28 01:27:59 +05:30
Pranav Raj SandSojan Jose 19b4311e8b Upgrade: Use postgres 11.6 in docker-compose (#391) 2019-12-26 22:04:52 +05:30
Pranav Raj SandSojan Jose 005ca62c6e Bug: Fix signup 500 error (#389) 2019-12-26 11:52:14 +05:30
Pranav Raj SandSojan Jose f55c42d5a1 Bug: Fix copy when no inbox is added. (#386) 2019-12-25 20:06:43 +05:30
Pranav Raj SandSojan Jose 3440230187 [Bug] Fix short_code param in update canned response API (#385) 2019-12-25 11:52:02 +05:30
Anto DominicandSojan Jose 4e9290ad76 Send emails via sidekiq (#380)
* add sidekiq web view if the user is an administrator

* add sidekiq setup configuration and support

* update devise to use delivery_later method and update test

* update conversation to use deliver_later instead of deliver

* Update Routes

* Add Procfile for Heroku One-Click Start

* updating docs

* update concurrency and Procfile for supporting Heroku Free Dyno

* update Procfile.dev
2019-12-25 03:03:02 +05:30
Anto DominicandPranav Raj S 335e7487e6 Docs: Update docker guide to use website docs (#383) 2019-12-25 00:10:36 +05:30
Sojan JoseandPranav Raj S f98cd83a29 Code-climate duplicate code fixes (#382)
* Code-climate duplicate code fixes

* Spec for accounts controller
2019-12-24 17:32:27 +05:30
SojanandPranav Raj S 97ab82892d Chore: labels to Conversations [#245] 2019-12-24 16:42:18 +05:30
Sojan JoseandPranav Raj S 7d85f2e046 Feature: Contact Merge Action (#378) 2019-12-24 13:27:25 +05:30
Pranav Raj SandSojan Jose 32efe8676f Fix formatting in docs (#379) 2019-12-23 13:00:22 +05:30
Pranav Raj SandSojan Jose 1143893d9c [Bug] Fix conversation assignment mailer url (#374)
* Fix conversation assignment mailer url

* Remove mailer scope
2019-12-23 12:16:46 +05:30
Sojan JoseandPranav Raj S 9c7d8bb60d [Docs] Update docker documentation (#377) 2019-12-23 11:56:25 +05:30
Anto DominicandSojan Jose 1ee17cc826 [Enhancement] Docker support Debugging (byebug & pry) and receive emails to MailHog via smtp (#371)
* updated development docker setup

* turned on yarn integrity check

* create test docker compose and update development dockerfile

* create docker Readme.md file

* fix README.md file

* create docker-copmose and dockerfile for production/staging environment setup

* added mailhog to catch email

* remove yarn integrity check in development mode!

* Update Readme.md file to support mailhog inbox

* update link to docker development guide from mail README

* remove .env.development and use .env.example for docker as .env.development was mixing with circleci config

* make the dockerfile configurable like before

* update docker-compose as per suggesion in PR

* create docker setup docs

* Revert accidental deletion

* fix: typo for branding consistency

* fix typo

* update the code as per recommendation in PR

* remove package-lock and add gitignore

* fix vulnerability AND update env for tests to pass

* Fix yarn integrity check across different docker services

* update code based on rubocop and PR suggestions

* remove redundant test docker-compose and dockerfile

* update rails entrypoint, update docs and Gemfile

* [Rubocop] order Gemfile alphabetically

* Reordering Gemfile
2019-12-22 22:53:18 +05:30
Anto DominicandPranav Raj S 6bdac3d9fe [Cleanup] Remove unnecessary Capistrano config (#375) 2019-12-22 18:00:23 +05:30
Pranav Raj SandSojan Jose 2ce7438c79 [Refactor] Cleanup agent store and actions (#373)
* Cleanup agent store and actions

* Move set/create/update/destroy to helpers

* Update mutation specs

* Add specs for API helper

* Fix edit/delete action visibility

* Add actions specs

* Remove unused API helpers

* Remove duplicates

* Remove duplicates

* Fix duplicate
2019-12-21 22:54:35 +05:30
dependabot[bot]andPranav Raj S a92e3817f8 Bump rack from 2.0.7 to 2.0.8 (#372)
Bumps [rack](https://github.com/rack/rack) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.0.7...2.0.8)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-20 12:16:53 +05:30
Pranav Raj SandSojan Jose 4b677ae00e [Bug] Fix timestamp in temporary message (#369)
* [Bug] Fix timestamp in temporary message

* Fix tests
2019-12-17 09:47:44 +05:30
James GeorgeandPranav Raj S 87fb1adab1 Refactor: Minor code refactoring in accordance with Vue.js best practices (#368) 2019-12-16 18:23:14 +05:30
Pranav Raj SandSojan Jose 17587d8a0c [Enhancement] Group widget messages by users (#367)
* Remove thumbnail

* Show grouped messages
2019-12-15 23:53:04 +05:30
James GeorgeandPranav Raj S 5c7c325c9c Refactor: use Array.includes instead of indexOf (#366) 2019-12-15 23:24:34 +05:30
Pranav Raj SandSojan Jose a7cb75e468 [Performance] Optimize queries in conversation/message finders (#364)
* [Performance] Optimize queries in conversation/message finders

* Add message_finder spec

* Fix message_finder spec
2019-12-15 16:59:12 +05:30
Pranav Raj SandSojan Jose cfc56705fd [Enhancement] Group widget messages by date (#363)
* [Enhancement] Group widget messages by date

* Update DateSeparator snapshot
2019-12-15 00:06:01 +05:30
Pranav Raj SandSojan Jose 7b63cbe1f7 [Enhancement] Select widget_color while creating inbox (#362)
* [Enhancement] Select widget_color while creating inbox

* Fix codeclimate issues

* Fix !important
2019-12-14 18:14:35 +05:30
Pranav Raj SandSojan Jose 19852b60cd [Bug] Fix icon alignment in buttons (#360)
* Fix icon alignment in buttons

* Fix ordering
2019-12-13 15:26:14 +05:30
Mukesh ChaudharyandSojan Jose 5b275ea157 Add option to reset password of agents to Admin (#351)
* Add option to reset password of agents to Admin

* Fix copy, remove setTimeout
2019-12-13 13:04:49 +05:30
Ender Ahmet YurtandSojan Jose cef1200351 Refactor for reauthorize_page method (#110)
* Refactor for reauthorize_page method

* Fix the rubocop issues
2019-12-13 02:42:16 +05:30
Pranav Raj SandSojan Jose febc4bef83 [Enhancement] Hide sidebar on tablets (#358)
* [Enhancement] Hide sidebar on tablets

* Remove unnecessary console.log

* Use beforeDestroy
2019-12-12 12:53:15 +05:30
Pranav Raj SandSojan Jose 2b41e91768 [Enhancement] Fetch previous messages in the conversation (#355)
* Fetch previous messages in the conversation

* Add specs for conversation store

* Fix codeclimate issues

* Exclude specs folder

* Exclude globally

* Fix path in exclude patterns

* Add endPoints spec

* Add snapshots for Spinner

* Add specs for actions
2019-12-11 20:57:06 +05:30
Pranav Raj SandSojan Jose 1005b9e227 Add Database config variables to .env.example (#357) 2019-12-10 22:24:08 +05:30
Sojan JoseandPranav Raj S 1abaee04d8 Feature: Profile API [#238] (#354)
- api to update name and email
- api to change password
- api to  set profile pic
- fixes update_attribute! deprecation warning
- introducing active storage
2019-12-10 10:29:35 +05:30
Pranav Raj SandGitHub 7f96c39b18 Add OpenCollective funding details (#353) 2019-12-09 10:30:29 +05:30
Sojan JoseandGitHub 0a5d6c0de9 Fix security advisory warning (#352) 2019-12-09 10:19:09 +05:30
Pranav Raj SandSojan Jose d8d4deea2f Remove unnecessary slash in curl command (#349)
* Remove unnecessary slash in curl command

* bundle update

* Fix rubocop errors
2019-12-06 16:50:06 +05:30
petebytesandSony Mathew 3f403c9e7a Improve docker compose performance (#347)   🤩
* Fix warning Integrity check: System parameters don't match

* Reduce commands required to use docker-compose and update quick-setup doc

Data will still persist when stopping and restarting containers.
To destroy the data can use docker-compose down --volumes

* Moved webpacker-dev-server to its own service

* cache bundle and yarn - improve volume performance - env conditional statements

* Fix inconsistent build results found during testing
2019-12-05 16:42:46 +05:30