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

fix: inline mailme package for easy development #1803

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

hf
Copy link
Contributor

@hf hf commented Oct 14, 2024

The previously forked github.com/supabase/mailme package is inlined for easy development and changes.

@hf hf requested a review from a team as a code owner October 14, 2024 11:16
@hf hf force-pushed the hf/inline-mailme branch from 06a38b1 to 7e2f01c Compare October 14, 2024 11:26
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11326581203

Details

  • 0 of 121 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.4%) to 57.169%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/mailer/mailer.go 0 1 0.0%
internal/mailer/mailme.go 0 120 0.0%
Totals Coverage Status
Change from base Build 11324523960: -0.4%
Covered Lines: 9509
Relevant Lines: 16633

💛 - Coveralls

@hf hf merged commit fa6f729 into master Oct 14, 2024
2 checks passed
@hf hf deleted the hf/inline-mailme branch October 14, 2024 11:56
}

func (t *TemplateCache) Get(url string) (*template.Template, error) {
cached, ok := t.templates[url]
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a race, we read from t.templates without mutex here, but write to it in Set() with one. Easy fix though.

}

func (m *MailmeMailer) MailBody(url string, defaultTemplate string, data map[string]interface{}) (string, error) {
if m.FuncMap == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

We want to set this at time of New() too. I can do a quick patch to it after it's in if you want to fix the races.

cstockton pushed a commit that referenced this pull request Oct 15, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.163.0](v2.162.2...v2.163.0)
(2024-10-15)


### Features

* add mail header support via `GOTRUE_SMTP_HEADERS` with `$messageType`
([#1804](#1804))
([99d6a13](99d6a13))
* add MFA for WebAuthn
([#1775](#1775))
([8cc2f0e](8cc2f0e))
* configurable email and sms rate limiting
([#1800](#1800))
([5e94047](5e94047))
* mailer logging ([#1805](#1805))
([9354b83](9354b83))
* preserve rate limiters in memory across configuration reloads
([#1792](#1792))
([0a3968b](0a3968b))


### Bug Fixes

* add twilio verify support on mfa
([#1714](#1714))
([aeb5d8f](aeb5d8f))
* email header setting no longer misleading
([#1802](#1802))
([3af03be](3af03be))
* enforce authorized address checks on send email only
([#1806](#1806))
([c0c5b23](c0c5b23))
* fix `getExcludedColumns` slice allocation
([#1788](#1788))
([7f006b6](7f006b6))
* Fix reqPath for bypass check for verify EP
([#1789](#1789))
([646dc66](646dc66))
* inline mailme package for easy development
([#1803](#1803))
([fa6f729](fa6f729))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

4 participants