summaryrefslogtreecommitdiff
path: root/spec/mailers
Commit message (Collapse)AuthorAgeFilesLines
* Handle namespaced modelsAlex Kalderimis2019-08-211-0/+67
| | | | | | We encountered issues with setting module headers for namespaced models. These changes address this. We retain the namespacing, but transform the classnames to make them into safe email headers.
* Respect alt email when sending group access notifications63568-access-email-notifications-custom-emailMario de la Ossa2019-07-251-7/+14
| | | | | When sending access granted/rejected emails we should also respect custom emails set for groups/sub-groups
* Move document to new location, split in 3Marcia Ramos2019-07-151-1/+5
| | | | | - Move steps to new doc - Move all concepts to different docs
* Remove group in notification email subjectHeinrich Lee Yu2019-07-011-7/+7
| | | | | This reverts to previous behavior where we have the group only when we don't have a project
* Fix notes email with group-level notification emailSean McGivern2019-06-242-15/+17
| | | | | A Noteable doesn't have a group directly, unless it's an epic - we need to look for the project's group to find the right email address.
* Uniform html and text emails58065-uniform-html-txt-emailFrank van Rest2019-06-211-19/+9
| | | | | | Uniform new_issue_email html and text emails Uniform note_email html and text emails Uniform new_merge_request_email html and text emails
* Omit blocked admins from repository check e-mailssh-omit-blocked-admins-from-notificationStan Hu2019-06-121-0/+10
| | | | | | | Blocked admins should not receive notifications about failed repository checks. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63019
* Fix typo in project invitation declined testWei-Meng Lee2019-05-311-1/+1
|
* Send notifications to group-specific email addressWei-Meng Lee2019-05-312-4/+10
| | | | | | - Select notification email by walking up group/subgroup path - Add settings UI to set group email notification address - Add tests
* Add leave link to access_granted emailmember-access-granted-leave-email-feLuke Bennett2019-05-031-0/+4
| | | | | | | | Allows users to leave a project/group that they have been added to. Add function to leave a namespace by url param If the `leave` param is present on a project/group show page, click the leave link.
* Mark unverified pages domains for removalVladimir Shushlin2019-04-091-0/+24
| | | | | | | Set pages_domain.remove_at when disabling it Add specs for marking pages domain for removal Notify user that domain is being removed Add documentation
* [CE] Support multiple assignees for merge requestsosw-multi-assignees-merge-requestsOswaldo Ferreira2019-04-081-9/+9
| | | | | Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
* Prevent premailer from converting HTML entitiesHeinrich Lee Yu2019-04-041-0/+13
| | | | This prevents `&mdash` in our templates being change to `-`
* Resolve conflicts in spec/mailers/notify_spec.rbStan Hu2019-03-041-10/+0
|
* Merge dev master into GitLab.com masterYorick Peterse2019-03-041-8/+46
|\
| * Remove link after issue move when no permissionsJarka Košanová2019-02-201-13/+43
| | | | | | | | | | | | Don't show new issue link after move when a user does not have permissions to display the new issue
* | Show header and footer system messages in emailAlexandru Croitor2019-02-276-13/+155
|/ | | | | | | | | | | * Add email_header_and_footer_enabled flag to appearances table * Set email_header_and_footer_enabled default value to false * Add checkbox to appearance to toggle show header and footer in emails * Add email_header_and_footer_enabled to allowed params in controller * Add header and footer messages to the html and text email layouts * Remove the color styling for emails header and footer * Add empty_mailer layout for emails without layout, to have the header and footer applied
* Use `sanitize_name` to sanitize URL in user full nameKushal Pandya2019-01-311-3/+5
|
* Enable the Layout/ExtraSpacing cop56392-enable-the-layout-extraspacing-copRémy Coutable2019-01-242-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove caching of CSV file49231-import-issues-csvHeinrich Lee Yu2019-01-071-3/+3
| | | | Load whole file in memory to simplify code
* Import CSV BackendHeinrich Lee Yu2019-01-071-0/+33
| | | | Process CSV uploads async using a worker then email results
* Always use colon at end of discussion notification email headlineDouwe Maan2018-12-201-10/+2
|
* Fix a potential frozen string error in app/mailers/notify.rbRémy Coutable2018-12-111-9/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix a frozen string error in app/mailers/notify.rbRémy Coutable2018-12-101-2/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'security-guest-comments' into 'master'Cindy Pallares2018-11-281-1/+1
| | | | | [master]Fixed ability to comment on and edit/delete comments on locked or confidential issues See merge request gitlab/gitlabhq!2612
* Automatically disable Auto DevOps for project upon first pipeline failureMayra Cabrera2018-09-061-0/+32
|
* Update notification specs after renaming a classGrzegorz Bizon2018-07-161-2/+4
|
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-8/+8
|
* This test was copied from EELin Jen-Shin2018-07-101-0/+11
|
* Move spec/mailers/previews to app/mailers/previewsLin Jen-Shin2018-07-064-210/+0
|
* Notify only when unmergeable due to conflictMark Chao2018-06-201-7/+1
| | | | | | | | | | | | There is still the edge case when 'no commits' changes to 'conflict' would not trigger notification, which we ignore for now. Calling can_be_merged? can cause exception (e.g. non-UTF8) Ignore those by rescueing. Remove unmergeable_reason as now only conflict is notified Update spec
* Replace have_html_espaced_body_text after 517598baTakuya Noguchi2018-06-031-19/+19
|
* Revert "Add a new have_html_escaped_body_text that match an HTML-escaped text"Takuya Noguchi2018-06-031-9/+9
| | | | This reverts commit 517598ba10793efa02cb90379f78ab97c9c5b25d.
* Fix merge request unmergeable notification email plural interpolation46840-fix-merge-request-unmergeable-email-pluralMark Chao2018-05-311-1/+1
|
* Merge branch 'mr-conflict-notification' into 'master'Douwe Maan2018-05-241-0/+40
|\ | | | | | | | | MR unmergeable notification See merge request gitlab-org/gitlab-ce!18042
| * Plural reason(s)Mark Chao2018-05-181-0/+1
| |
| * Notify with email when merge request became unmergeablelulalala2018-05-171-0/+39
| | | | | | | | Display MR unmergeable reasons
* | Resolve "Opening Project with invite but without accepting leads to 404 ↵🙈 jacopo beschi 🙉2018-05-171-1/+1
|/ | | | error page"
* Backport 5480-epic-notifications from EEMario de la Ossa2018-05-071-32/+0
|
* Fix undefined method `one?` when pushing to an existing merge requestsh-fix-issue-45152Stan Hu2018-04-071-2/+14
| | | | | | | | An untested code path was triggering an Exception because Fixnum doesn't have `one?` implemented in Rails, while arrays and collections do. Closes #45152
* Add custom additonal email text to all emailsce-4474-custom-additional-text-in-confirmation-emailEric Eastwood2018-04-043-10/+83
| | | | | | | | | | | | | | | | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ee/issues/4474 Conflicts: db/schema.rb ee/app/controllers/ee/admin/application_settings_controller.rb ee/app/helpers/ee/application_settings_helper.rb ee/app/models/ee/application_setting.rb ee/app/models/license.rb ee/app/views/layouts/service_desk.html.haml ee/app/views/notify/approved_merge_request_email.html.haml ee/app/views/notify/service_desk_new_note_email.text.erb ee/app/views/notify/service_desk_thank_you_email.text.erb ee/app/views/notify/unapproved_merge_request_email.html.haml ee/lib/ee/api/entities.rb ee/spec/controllers/admin/application_settings_controller_spec.rb ee/spec/models/application_setting_spec.rb ee/spec/requests/api/settings_spec.rb lib/api/settings.rb spec/mailers/previews/notify_preview.rb
* Fix body of email when commits are pushed to an MRSean McGivern2018-04-031-0/+30
| | | | | This was sending the current user, which is the recipient! It should be the user who pushed the commits.
* Fix unapproved unassigned MR email erroring outce-3092-fix-unassigned-unapproved-mr-email-failingEric Eastwood2018-03-281-1/+1
| | | | | | | | Fix https://gitlab.com/gitlab-org/gitlab-ee/issues/3092 Conflicts: ee/app/views/notify/unapproved_merge_request_email.html.haml spec/mailers/notify_spec.rb
* Replace deprecated name_with_namespace with full_name in app and specDmitriy Zaporozhets2018-03-051-11/+11
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add DNS verification to Pages custom domainsNick Thomas2018-02-231-0/+71
|
* Resolve "group request membership mail with too long list of "To:""🙈 jacopo beschi 🙉2018-02-191-48/+22
|
* Enable RuboCop Style/RegexpLiteralTakuya Noguchi2018-02-011-1/+1
|
* Initial work to add notification reason to emailsMario de la Ossa2018-01-161-0/+49
| | | | | | | | | | | Adds `#build_notification_recipients` to `NotificationRecipientService` that returns the `NotificationRecipient` objects in order to be able to access the new attribute `reason`. This new attribute is used in the different notifier methods in order to add the reason as a header: `X-GitLab-NotificationReason`. Only the reason with the most priority gets sent.
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-4/+4
|
* Make discussion mail References all notes in the discussiontc-correct-email-in-reply-toToon Claes2017-12-131-0/+40
| | | | | | | | | When a note is part of a discussion, the email sent out will be `In-Reply-To` the previous note in that discussion. It also `References` all the previous notes in that discussion, and the original issue. Closes gitlab-org/gitlab-ce#36054.