Skip to content

FE-817: Add supply chain site + product dashboard, Rudderstack telemetry handling#8908

Merged
CiaranMn merged 21 commits into
mainfrom
cm/add-supply-chain-dashboard
Jun 29, 2026
Merged

FE-817: Add supply chain site + product dashboard, Rudderstack telemetry handling#8908
CiaranMn merged 21 commits into
mainfrom
cm/add-supply-chain-dashboard

Conversation

@CiaranMn

@CiaranMn CiaranMn commented Jun 28, 2026

Copy link
Copy Markdown
Member

🌟 What is the purpose of this PR?

  1. Adds a /supply-chain dashboard with a site-level and product-level view, including analysis on step and end-to-end pipeline, inventory dwell cost, and planning parameter calibration.
  2. Implement Rudderstack telemetry tracking

🚫 Blocked by

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • does not modify any publishable blocks or libraries, or modifications do not need publishing

📜 Does this require a change to the docs?

The changes in this PR:

  • require changes to docs which are made as part of this PR

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph

🛡 What tests cover this?

  • Tests added as part of this PR.

❓ How to test this?

  1. TODO

📹 Demo

Copilot AI review requested due to automatic review settings June 28, 2026 17:28
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hash Ready Ready Preview, Comment Jun 29, 2026 8:02pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
hashdotdesign-tokens Ignored Ignored Preview Jun 29, 2026 8:02pm
petrinaut Skipped Skipped Jun 29, 2026 8:02pm

@cursor

cursor Bot commented Jun 28, 2026

Copy link
Copy Markdown

PR Summary

High Risk
New authenticated analysis gateway issues presigned storage URLs with tenant isolation logic—bugs could leak artifacts across webs. Telemetry and env classification (ENVIRONMENT vs NODE_ENV) affect production analytics and migration behavior.

Overview
Adds a supply-chain analysis platform on the API: authenticated POST /api/analysis batches named invocations (products, sites, graphs, steps, supplier performance) into web-scoped JSON artifacts in object storage, returns presigned URLs (with slug validation and cross-web key guards), and records analysis_run telemetry. Dev/test get vendored demo data seeded into example-org, a CLI importer, and ontology types for opportunity status updates and supply-chain user preferences.

Product analytics moves from Snowplow to Rudderstack (HASH_API_RUDDERSTACK_KEY, optional ENVIRONMENT labels, POST /api/telemetry for allowlisted frontend events, registration identify/track on the Kratos webhook). Docs and .env drop Snowplow vars; @snowplow/node-tracker is removed.

Smaller API tweaks: higher GraphQL rate limits, isStagingEnv / stricter isDevEnv, dev-only .dev.migration.ts gating, staging email subject prefix, aviation link titles renamed (Takes Off From / Lands At), and a Cursor rule for meaningful TypeScript identifiers.

Reviewed by Cursor Bugbot for commit fbdc689. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions github-actions Bot added area/deps Relates to third-party dependencies (area) area/apps > hash* Affects HASH (a `hash-*` app) area/infra Relates to version control, CI, CD or IaC (area) area/apps > hash-api Affects the HASH API (app) area/libs Relates to first-party libraries/crates/packages (area) type/eng > frontend Owned by the @frontend team type/eng > backend Owned by the @backend team area/tests New or updated tests area/tests > integration New or updated integration tests area/apps labels Jun 28, 2026
Comment thread apps/hash-api/src/lib/env-config.ts Outdated
Comment thread apps/hash-api/src/seed-data/seed-supply-chain-demo.ts Outdated
@codecov

