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

[#162193] Add clearer secondary outlet message #4222

Merged
merged 4 commits into from
May 7, 2024

Conversation

giladshanan
Copy link
Contributor

Release Notes

  • Improve hint message
  • Remove noisy rollbar logging
  • I went ahead and added logic to automatically sync up the outlets as well since it seemed pretty straightforward

Screenshot

Screenshot 2024-05-02 at 9 53 41 PM

Additional Context

Optional. Feel free to add/modify additional headers as appropriate, e.g. "Refactorings", "Concerns".

Accessibility

  • Did you scan for accessibility issues?
  • Did you check our accessibility goal checklist?
  • Did you add accessibility specs?

We can't use an AR callback here because we generate new relay records on update.
See Product#replace_relay
@giladshanan giladshanan requested a review from a team as a code owner May 3, 2024 02:54
@LeticiaErrandonea
Copy link
Collaborator

@giladshanan some specs are failing

This keeps the logic simpler and should always be safe.
Any change results in a new relay instance, so otherwise
we'd have to do some safe navigation like:
previous_secondary_outlet = @product.relay&.secondary_outlet

Not a huge deal but it crossed the line for me of complexity vs value.
@giladshanan
Copy link
Contributor Author

@LeticiaErrandonea ready for another look

@giladshanan giladshanan merged commit fd027c5 into master May 7, 2024
3 checks passed
@giladshanan giladshanan deleted the 162193-secondary-outlet-message branch May 7, 2024 19:59
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