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/5733 Add private note action in macros #5805

Merged
merged 3 commits into from Nov 7, 2022

Conversation

tejaswinichile
Copy link
Contributor

@tejaswinichile tejaswinichile commented Nov 7, 2022

Fixes #5733

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tested on local, can save the macros with private note and when we execute the macros able to see private note in the conversation

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@pr-triage pr-triage bot added the PR: unreviewed This pull request is yet to be reviewed. label Nov 7, 2022
Copy link
Contributor

@fayazara fayazara left a comment

Choose a reason for hiding this comment

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

Looks good. Added a small update to resolve the notes in preview.

Tested locally - https://www.loom.com/share/2978fa2c6e434974b5a4d94ea791aef2

@pr-triage pr-triage bot added PR: partially-approved Not all reviewers have approved the PR and removed PR: unreviewed This pull request is yet to be reviewed. labels Nov 7, 2022
@tejaswinichile tejaswinichile merged commit a23974d into develop Nov 7, 2022
@tejaswinichile tejaswinichile deleted the feat/5733-private-note branch November 7, 2022 16:42
@pr-triage pr-triage bot added PR: merged The pull request is merged to another branch and removed PR: partially-approved Not all reviewers have approved the PR labels Nov 7, 2022
Comment on lines +25 to +33
def add_private_note(message)
return if conversation_a_tweet?

params = { content: message[0], private: true }

# Added reload here to ensure conversation us persistent with the latest updates
mb = Messages::MessageBuilder.new(@user, @conversation.reload, params)
mb.perform
end
Copy link
Member

Choose a reason for hiding this comment

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

@tejaswinichile Couldn't this be a common function for both send_message and private note?

@pr-triage pr-triage bot added PR: partially-approved Not all reviewers have approved the PR and removed PR: merged The pull request is merged to another branch labels Nov 7, 2022
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

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 Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR: partially-approved Not all reviewers have approved the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macros - Allow adding a private note
3 participants