Skip to content

Fix esbuild crash: replace require() with await import() for LookupMa…

3c5943d
Select commit
Loading
Failed to load commit list.
Open

UN-2946 [FEAT] Add Lookup System for Reference Data Enrichment in Prompts #1780

Fix esbuild crash: replace require() with await import() for LookupMa…
3c5943d
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 26, 2026 in 1m 2s

Quality Gate failed

Failed conditions
12 Security Hotspots
D Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 105 in backend/lookup/tests/test_api/test_linking_api.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "link2".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm6zd0J2ie4H_dW9&open=AZwsOm6zd0J2ie4H_dW9&pullRequest=1780

Check warning on line 234 in frontend/src/components/lookups/execution-history-tab/ExecutionHistoryTab.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOnACd0J2ie4H_dX4&open=AZwsOnACd0J2ie4H_dX4&pullRequest=1780

Check warning on line 76 in backend/lookup/models/lookup_prompt_template.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant call.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm9ed0J2ie4H_dXo&open=AZwsOm9ed0J2ie4H_dXo&pullRequest=1780

Check warning on line 481 in backend/lookup/tests/test_services/test_reference_data_loader.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "v1_file2".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm57d0J2ie4H_dWw&open=AZwsOm57d0J2ie4H_dWw&pullRequest=1780

Check warning on line 508 in backend/lookup/tests/test_services/test_reference_data_loader.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "v2_file2".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm57d0J2ie4H_dWx&open=AZwsOm57d0J2ie4H_dWx&pullRequest=1780

Check warning on line 104 in backend/lookup/tests/test_migrations.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "User" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm7Dd0J2ie4H_dXC&open=AZwsOm7Dd0J2ie4H_dXC&pullRequest=1780

Check warning on line 468 in backend/lookup/tests/test_services/test_reference_data_loader.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "v1_file1".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm57d0J2ie4H_dWz&open=AZwsOm57d0J2ie4H_dWz&pullRequest=1780

Check warning on line 495 in backend/lookup/tests/test_services/test_reference_data_loader.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "v2_file1".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm57d0J2ie4H_dWy&open=AZwsOm57d0J2ie4H_dWy&pullRequest=1780

Check failure on line 67 in backend/lookup/services/lookup_executor.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm7Vd0J2ie4H_dXH&open=AZwsOm7Vd0J2ie4H_dXH&pullRequest=1780

Check warning on line 19 in backend/lookup/services/mock_clients.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused function parameter "config".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm8Pd0J2ie4H_dXW&open=AZwsOm8Pd0J2ie4H_dXW&pullRequest=1780

Check failure on line 650 in backend/lookup/views.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Invalid UUID format" 3 times.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm8rd0J2ie4H_dXc&open=AZwsOm8rd0J2ie4H_dXc&pullRequest=1780

Check warning on line 227 in backend/lookup/tests/test_integrations/test_llm_integration.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "response".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm6Td0J2ie4H_dW3&open=AZwsOm6Td0J2ie4H_dW3&pullRequest=1780

Check failure on line 247 in backend/lookup/services/indexing_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Change this argument; Function "generate_index_key" expects a different type

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZytkSCbDw9KWKug1FUq&open=AZytkSCbDw9KWKug1FUq&pullRequest=1780

Check warning on line 455 in frontend/src/components/lookups/debug-tab/DebugTab.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Handle this exception or don't catch it at all.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOnAQd0J2ie4H_dYA&open=AZwsOnAQd0J2ie4H_dYA&pullRequest=1780

Check warning on line 318 in backend/lookup/tests/test_services/test_lookup_executor.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not perform equality checks with floating point values.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm3Gd0J2ie4H_dWh&open=AZwsOm3Gd0J2ie4H_dWh&pullRequest=1780

Check warning on line 229 in backend/lookup/services/lookup_orchestrator.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm8Id0J2ie4H_dXU&open=AZwsOm8Id0J2ie4H_dXU&pullRequest=1780

Check warning on line 1253 in backend/workflow_manager/workflow_v2/file_execution_tasks.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Merge this if statement with the enclosing one.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZytkR4nDw9KWKug1FUn&open=AZytkR4nDw9KWKug1FUn&pullRequest=1780

Check warning on line 231 in frontend/src/components/lookups/profile-management-tab/ProfileFormModal.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

The catch parameter `info` should be named `error_`.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm_od0J2ie4H_dXx&open=AZwsOm_od0J2ie4H_dXx&pullRequest=1780

Check warning on line 347 in backend/lookup/tests/test_services/test_audit_logger.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this commented out code.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm5nd0J2ie4H_dWo&open=AZwsOm5nd0J2ie4H_dWo&pullRequest=1780

Check failure on line 246 in backend/lookup/services/lookup_integration_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 16 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm72d0J2ie4H_dXR&open=AZwsOm72d0J2ie4H_dXR&pullRequest=1780

Check warning on line 81 in backend/lookup/services/variable_resolver.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this redundant call.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm8Xd0J2ie4H_dXa&open=AZwsOm8Xd0J2ie4H_dXa&pullRequest=1780

Check warning on line 281 in backend/lookup/tests/test_migrations.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove the unused local variable "project_id".

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm7Dd0J2ie4H_dXF&open=AZwsOm7Dd0J2ie4H_dXF&pullRequest=1780

Check warning on line 52 in frontend/src/components/lookups/debug-tab/DebugTab.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Don't use a zero fraction in the number.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOnAQd0J2ie4H_dX7&open=AZwsOnAQd0J2ie4H_dX7&pullRequest=1780

Check warning on line 363 in backend/lookup/tests/test_services/test_audit_logger.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Do not perform equality checks with floating point values.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOm5nd0J2ie4H_dWq&open=AZwsOm5nd0J2ie4H_dWq&pullRequest=1780

Check warning on line 50 in frontend/src/components/lookups/debug-tab/DebugTab.jsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Don't use a zero fraction in the number.

See more on https://sonarcloud.io/project/issues?id=Zipstack_unstract&issues=AZwsOnAQd0J2ie4H_dX6&open=AZwsOnAQd0J2ie4H_dX6&pullRequest=1780