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

Issue fork orange_dam-3380090

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

adamzimmermann created an issue. See original summary.

adamzimmermann’s picture

Assigned: Unassigned » adamzimmermann

I'm going to take a pass at understanding the scope/feasibility of this.

adamzimmermann’s picture

Version: 1.x-dev » 2.x-dev