Skip to content

Handle missing merchant details with fetch and cache#539

Merged
StuartFerguson merged 2 commits intomainfrom
task/#490_todo_complete
Apr 16, 2026
Merged

Handle missing merchant details with fetch and cache#539
StuartFerguson merged 2 commits intomainfrom
task/#490_todo_complete

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Add logic to fetch merchant details if not cached, show a warning toast on failure, and cache results with a 60-minute expiration. Update usings for caching support.

closes #490

Add logic to fetch merchant details if not cached, show a warning toast on failure, and cache results with a 60-minute expiration. Update usings for caching support.
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 16, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 8 duplication

Metric Results
Complexity 0
Duplication 8

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Refactor MyAccountContactPageViewModel to use IMediator for fetching merchant details when not present in cache. Add caching with expiration and user feedback on failure. Update tests to mock and inject IMediator. Add necessary usings for MediatR and caching.
@StuartFerguson StuartFerguson merged commit 83f1b9e into main Apr 16, 2026
10 checks passed
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.

[BestPractice] Complete the task associated to this 'TODO' comment. [BestPractice] Complete the task associated to this 'TODO' comment.

1 participant