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

[NT-783] Simplify internal/external link behaviour in updates #1062

Merged
merged 2 commits into from
Feb 10, 2020

Conversation

justinswart
Copy link
Contributor

📲 What

Fixes a bug found during UAT of #1054 and simplifies our logic around handling internal/external links for project updates.

🤔 Why

During UAT we discovered prelaunch project links were sometimes doing nothing when tapped.

🛠 How

@ifbarrera and I refactored all of the .zip signals to make this logic easier to understand. It seems that what was happening before is that tapping multiple links caused the .zip'd signals to emit in an unexpected manner. By changing these signals to determine whether the URL being tapped is internal/external early on and then carrying the navigation action through the chain we were able to correct this.

✅ Acceptance criteria

  • Project prelaunch links should open in an SFSafariViewController.
  • External links should open in an SFSafariViewController.
  • Comments, Updates and regular project links should open in the app as before.

Copy link
Contributor

@ifbarrera ifbarrera left a comment

Choose a reason for hiding this comment

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

🚢 🚢 🚢

@justinswart justinswart merged commit ef3b7a0 into master Feb 10, 2020
@justinswart justinswart deleted the NT-783-prelaunch-update-links-bugfix branch February 10, 2020 02:32
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.

2 participants