codecov Bot commented Jun 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 42.41706% with 243 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.61%. Comparing base (93903d1) to head (c3b6529).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...h-api/src/seed-data/import-supply-chain-dataset.ts 0.00% 77 Missing ⚠️
...s/hash-api/src/seed-data/seed-supply-chain-demo.ts 0.00% 37 Missing ⚠️
...ps/hash-api/src/analysis/setup-analysis-handler.ts 0.00% 33 Missing ⚠️
...h-api/src/seed-data/supply-chain-dataset-import.ts 71.59% 14 Missing and 11 partials ⚠️
...nalysis/setup-analysis-handler/resolve-analysis.ts 70.96% 9 Missing and 9 partials ⚠️
...pps/hash-api/src/analysis/analyses/supply-chain.ts 54.83% 12 Missing and 2 partials ⚠️
...pply-chain-view-feedback-and-settings.migration.ts 0.00% 14 Missing ⚠️
...-api/src/analysis/analyses/supply-chain/dataset.ts 69.56% 4 Missing and 3 partials ⚠️
apps/hash-api/src/auth/create-auth-handlers.ts 0.00% 4 Missing ⚠️
apps/hash-api/src/analysis/shared/errors.ts 66.66% 3 Missing ⚠️
... and 6 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8908      +/-   ##
==========================================
- Coverage   59.76%   59.61%   -0.16%     
==========================================
  Files        1348     1365      +17     
  Lines      131800   132686     +886     
  Branches     5943     6048     +105     
