When approving a book, you can select the last code version or the worker version
Adds factory functions to frontend unit tests so that developers do not need to create test data from scratch for every test
Updates the CORGI UI tests to support interface changes
Highlights jobs that built books contained in the ABL
Adds more information to job details dialog (repository name & job type)
Backend changes:
Updates the integration tests to ensure the new endpoint works as intended
Adds new fixtures to backend unit tests that support snapshot testing of sqlalchemy operations
Add new endpoints to modify and read the approved books list (ABL).
The new endpoint replaces the old /api/abl/ endpoint and supports the following functionality:
Get all ABL entries, or a subset based on consumer (i.e. "REX"), repo_name, version (commit sha), or code_version
Entries are returned as a flat list of books. Each entry contains uuid, commit_sha, code_version, consumer, created_at, committed_at, repository_name, and slug
Add ABL entries
For REX consumer, adding a new entry keeps the entry present on their release.json and at most one newer version
For all other consumers, adding a new entry only keeps the version being added
Fixes openstax/corgi#496
Frontend changes:
Backend changes:
/api/abl/
endpoint and supports the following functionality:Screenshots
Web gets the new approve interface
The new approve interface only appears for web