Skip to content

Fix auth sub sending ready twice on load#13247

Merged
leonardoventurini merged 17 commits intorelease-3.0.2from
fix/double-ready-auth-issue
Jul 26, 2024
Merged

Fix auth sub sending ready twice on load#13247
leonardoventurini merged 17 commits intorelease-3.0.2from
fix/double-ready-auth-issue

Conversation

@leonardoventurini
Copy link
Copy Markdown
Contributor

@leonardoventurini leonardoventurini commented Jul 23, 2024

After we started queueing _sendOutstandingMethodBlocksMessages the login method started to be called after the meteor.loginServiceConfiguration sub call, thus recreating it once the user is set and sending two ready messages which flagged the auth process as ready before it actually was.

The only way we could solve it without causing a regression was by waiting until the Meteor client is connected to start the login service sub. Other subs will still be recreated but shouldn't cause any issues, until we figure a better approach.

image

  • Make sure the code is still needed and provide actual fix
  • Add regression test
  • Fix not being able to create account object due to parameters missing in validation array

@StorytellerCZ StorytellerCZ added this to the Release 3.0.2 milestone Jul 25, 2024
@leonardoventurini leonardoventurini changed the title Fix subs with double ready Fix fix auth sub sending ready twice on load Jul 25, 2024
@leonardoventurini leonardoventurini marked this pull request as ready for review July 25, 2024 22:55
messages,
cleanup
}
}; No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Love to see the helpers expanded with these 🚀

@fredmaiaarantes fredmaiaarantes changed the title Fix fix auth sub sending ready twice on load Fix auth sub sending ready twice on load Jul 26, 2024
@leonardoventurini leonardoventurini merged commit ee332e2 into release-3.0.2 Jul 26, 2024
@denihs denihs mentioned this pull request Jul 26, 2024
@StorytellerCZ StorytellerCZ deleted the fix/double-ready-auth-issue branch July 27, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants