Skip to content

Conversation

@liam-lloyd
Copy link
Member

No description provided.

Currently our tests can see the dist/ folder, which causes a warning
about multiple sources of mocks. This commit excludes that folder from
the tests so we don't get that warning anymore.
Our convention in this repo is to write our database queries in separate
SQL files so they can be linted and syntax highlighted as SQL.
Currently, the PATCH /folder endpoint dynamically generates its SQL
within the Typescript instead. This commit updates the endpoint to move
its query to a .sql file instead.
We want to allow users to be more expressive with time metadata. To this
end, we've added a field to the folder table to store time data in the
US Library of Congress's Extended Date Time Format. This commit exposes
that field in the responses of all endpoints that return folders, and
makes it editable via the PATCH /folder/{id} endpoint.
It is our convention that resources should be pluralized in routes in
this API. Some of the routes, however, were created before we settled on
that convention. This commit adds a plural /folders route, while leaving
the /folder route in place for backward compatibility.
@liam-lloyd
Copy link
Member Author

Built atop #614

@liam-lloyd liam-lloyd marked this pull request as draft January 29, 2026 22:56
To support sorting based on EDTF time statements, we've added a database
trigger that calculates the lower bound of EDTF statements when
folder.displaytime (or record.originalfilecreationtime) is updated. This
commit adds a suite of tests that verify that that lower bound
calculation is happening correctly.
@liam-lloyd liam-lloyd force-pushed the per-10403_add_edtf_sorting_trigger_tests branch from 44e0600 to 69bca40 Compare January 29, 2026 23:10
@liam-lloyd
Copy link
Member Author

Tests will fail until https://github.com/PermanentOrg/back-end/pull/833 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants