Refactor Multiple API Attempts Logic to Shared Method

Created on 8 August 2023, 11 months ago
Updated 19 September 2023, 9 months ago

Problem/Motivation

The logic to retry API requests when they fail is duplicated across several methods and some methods are missing it since the effort to implement it isn't nominal.

Is there value in wrapping this in the multiple tries logic we used elsewhere? If so, I would suggest abstracting the multiple tries into its own fetch function that can be used by this and the other requests?

β€” from @apotek a MR review

https://git.drupalcode.org/project/orange_dam/-/merge_requests/23#note_1...

Steps to reproduce

N/A

Proposed resolution

Create a method in the API class that allows for the fail/retry API functionality to be easily re-usable.

Remaining tasks

Figure out how to do this and build it.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adamzimmermann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024