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: update MaxFrequency error message to reflect number of seconds #1540

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

J0
Copy link
Contributor

@J0 J0 commented Apr 17, 2024

What kind of change does this PR introduce?

Currently we use a constant value on number of seconds left before a developer can send a follow up email confirmation. This can prove confusing if developer has a custom setting for MaxFrequency on Sms or SMTP

We change some core email related routes to show the exact number of seconds. This includes signup, magic_link and email_change

The rest will follow should this change roll out smoothly. Tested the three flows locally by triggering the max frequency limit and checking that the number of seconds show up as expected.

@coveralls
Copy link

coveralls commented Apr 17, 2024

Pull Request Test Coverage Report for Build 9583492595

Details

  • 0 of 8 (0.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 57.674%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/api/magic_link.go 0 1 0.0%
internal/api/signup.go 0 1 0.0%
internal/api/user.go 0 1 0.0%
internal/api/errors.go 0 5 0.0%
Totals Coverage Status
Change from base Build 9544913073: -0.01%
Covered Lines: 8699
Relevant Lines: 15083

💛 - Coveralls

@J0 J0 marked this pull request as ready for review June 6, 2024 15:47
@J0 J0 requested a review from a team as a code owner June 6, 2024 15:47
@J0 J0 marked this pull request as draft June 6, 2024 16:11
@J0
Copy link
Contributor Author

J0 commented Jun 17, 2024

This PR is too broad. Will scope down so that it modifies two routes and we can gradually modify more thereafter.

@J0 J0 force-pushed the j0/accurately_affect_max_frequency_limit branch from 80f1f36 to aba0b5b Compare June 18, 2024 09:00
@J0 J0 force-pushed the j0/accurately_affect_max_frequency_limit branch from cc4d1db to 9db8cec Compare June 19, 2024 14:08
@J0 J0 marked this pull request as ready for review June 19, 2024 14:14
@J0 J0 merged commit e81c25d into master Jun 20, 2024
5 checks passed
@J0 J0 deleted the j0/accurately_affect_max_frequency_limit branch June 20, 2024 11:54
hf pushed a commit that referenced this pull request Jun 24, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.154.2](v2.154.1...v2.154.2)
(2024-06-24)


### Bug Fixes

* publish to ghcr.io/supabase/auth
([#1626](#1626))
([930aa3e](930aa3e)),
closes [#1625](#1625)
* revert define search path in auth functions
([#1634](#1634))
([155e87e](155e87e))
* update MaxFrequency error message to reflect number of seconds
([#1540](#1540))
([e81c25d](e81c25d))

---
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>
uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
…upabase#1540)

## What kind of change does this PR introduce?

Currently we use a constant value on number of seconds left before a
developer can send a follow up email confirmation. This can prove
confusing if developer has a custom setting for `MaxFrequency` on `Sms`
or `SMTP`

We change some core email related routes to show the exact number of
seconds. This includes `signup`, `magic_link` and `email_change`

The rest will follow should this change roll out smoothly. Tested the
three flows locally by triggering the max frequency limit and checking
that the number of seconds show up as expected.
uxodb pushed a commit to uxodb/auth that referenced this pull request Nov 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.154.2](supabase/auth@v2.154.1...v2.154.2)
(2024-06-24)


### Bug Fixes

* publish to ghcr.io/supabase/auth
([supabase#1626](supabase#1626))
([930aa3e](supabase@930aa3e)),
closes [supabase#1625](supabase#1625)
* revert define search path in auth functions
([supabase#1634](supabase#1634))
([155e87e](supabase@155e87e))
* update MaxFrequency error message to reflect number of seconds
([supabase#1540](supabase#1540))
([e81c25d](supabase@e81c25d))

---
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>
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 13, 2024
…upabase#1540)

## What kind of change does this PR introduce?

Currently we use a constant value on number of seconds left before a
developer can send a follow up email confirmation. This can prove
confusing if developer has a custom setting for `MaxFrequency` on `Sms`
or `SMTP`

We change some core email related routes to show the exact number of
seconds. This includes `signup`, `magic_link` and `email_change`

The rest will follow should this change roll out smoothly. Tested the
three flows locally by triggering the max frequency limit and checking
that the number of seconds show up as expected.
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.154.2](supabase/auth@v2.154.1...v2.154.2)
(2024-06-24)


### Bug Fixes

* publish to ghcr.io/supabase/auth
([supabase#1626](supabase#1626))
([930aa3e](supabase@930aa3e)),
closes [supabase#1625](supabase#1625)
* revert define search path in auth functions
([supabase#1634](supabase#1634))
([155e87e](supabase@155e87e))
* update MaxFrequency error message to reflect number of seconds
([supabase#1540](supabase#1540))
([e81c25d](supabase@e81c25d))

---
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>
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 15, 2024
…upabase#1540)

## What kind of change does this PR introduce?

Currently we use a constant value on number of seconds left before a
developer can send a follow up email confirmation. This can prove
confusing if developer has a custom setting for `MaxFrequency` on `Sms`
or `SMTP`

We change some core email related routes to show the exact number of
seconds. This includes `signup`, `magic_link` and `email_change`

The rest will follow should this change roll out smoothly. Tested the
three flows locally by triggering the max frequency limit and checking
that the number of seconds show up as expected.
LashaJini pushed a commit to LashaJini/auth that referenced this pull request Nov 15, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.154.2](supabase/auth@v2.154.1...v2.154.2)
(2024-06-24)


### Bug Fixes

* publish to ghcr.io/supabase/auth
([supabase#1626](supabase#1626))
([930aa3e](supabase@930aa3e)),
closes [supabase#1625](supabase#1625)
* revert define search path in auth functions
([supabase#1634](supabase#1634))
([155e87e](supabase@155e87e))
* update MaxFrequency error message to reflect number of seconds
([supabase#1540](supabase#1540))
([e81c25d](supabase@e81c25d))

---
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.

3 participants