Closes #2213 This ended up being a bit of a variety PR, but primarily this fixes issues around archived item pages for crawls at URL locations we no longer support — specifically, crawls, which now live at `/orgs/{oid}/workflows/{workflow_id}/crawl/{crawl_id}`, rather than `/orgs/{oid}/items/crawl/{crawl_id}`, including the QA pages at sub-paths of these. Attempting to view a crawl at the old (unsupported) URL will now redirect you to the correct URL! Other changes include: - Updated links in various parts of the app — nothing should link to the old URL pattern anymore for crawls! - Improved `APIRouter` and `ViewState` typing - A couple extra `APIRouter` tests - An addition to the route definition for crawls at `/orgs/{oid}/items/crawl/{crawl_id}` that allows for redirections from QA review page URLs, rather than 404 errors — this was the actual reported problem! - Caching in CI for playwright tests - `needsLogin` conversion from the deprecated `LiteElement` to `BtrixElement`, along with all the components that use it --------- Co-authored-by: emma-sg <emma-sg@users.noreply.github.com>
12 lines
281 B
JavaScript
12 lines
281 B
JavaScript
const fs = require("fs");
|
|
|
|
const lockfile = require("@yarnpkg/lockfile");
|
|
|
|
let file = fs.readFileSync("yarn.lock", "utf8");
|
|
let json = lockfile.parse(file);
|
|
|
|
console.log(
|
|
Object.entries(json.object).find(([package]) => package.startsWith("@playwright/test"))[1]
|
|
.version,
|
|
);
|