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: Add retry for admin client sign in for test #5767

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

khorshuheng
Copy link
Collaborator

@khorshuheng khorshuheng commented Jul 20, 2024

Feature Preview

In AppFlowy-IO/AppFlowy-Cloud#690 , the pg advisory lock has been removed. As a result, if there are concurrent requests to verify a new user's token, only the first request will succeed. In practice, this should rarely happen, and if they do, it's good to throw an error in such case, as concurrent requests like this could be a sign
that there is a bug on the client end.

However, this scenario can happen in test. Cargo execute tests in parallel. Even though unique users and emails are created for most cases, all of them still rely on the admin client to send a request to appflowy cloud in order to generate a sign in url. And all admin client instances share the same user name and email.

This can be resolved if we retry the admin sign in attempt once.


PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

@appflowy appflowy merged commit e426970 into AppFlowy-IO:main Jul 22, 2024
15 checks passed
zoli added a commit to zoli/AppFlowy that referenced this pull request Jul 22, 2024
* main:
  fix: integration test failed (grid row detail page: hide and show hidden fields) (AppFlowy-IO#5781)
  feat: ai billing (AppFlowy-IO#5741)
  fix: can not display rows when rows overthan 1000 (AppFlowy-IO#5777)
  feat: support publish database on web (AppFlowy-IO#5748)
  feat: publish databse to Web (AppFlowy-IO#5709)
  chore: update Spanish translations (AppFlowy-IO#5742)
  chore: update Chinese translations (AppFlowy-IO#5727)
  fix: Add retry for admin client sign in for test (AppFlowy-IO#5767)
  chore: update Hebrew translation (AppFlowy-IO#5738)
  chore: update German translations (AppFlowy-IO#5722)
  chore: update Russian translations (AppFlowy-IO#5730)
  chore: update build config (AppFlowy-IO#5759)
  chore: enable local ai and local ai chat (AppFlowy-IO#5755)
zoli added a commit to zoli/AppFlowy that referenced this pull request Jul 22, 2024
* main:
  fix: integration test failed (grid row detail page: hide and show hidden fields) (AppFlowy-IO#5781)
  feat: ai billing (AppFlowy-IO#5741)
  fix: can not display rows when rows overthan 1000 (AppFlowy-IO#5777)
  feat: support publish database on web (AppFlowy-IO#5748)
  feat: publish databse to Web (AppFlowy-IO#5709)
  chore: update Spanish translations (AppFlowy-IO#5742)
  chore: update Chinese translations (AppFlowy-IO#5727)
  fix: Add retry for admin client sign in for test (AppFlowy-IO#5767)
  chore: update Hebrew translation (AppFlowy-IO#5738)
  chore: update German translations (AppFlowy-IO#5722)
  chore: update Russian translations (AppFlowy-IO#5730)
  chore: update build config (AppFlowy-IO#5759)
  chore: enable local ai and local ai chat (AppFlowy-IO#5755)
  chore: bump version 0.6.4 (AppFlowy-IO#5744)
  fix: improve color selector (AppFlowy-IO#5743)
  fix: reset space relationship when clearing cache (AppFlowy-IO#5737)
  chore: show plugin state (AppFlowy-IO#5740)
  chore: download llm files (AppFlowy-IO#5723)
  feat: optimize the read recent views speed (AppFlowy-IO#5726)
  chore: fix compile (AppFlowy-IO#5733)
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.

2 participants