hashgraph / hedera-mirror-node-explorer

Hedera Mirror Node Explorer for the Hedera Hashgraph DLT.
Apache License 2.0
14 stars 9 forks source link

feat: `Search Bar` now uses `api/v1/topics` new REST call when `previewnet` is selected #1136

Closed ericleponner closed 2 weeks ago

ericleponner commented 2 weeks ago

Description:

Changes below alter SearchRequest class so that it uses api/v1/topics/{topicId} when previewnet. For mainnet and testnet, behavior is unchanged (use of api/v1/topics/{topicId}/messages). Changes also include unit tests adaptation to this new logic.

Related issue(s):

Fixes #1109

Checklist

sonarcloud[bot] commented 2 weeks ago

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
48.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

github-actions[bot] commented 2 weeks ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 83.05% 40136 / 48324
🔵 Statements 83.05% 40136 / 48324
🔵 Functions 62.76% 902 / 1437
🔵 Branches 84.06% 4190 / 4984
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/components/SearchBar.vue 52.22% 50% 14.28% 52.22% 28-40, 47, 59-60, 104-105, 107-120, 123-206, 209, 219
src/utils/SearchRequest.ts 87.72% 80.26% 92.3% 87.72% 128-133, 145-146, 167-170, 199-201, 207-208, 228-229, 316-319, 350-353, 355-362, 367-368, 373-382
Generated in workflow #1025