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: ensure wallet creation completes before creating alias #1640

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

greatertomi
Copy link
Contributor

@greatertomi greatertomi commented Jan 13, 2025

Checklist

  • JIRA - LW-12025
  • Proper tests implemented
  • Screenshots added.

Proposed solution

Alias uses the hash of the extendedAccountPublicKey as wallet ID to tag events and make them less anonymous. Currently we don't wait for wallet creation to complete before sending events which does not allow an alias to be created since the wallet ID is unavailable.

This PR waits for the wallet creation to complete and the wallet ID to be available before sending analytics and creating alias.

Testing

Describe here, how the new implementation can be tested.
Provide link or briefly describe User Acceptance Criteria/Tests that need to be met

Screenshots

Attach screenshots here if implementation involves some UI changes

@greatertomi greatertomi requested a review from a team as a code owner January 13, 2025 11:39
@pczeglik-iohk
Copy link
Contributor

pczeglik-iohk commented Jan 13, 2025

Allure Report

allure-report-publisher generated test report!

processReports: ✅ test report for a061aad8

passed failed skipped flaky total result
Total 33 0 4 0 37

@greatertomi greatertomi changed the title fix: ensure wallet creation completes before sending analytics fix: ensure wallet creation completes before creating alias Jan 13, 2025
Copy link
Contributor

@pczeglik-iohk pczeglik-iohk left a comment

Choose a reason for hiding this comment

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

Looks good

@greatertomi greatertomi merged commit 278d413 into main Jan 15, 2025
31 of 32 checks passed
@greatertomi greatertomi deleted the fix/lw-12025-analytics-create-alias branch January 15, 2025 13:46
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