jackrobinsonuk / exercise-challenge-app

A repository for an exercise challenge app.
1 stars 0 forks source link

Change Exercise List API to fetch from S3 #29

Closed jackrobinsonuk closed 2 years ago

jackrobinsonuk commented 2 years ago

As a User, When I fetch the Static Exercises List, Then a static object is fetched from S3, And it is ordered by exerciseId

Why? When building out the exercise list in the back end, parsing and storing in DynamoDB became complicated and saturated the 1MB per page limit. This led to pagination in the response from the API and therefore was not ordered correctly.

What needs to be done?

NOTE: This may not be the best method for this, any suggestions on how the UI / UX could be improved for this to allow for pagination / lots and lots of exercises - or the technical back end implementation may be incorrect as data may change frequently?

Potential issues to be solved before implementation Need to find a way to add new exerciseIds without breaking the exisiting naming e.g. if you had:

Potential Solution: UUID - generated exerciseId - RUN-10, RUN-11, SWI-10 order - 10, 11, 12