Add regression coverage for the deprecated static mock flag in config
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 92/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start with web/src/config.ts to confirm the exported USE_MOCK value, then open web/src/config.test.ts and run that targeted Vitest file. Add the focused assertion described in the issue; done means the test verifies USE_MOCK === false and the targeted test passes.
Written by the indexing model from the issue text.
Description
Problem
web/src/config.ts exports USE_MOCK for backward compatibility, but the existing test only covers API_BASE_URL. The deprecated flag is not protected by a regression test, so it could be accidentally flipped and reintroduce the legacy mock-data code path.
Expected behavior
- USE_MOCK remains alse for the current Studio runtime.
- A focused Vitest case fails if the flag is changed.
Scope
Only add regression coverage for web/src/config.test.ts. No runtime code changes.
Acceptance criteria
- A Vitest assertion verifies USE_MOCK === false.
- The targeted test file passes.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 692
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 69
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/rocketmq-dashboard
-
[Studio][Bug] Bulk-deleting a full page of alert rules steps the page back while more rules remain Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/rocketmq-dashboard#4654 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
apache/rocketmq-dashboard#4642 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
apache/rocketmq-dashboard#4640 · 1 comment ·
-
[Bug] rmqctl fails every command with context deadline exceeded when --timeout is 0s or negative Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/rocketmq-dashboard#4628 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/rocketmq-dashboard#4626 · 1 comment ·
All issues in apache/rocketmq-dashboard
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100