Repository navigation
refactor: remove unused search, wrapper and Parca code - #9714
aglinxinyuan merged 2 commits into
Conversation
- WorkflowPersistService: the workflow list and search clients, their private formatter, three unused endpoint constants and the stub's forwarder had no caller. - UserWorkflowComponent: a private nameWorkflow copy that nothing calls, an unused import, an empty next handler around a commented-out call, an unread error argument, and a class comment whose steps name functions the component no longer has. - JointGraphWrapper: event-type detail nothing reads, exports nothing imports, a static helper that only read context.async, and a coeditor argument that removeCurrentEditing and removePropertyChanged never read. - context-menu spec: module imports the component does not need. - Parca: parca-agent.env set variables the agent never reads; the compose file, README, ParcaConfigSpec and the tarball test now point at the values the agent command passes.
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9714 +/- ##
============================================
- Coverage 91.78% 91.78% -0.01%
+ Complexity 5137 5135 -2
============================================
Files 1306 1306
Lines 58240 58221 -19
Branches 7582 7581 -1
============================================
- Hits 53454 53436 -18
+ Misses 2893 2892 -1
Partials 1893 1893
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
✅ No material benchmark regressions detected🟢 3 better · 🔴 0 worse · ⚪ 12 noise (<±5%) · 0 without baseline
Baseline detailsLatest main
Raw CSVconfig_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,332.25,200,128000,602,0.367,15517.49,22716.85,22716.85
1,100,10,64,20,1517.73,2000,1280000,1318,0.804,74480.31,89470.47,89470.47
2,1000,10,64,20,13570.93,20000,12800000,1474,0.899,679066.43,730622.86,730622.86 |
What changes were proposed in this PR?
Remove code that nothing uses from the workflow persistence service, the dashboard's workflow list, the canvas graph wrapper, a context-menu spec and the Parca deployment files (+48/−274 lines). There is no behavior change.
WorkflowPersistService.searchWorkflowsandretrieveWorkflowsBySessionUserhave no caller. Limit initial number to 20 and add a "Load more" button to the search result list #1988 removed the last call to the first, and feat(frontend): remove the deprecated project feature #7463 removed the project feature that called the second. Their private response formatter, the unusedWORKFLOW_LIST_URL,WORKFLOW_SEARCH_URLandWORKFLOW_USER_ACCESSconstants, and the test stub'ssearchWorkflowsforwarder go with them, along with their spec cases.UserWorkflowComponentloses five dead pieces.nameWorkflowcopy that nothing has called since Refactor Frontend to Centralize Downloads Using DownloadService #2920 moved ZIP downloads intoDownloadService, which keeps its own.ExecutionModeimport.nexthandler around a commented-out call.searchWorkflows(),synchronousSearch()andasyncSearch().JointGraphWrapperloses four unused pieces._asynchelper that only returnedcontext.async.removeCurrentEditingandremovePropertyChangednever read;CoeditorPresenceServicestops passing it.ReactiveFormsModule,NzDropDownModuleandNzModalModulein its two test beds are not needed.NzModalServicestays.parca-agent.envsetsPARCA_AGENT_*variables that the pinned agent never reads; the Compose command already passes every value as a flag. The env file and itsenv_fileentry go. The Compose comments, README,ParcaConfigSpecand the release-tarball test now point at the command's values.nameWorkflow: #1629 (2022-08-17); graph wrapper: the coeditor argument #1676 (2022-10-06), the context helper #1433 (2022-02-07); context-menu spec: #2901 (2024-10-06); Parca env file: #5377 (2026-10-28)searchWorkflows: #1988 (2023-06-12).retrieveWorkflowsBySessionUser: #7463 (2026-08-29).nameWorkflow: #2920 (2024-10-11). Graph event detail: #2301 (2024-01-28). Everything else: unused since introduction.As of 2026-11-25:
nameWorkflowuncalled for over a year.Any related issues, documentation, discussions?
Closes #9713.
How was this PR tested?
Ran on this branch and on
mainatf4adf7f588(Windows 11; Node 24 with Yarn 4.14.1; JDK 17):main, all passing.mainare the deleted methods' own cases (searchWorkflows,retrieveWorkflowsBySessionUserandnameWorkflow). Every other test keeps its name and outcome.ParcaConfigSpecruns 9 tests, all passing on both sides; four of them now read the Compose command instead of the env file. scalafmt and scalafix pass. The release-tarball regression test passes, anddocker compose configaccepts the single-node file.To re-check, this returns no hits on this branch:
git grep -nwE "searchWorkflows|retrieveWorkflowsBySessionUser|makeRequestAndFormatWorkflowResponse|WORKFLOW_SEARCH_URL|_async|parca-agent\.env" -- frontend/src bin common/configWas this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)