Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Conversations #1629

Merged
merged 72 commits into from
Aug 31, 2018
Merged

feat: Conversations #1629

merged 72 commits into from
Aug 31, 2018

Conversation

djaiss
Copy link
Member

@djaiss djaiss commented Jul 29, 2018

This PR adds the concept of conversations.

Right now we can log phone calls. It's useful, but it's limited. What if we could log every communication with a contact? Each communication is a conversation. A conversation has one or more messages. The idea is to let users record conversations made on social media (FB, Whatsapp,...), interactions through SMS, meeting notes, phone calls, email,...

All this presented in a nice and friendly way. That way, I can remember for instance that I've had a nice conversation with a good friend of mine at this date, and we've talked about X.

This will close #917

For this first iteration, we won't migrate existing phone calls and we'll keep the calls feature, otherwise it will break the mobile application

  • Order conversations list by date
  • Crop last message if it's too long for display
  • Make sure it works in responsive mode
  • When deleting a contact field type, make sure we delete conversations too
  • Add Conversations on dashboard
  • Daily Statistics calculation on the instance
  • Cypress tests
  • Make sure all exceptions are taken into account in the frontend
  • Impact on notion of modules

image

Technical discussion

This PR uses the notion of service, and especially the notion of single action classes. The idea is to have one class per action.
It's very useful as it will let us write less code at the end. By using a class separated from your model, we can have the logic at one place, and call this logic from both the API and the web version, without having to write the backend twice.

Checklist

Code-related tasks

  • Tests added for this feature/bug.
  • Impact on the seeders.
  • Impact on the API.

If the code changes the SQL schema

  • Impact on account export.
  • Impact on importing data with vCard and .csv files.
  • Impact on account reset and deletion.

Other tasks

  • CHANGELOG entry added, if necessary, under UNRELEASED.

@djaiss djaiss changed the title New feature: Conversations [wip] feat: Conversations [wip] Aug 5, 2018
@djaiss djaiss added this to the 2.7 milestone Aug 13, 2018
@djaiss djaiss mentioned this pull request Aug 16, 2018
Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 36

See all issues in SonarCloud

Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 27

See all issues in SonarCloud

asbiin
asbiin previously requested changes Aug 29, 2018
Copy link
Member

@asbiin asbiin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments

Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 27

See all issues in SonarCloud

Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 27

See all issues in SonarCloud

Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 20

See all issues in SonarCloud

@djaiss djaiss dismissed asbiin’s stale review August 31, 2018 11:11

All has been done.

@djaiss djaiss changed the title feat: Conversations [wip] feat: Conversations Aug 31, 2018
@djaiss djaiss merged commit be3b6dd into master Aug 31, 2018
@djaiss djaiss deleted the 2018-07-26-feat-conversations branch September 1, 2018 14:50
@github-actions
Copy link

github-actions bot commented Feb 2, 2021

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add other ways to log communication with a contact
3 participants