WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
386 stars 600 forks source link

'Email Instructors' feature should have 'BCC to Salesforce' option just like Ticket replies #5700

Open ragesoss opened 4 months ago

ragesoss commented 4 months ago

We recently added an option to email instructors from the course page. It would be very useful to also add 'BCC to Salesforce' to this by default, as that will help us keep track of communication we do with a given instructor more easily.

(It should work the same way as in the Ticket system, where 'BBC to Salesforce' is checked by default in the UI but can be unchecked to disable it for an individual message.)

psankhe28 commented 4 months ago

@ragesoss Can i work on this issue ?

ragesoss commented 4 months ago

@psankhe28 sure. look at the way this works on the Ticket system (/tickets/dashboard) for the example to follow.

psankhe28 commented 4 months ago

Can you please confirm if the file where the changes need to be done is /app/mailers/instructor_notification_mailer.rb. I am not sure if I have found the right file.

ragesoss commented 4 months ago

@psankhe28 yes, that's one place that will need to be changed. it should be optional (enabled by default), though, just like on tickets.

psankhe28 commented 4 months ago

@psankhe28 yes, that's one place that will need to be changed. it should be optional (enabled by default), though, just like on tickets.

Okay, thanks!

psankhe28 commented 4 months ago

Hello @ragesoss, I apologize for my recent inactivity as I had been occupied with mid-semester exams. Could you please guide me on accessing a course page? I've encountered an issue where I created a program using one account but couldn't find the option to join it using another account, particularly in sending emails. Can you assist me with this matter?

ragesoss commented 4 months ago

@psankhe28 check out docs/user_roles.md. If you can't find the answer there, please post the details of exactly what you've done and what you expect to happen that is not working as expected.

psankhe28 commented 3 months ago

I had done all the steps mentioned in docs/user_roles but had an issue joining the course. I again cloned and tried, and it worked. I created an admin user who created the course and using another account, I joined it. On using the student account, I tried finding out how to email the instructor but was not able to. Is the functionality implemented?

This is how the course page looks for me: image

ragesoss commented 3 months ago

The feature for emailing the instructor is available only to admins, not to students. The way to test this would be to have one user as the instructor, and another as an admin sending the email (and the admin need not be enrolled in the course, but if they are the 'Wiki Education staff' role is the appropriate one).

psankhe28 commented 3 months ago

Thanks, I will try this.

psankhe28 commented 3 months ago

I've created one user as an instructor who has created a course, and another user as an admin. However, I'm unable to locate any options for sending emails. I even searched on the page for the courses already created. I understand this might be a lot to ask, but could you please assist me? Thank you!

ragesoss commented 3 months ago

@psankhe28 sure. This feature is only enabled in Wiki Education mode, and I think you are not using that mode. Change the wiki_education value in application.yml and see if that gives you access to the feature.

psankhe28 commented 3 months ago

It worked, thanks!

prathamVaidya commented 3 months ago

Looks like no one is active. I'll take the task.