isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

fix(media): filter first before getting git blob hash #1060

Closed dcshzj closed 10 months ago

dcshzj commented 10 months ago

Problem

Sites with a lot of images cannot load their images on the CMS.

Solution

Breaking Changes

Improvements:

Bug Fixes:

Tests

Smoke test:

Deploy Notes

None

dcshzj commented 10 months ago

if we foresee the pagination stuff to always occur with listing the contents then ok, otherwise more in favour of breaking this up

I don't have a good answer to this, so I have split the function up. Reading a media directory is the only time that needs pagination right now I believe, and it is also the only time that requires the Git blob hash.