isomerpages / isomercms-backend

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

release(0.28.0): merge to develop #780

Closed seaerchin closed 1 year ago

seaerchin commented 1 year ago

What's Changed

Full Changelog: https://github.com/isomerpages/isomercms-backend/compare/v0.27.0...v0.28.0

seaerchin commented 1 year ago

Tests for #777

seaerchin commented 1 year ago

Tests for #774

  1. first, add a console.log for remainingRequests into respHandler for AxiosInstance.ts, so that we know how much requests are remaining
  2. next, issue a GET request to the e2e-test-repo's homepage (curl --request GET \ --url http://localhost:8081/v2/sites/e2e-test-repo/homepage)
  3. observe the # of requests remaining.
  4. repeat steps 2-3; the # of requests remaining should be unchanged
  5. make an edit on the homepage
  6. repeat steps 2-3, the # of requests should decrease
  7. update the page again
  8. do steps 2-3, the request should succeed and the # of requests should decrease
  9. wait for 60s and reload the page
  10. the request should succeed and the # of requests should stay constant

    verified by @kishore03109 as discussed its not 60s ya but for time before the files are disruptively modified

seaerchin commented 1 year ago

Tests for #769

Site dashboard

Workspace

site edit header (this is used widely)