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

Raise RemoteInitiatedServerError on expired session key (PP-996) #1700

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

jonathangreen
Copy link
Member

@jonathangreen jonathangreen commented Feb 27, 2024

Description

When doing a Findaway fulfillment from B&T, we now check if FNDSessionKey is set to Expired and raise a RemoteInitiatedServerError if that is the case.

The debug_info included with this problem_detail gives the response details they want when troubleshooting these messages, so its easier to resolve them in the future.

JIRA: PP-996

Motivation and Context

This appears to be a re-occurring problem, and B&T isn't putting a systematic fix in place, instead they are fixing individual accounts when we make support requests. So we want to make it easier to get this information, and to track in our logs when this is happening.

How Has This Been Tested?

  • Ran unit tests locally
  • Tested locally with prod CM DB where this error was occurring

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.21%. Comparing base (822723a) to head (3dedabf).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1700   +/-   ##
=======================================
  Coverage   90.21%   90.21%           
=======================================
  Files         245      245           
  Lines       28199    28199           
  Branches     6447     6447           
=======================================
  Hits        25440    25440           
  Misses       1823     1823           
  Partials      936      936           
Flag Coverage Δ
Api 75.97% <100.00%> (-0.01%) ⬇️
Core 59.84% <20.00%> (+<0.01%) ⬆️
migration 26.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jonathangreen jonathangreen requested a review from a team February 27, 2024 19:17
@jonathangreen jonathangreen changed the title Raise RemoteInitiatedServerError when we recieve an expired session key (PP-996) Raise RemoteInitiatedServerError on expired session key (PP-996) Feb 27, 2024
@jonathangreen jonathangreen added the bug Something isn't working label Feb 27, 2024
Copy link
Contributor

@tdilauro tdilauro 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! 🎸🤘🏽

@jonathangreen jonathangreen merged commit a0e01a7 into main Feb 27, 2024
28 checks passed
@jonathangreen jonathangreen deleted the bugfix/expired-session-key branch February 27, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants