boyney123 / boyney123/mockit

Wildcard Path doesn't affected by Delay feature

Open
#85 2 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
JavaScript
Stars
1.6k
Forks
78
PR merge metrics
No merged PRs in 30d

Description

## What you did:

Create a route:
`/orders/*`
then set the delay to 2000ms.

## What happened:
route not delayed when hit with another param beside `*`
`/orders/1` not delayed
![image](https://user-images.githubusercontent.com/19505989/99930700-985b8600-2d84-11eb-85c1-871bfa8f4aa7.png)

`/orders/900` not delayed
`/orders/*` delayed
![image](https://user-images.githubusercontent.com/19505989/99930692-8c6fc400-2d84-11eb-9e55-da9da8444f1d.png)

## Problem description:

Need to handle delay feature for wildcard path.

## Suggested solution:

don't have a suggestion. but please fix it. 🥂

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the route matching and delay behavior with `/orders/*`, `/orders/1`, and `/orders/900`, using the issue's 2000ms delay. Trace the route-matching and delay-handling entry points, then verify that matching wildcard requests receive the configured delay while preserving the existing behavior for the literal wildcard path.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.