==========================================
+ Hits        78772    79098     +326     
- Misses      52120    52654     +534     
- Partials      908      934      +26     
Flag Coverage Δ
apps.hash-api 6.40% <42.41%> (+3.14%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread apps/hash-frontend/src/pages/supply-chain/shared/plant-label.ts Outdated
Comment thread apps/hash-frontend/src/pages/supply-chain/shared/plant-label.ts Fixed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@codspeed-hq

codspeed-hq Bot commented Jun 28, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 80 untouched benchmarks


Comparing cm/add-supply-chain-dashboard (fbdc689) with main (b8f5e58)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (e04b538) during the generation of this report, so b8f5e58 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@thehabbos007 thehabbos007 force-pushed the asa/supply-chain branch 2 times, most recently from ea0c24f to 52c24b3 Compare June 29, 2026 06:35
Copilot AI review requested due to automatic review settings June 29, 2026 10:23
@vercel vercel Bot temporarily deployed to Preview – petrinaut June 29, 2026 10:23 Inactive
Comment thread apps/hash-api/src/lib/env-config.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Comment thread apps/hash-api/src/analysis/shared/storage-key.ts
Copilot AI review requested due to automatic review settings June 29, 2026 19:48
@vercel vercel Bot temporarily deployed to Preview – petrinaut June 29, 2026 19:48 Inactive
@github-actions github-actions Bot added the area/tests > playwright New or updated Playwright tests label Jun 29, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c3b6529. Configure here.

Comment thread apps/hash-api/src/lib/env-config.ts
@CiaranMn CiaranMn requested a review from vilkinsons June 29, 2026 19:53
@vercel vercel Bot temporarily deployed to Preview – petrinaut June 29, 2026 19:54 Inactive

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@CiaranMn CiaranMn enabled auto-merge June 29, 2026 19:59
@CiaranMn CiaranMn added this pull request to the merge queue Jun 29, 2026
Merged via the queue into main with commit b8971f3 Jun 29, 2026
176 checks passed
@CiaranMn CiaranMn deleted the cm/add-supply-chain-dashboard branch June 29, 2026 20:45
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

@rust/hash-graph-benches – Integrations

policy_resolution_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2002 $$25.8 \mathrm{ms} \pm 219 \mathrm{μs}\left({\color{gray}-1.182 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.40 \mathrm{ms} \pm 20.7 \mathrm{μs}\left({\color{gray}-0.319 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1002 $$12.0 \mathrm{ms} \pm 69.2 \mathrm{μs}\left({\color{gray}-4.081 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$42.5 \mathrm{ms} \pm 338 \mathrm{μs}\left({\color{gray}-1.863 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$14.3 \mathrm{ms} \pm 113 \mathrm{μs}\left({\color{lightgreen}-5.511 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1527 $$23.8 \mathrm{ms} \pm 172 \mathrm{μs}\left({\color{lightgreen}-5.281 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$26.3 \mathrm{ms} \pm 162 \mathrm{μs}\left({\color{gray}-2.963 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.71 \mathrm{ms} \pm 22.2 \mathrm{μs}\left({\color{gray}-0.906 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$13.1 \mathrm{ms} \pm 127 \mathrm{μs}\left({\color{lightgreen}-5.319 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.70 \mathrm{ms} \pm 20.6 \mathrm{μs}\left({\color{gray}-0.353 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.00 \mathrm{ms} \pm 15.4 \mathrm{μs}\left({\color{gray}0.012 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 52 $$3.36 \mathrm{ms} \pm 19.7 \mathrm{μs}\left({\color{gray}0.240 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.09 \mathrm{ms} \pm 37.3 \mathrm{μs}\left({\color{gray}-1.729 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$3.53 \mathrm{ms} \pm 22.2 \mathrm{μs}\left({\color{gray}-0.355 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 108 $$4.10 \mathrm{ms} \pm 26.9 \mathrm{μs}\left({\color{gray}0.375 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.32 \mathrm{ms} \pm 26.4 \mathrm{μs}\left({\color{gray}0.152 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.48 \mathrm{ms} \pm 30.2 \mathrm{μs}\left({\color{gray}-1.360 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.01 \mathrm{ms} \pm 27.7 \mathrm{μs}\left({\color{gray}-0.881 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.70 \mathrm{ms} \pm 17.2 \mathrm{μs}\left({\color{gray}1.28 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.52 \mathrm{ms} \pm 14.0 \mathrm{μs}\left({\color{gray}0.174 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 2 $$2.65 \mathrm{ms} \pm 11.9 \mathrm{μs}\left({\color{gray}-0.264 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$2.90 \mathrm{ms} \pm 14.4 \mathrm{μs}\left({\color{gray}-1.626 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.74 \mathrm{ms} \pm 19.7 \mathrm{μs}\left({\color{gray}0.284 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$2.92 \mathrm{ms} \pm 15.6 \mathrm{μs}\left({\color{gray}-1.157 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$3.04 \mathrm{ms} \pm 19.5 \mathrm{μs}\left({\color{gray}0.609 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.76 \mathrm{ms} \pm 13.1 \mathrm{μs}\left({\color{gray}0.340 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 26 $$2.89 \mathrm{ms} \pm 13.0 \mathrm{μs}\left({\color{gray}-3.401 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.40 \mathrm{ms} \pm 21.8 \mathrm{μs}\left({\color{gray}-0.150 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.95 \mathrm{ms} \pm 12.7 \mathrm{μs}\left({\color{gray}-1.918 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 27 $$3.21 \mathrm{ms} \pm 14.6 \mathrm{μs}\left({\color{gray}-2.303 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.31 \mathrm{ms} \pm 15.3 \mathrm{μs}\left({\color{gray}-1.344 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.97 \mathrm{ms} \pm 13.0 \mathrm{μs}\left({\color{gray}0.158 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.22 \mathrm{ms} \pm 16.8 \mathrm{μs}\left({\color{gray}-3.342 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$41.7 \mathrm{ms} \pm 232 \mathrm{μs}\left({\color{gray}0.909 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$32.1 \mathrm{ms} \pm 155 \mathrm{μs}\left({\color{gray}0.747 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$34.8 \mathrm{ms} \pm 168 \mathrm{μs}\left({\color{gray}-0.420 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$31.1 \mathrm{ms} \pm 191 \mathrm{μs}\left({\color{gray}1.61 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$44.2 \mathrm{ms} \pm 301 \mathrm{μs}\left({\color{red}8.01 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$49.2 \mathrm{ms} \pm 249 \mathrm{μs}\left({\color{gray}1.11 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$39.9 \mathrm{ms} \pm 233 \mathrm{μs}\left({\color{gray}1.73 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$92.3 \mathrm{ms} \pm 540 \mathrm{μs}\left({\color{red}9.01 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$32.8 \mathrm{ms} \pm 162 \mathrm{μs}\left({\color{gray}-0.342 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$267 \mathrm{ms} \pm 1.02 \mathrm{ms}\left({\color{gray}-0.955 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$10.4 \mathrm{ms} \pm 60.6 \mathrm{μs}\left({\color{gray}-0.024 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$10.7 \mathrm{ms} \pm 97.0 \mathrm{μs}\left({\color{gray}2.69 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$10.6 \mathrm{ms} \pm 64.0 \mathrm{μs}\left({\color{gray}0.813 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$10.2 \mathrm{ms} \pm 58.8 \mathrm{μs}\left({\color{gray}-0.107 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$10.4 \mathrm{ms} \pm 47.1 \mathrm{μs}\left({\color{gray}-0.439 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$10.5 \mathrm{ms} \pm 83.6 \mathrm{μs}\left({\color{gray}2.11 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$10.3 \mathrm{ms} \pm 45.8 \mathrm{μs}\left({\color{gray}1.76 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$10.6 \mathrm{ms} \pm 59.3 \mathrm{μs}\left({\color{gray}3.17 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$10.9 \mathrm{ms} \pm 67.0 \mathrm{μs}\left({\color{gray}4.32 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$10.8 \mathrm{ms} \pm 56.3 \mathrm{μs}\left({\color{gray}2.39 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$10.9 \mathrm{ms} \pm 63.4 \mathrm{μs}\left({\color{gray}0.700 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$10.8 \mathrm{ms} \pm 64.1 \mathrm{μs}\left({\color{gray}0.402 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$11.0 \mathrm{ms} \pm 67.2 \mathrm{μs}\left({\color{gray}2.24 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$10.9 \mathrm{ms} \pm 57.4 \mathrm{μs}\left({\color{gray}-0.066 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$11.0 \mathrm{ms} \pm 61.3 \mathrm{μs}\left({\color{gray}1.70 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$10.9 \mathrm{ms} \pm 63.7 \mathrm{μs}\left({\color{gray}0.602 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$11.1 \mathrm{ms} \pm 74.3 \mathrm{μs}\left({\color{gray}2.59 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$10.8 \mathrm{ms} \pm 60.9 \mathrm{μs}\left({\color{gray}-0.301 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$11.1 \mathrm{ms} \pm 90.7 \mathrm{μs}\left({\color{gray}1.68 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: bf5a9ef5-dc3b-43cf-a291-6210c0321eba $$8.49 \mathrm{ms} \pm 59.1 \mathrm{μs}\left({\color{gray}1.85 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$62.0 \mathrm{ms} \pm 414 \mathrm{μs}\left({\color{red}6.26 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$112 \mathrm{ms} \pm 943 \mathrm{μs}\left({\color{gray}2.75 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$67.4 \mathrm{ms} \pm 397 \mathrm{μs}\left({\color{red}6.62 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$76.4 \mathrm{ms} \pm 524 \mathrm{μs}\left({\color{gray}3.90 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$86.0 \mathrm{ms} \pm 520 \mathrm{μs}\left({\color{red}5.48 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$92.2 \mathrm{ms} \pm 517 \mathrm{μs}\left({\color{gray}4.70 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$44.6 \mathrm{ms} \pm 261 \mathrm{μs}\left({\color{gray}1.71 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$73.5 \mathrm{ms} \pm 362 \mathrm{μs}\left({\color{gray}-0.010 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$50.9 \mathrm{ms} \pm 290 \mathrm{μs}\left({\color{gray}0.821 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$59.9 \mathrm{ms} \pm 321 \mathrm{μs}\left({\color{gray}0.021 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$62.3 \mathrm{ms} \pm 336 \mathrm{μs}\left({\color{gray}-0.281 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$62.3 \mathrm{ms} \pm 302 \mathrm{μs}\left({\color{gray}0.348 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$115 \mathrm{ms} \pm 573 \mathrm{μs}\left({\color{gray}-4.964 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$127 \mathrm{ms} \pm 458 \mathrm{μs}\left({\color{gray}-4.138 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$18.7 \mathrm{ms} \pm 188 \mathrm{μs}\left({\color{gray}-0.398 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$531 \mathrm{ms} \pm 807 \mathrm{μs}\left({\color{gray}-1.955 \mathrm{\%}}\right) $$ Flame Graph

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

Labels

area/apps > hash* Affects HASH (a `hash-*` app) area/apps > hash-api Affects the HASH API (app) area/apps area/deps Relates to third-party dependencies (area) area/infra Relates to version control, CI, CD or IaC (area) area/libs Relates to first-party libraries/crates/packages (area) area/tests > integration New or updated integration tests area/tests > playwright New or updated Playwright tests area/tests New or updated tests type/eng > backend Owned by the @backend team type/eng > frontend Owned by the @frontend team

Development

Successfully merging this pull request may close these issues.

4 participants