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

Bug/WP-364: Ticket creation emails are not sent to 'cc' emails #1017

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jmcmillenmusic
Copy link
Collaborator

Overview

There is a bug that prevents CC emails from receiving emails when a ticket is first created. CC emails actually receive emails when there are replies to a ticket, however.

Related

Changes

I edited the Ticket Modal to inform users that CC emails will only receive emails on ticket replies, not ticket creation.

Testing

No testing is required since this bug cannot be fixed locally.

UI

image

Notes

The change that we need to make must be done globally instead of locally. That change happens here. I'll reach out to the RT channel in Slack to see if we can make that change.

image

Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.76%. Comparing base (b01a86a) to head (02b74b9).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #1017       +/-   ##
===========================================
+ Coverage   60.44%   75.76%   +15.31%     
===========================================
  Files         211      323      +112     
  Lines        6285    27171    +20886     
  Branches      730     2251     +1521     
===========================================
+ Hits         3799    20586    +16787     
- Misses       2329     6547     +4218     
+ Partials      157       38      -119     
Flag Coverage Δ
javascript 75.76% <100.00%> (?)
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
client/src/components/Tickets/TicketCreateForm.jsx 85.15% <100.00%> (ø)

... and 533 files with indirect coverage changes

---- 🚨 Try these New Features:

@@ -16,10 +16,10 @@ def __init__(self):

def getUserTickets(self, userEmail, status="ALL"):
if not status == "ALL":
ticket_list = self.tracker.search(Queue=rt.ALL_QUEUES, Requestors__exact=userEmail, Status__exact=status,
ticket_list = self.tracker.search(Queue=rt.ALL_QUEUES, Requestor__exact=userEmail, Status__exact=status,
Copy link
Member

Choose a reason for hiding this comment

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

Is this a confirmed needed change as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Based on my conversation with Chandra, he mentioned making this change anyhow.
image

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but this is a different endpoint, tracker.search. Can you confirm the correct field is Requestor__exact?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The results appear to be the same regardless of whether that line says Requestor or Requestors.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If the results are the same, then we do not need to change, since nothing is broken. The issue from PR above is in create_ticket endpoint and not search endpoint. The parameter to create_ticket is Requestor (as seen in RT source code: ).

@jmcmillenmusic jmcmillenmusic changed the title Edited modal to warn users about CC email limitations Bug/WP-364: Ticket creation emails are not sent to 'cc' emails Nov 25, 2024
@@ -16,10 +16,10 @@ def __init__(self):

def getUserTickets(self, userEmail, status="ALL"):
if not status == "ALL":
ticket_list = self.tracker.search(Queue=rt.ALL_QUEUES, Requestors__exact=userEmail, Status__exact=status,
ticket_list = self.tracker.search(Queue=rt.ALL_QUEUES, Requestor__exact=userEmail, Status__exact=status,
Copy link
Collaborator

Choose a reason for hiding this comment

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

If the results are the same, then we do not need to change, since nothing is broken. The issue from PR above is in create_ticket endpoint and not search endpoint. The parameter to create_ticket is Requestor (as seen in RT source code: ).

@@ -46,7 +46,7 @@ def post(self, request):
data = request.POST.copy()
subject = data.get('subject')
problem_description = data.get('problem_description')
cc = data.get('cc', '')
cc = data.get('cc', [''])
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be [''] or []? In another change in this PR, the default is []

@chandra-tacc
Copy link
Collaborator

Note: unit tests are failing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants