Skip to content

CON-328 Add HTTP call to the slack when a meeting is ended #505

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Ramadhan0
Copy link
Contributor

@Ramadhan0 Ramadhan0 commented Oct 11, 2019

Description

This feature ensures that an HTTP call is made to the slack integration micro-service when a meeting is ended, either by the user or when the meeting time runs out.

It sends out different arguments including the organizer_email, room_id, and the event_id.

How to test it:

  • update your .env file with this variable
    SLACK_NOTIFICATION_URL=https://www.softwaretestinghelp.com/tools/30-top-website-link-verification-testing-tools/
  • make sure all services are up including redis
  • open insomnia or postman and hit the end event mutation structured as below,
    mutation{ endEvent(calendarId:"[email protected]", eventId:"0manph5i3e8lnld6tnvb0o1pcc", organizerEmail:"[email protected]", roomId: "18", startTime:"2018-08-19T23:00:00-07:00", endTime:"2018-08-20T05:00:00-07:00", meetingEndTime: "2018-08-14T07:00:00-07:00"){ event{ eventId eventTitle checkedIn cancelled meetingEndTime room{ id name calendarId } } } }
  • check-in the celery.err.log file for the response to be 200 after finishing the task with a notify-slack name.

Type of change

Please select the relevant option

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Others (cosmetics, styling, improvements)
  • This change requires a documentation update

How Has This Been Tested?

  • Unit
  • Integration
  • End-to-end

New feature

JIRA

CON-328
CV3-63

@Ramadhan0 Ramadhan0 added the wip label Oct 11, 2019
@Ramadhan0 Ramadhan0 force-pushed the story/CON-328-HTTP-call-to-the-slack branch 28 times, most recently from 82fb602 to 775708d Compare October 15, 2019 16:53

def upgrade():
op.add_column('events', sa.Column(
'organizer_email', sa.String(), nullable=True))
Copy link
Contributor

Choose a reason for hiding this comment

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

I just checked Samuel's PR and I saw that the organizer email is sent as a list since it is taking two emails, is this data type appropriate for storing it?

Choose a reason for hiding this comment

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

I just wanna know from the list of 2 emails, how will I know which one is the actual organizer_email @mifeille

@MCFrank16 MCFrank16 force-pushed the story/CON-328-HTTP-call-to-the-slack branch 11 times, most recently from b2765d4 to a9b7898 Compare November 18, 2019 13:48
@MCFrank16 MCFrank16 added Ready for Review and removed To be merged This PR is ready to be merged, developer can start on a new story labels Nov 18, 2019
@MCFrank16 MCFrank16 requested a review from adafia November 19, 2019 09:00
Copy link
Contributor

@mifeille mifeille left a comment

Choose a reason for hiding this comment

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

Please validate organizerEmail and roomId fields.

@MCFrank16 MCFrank16 force-pushed the story/CON-328-HTTP-call-to-the-slack branch 4 times, most recently from 79292d5 to 2a3cd94 Compare November 20, 2019 13:17
@mifeille mifeille dismissed their stale review November 20, 2019 14:35

A new task was added on top of this and it is not yet done.

@MCFrank16 MCFrank16 added TTL Review Technical Team Lead Review and removed Ready for Review labels Nov 20, 2019
@MCFrank16 MCFrank16 force-pushed the story/CON-328-HTTP-call-to-the-slack branch from 2a3cd94 to 412494e Compare November 25, 2019 12:51
@MCFrank16 MCFrank16 force-pushed the story/CON-328-HTTP-call-to-the-slack branch 2 times, most recently from 161ebb3 to 10e5fa3 Compare December 5, 2019 14:38
Ramadhan0 and others added 2 commits December 10, 2019 10:32
  - ensure the returned url is comprised with the organizer_email and room_id

[Delivers CON-328]
@MCFrank16 MCFrank16 force-pushed the story/CON-328-HTTP-call-to-the-slack branch from 10e5fa3 to dd9dbb1 Compare December 10, 2019 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TTL Review Technical Team Lead Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants