hasadna/open-bus-map-search

test: request caching

Open

#907 opened on Nov 5, 2024

View on GitHub
 (2 comments) (1 reaction) (0 assignees)TypeScript (125 forks)auto 404
cihacktoberfesttests

Repository metrics

Stars
 (95 stars)
PR merge metrics
 (PR metrics pending)

Description

When searching the same information twice (e.g looking at line 142, then line 42, and then going back to search about line 142), it is expected that the frontend will catch the respond and will not trigger another HTTP request to the backend.

Keeping the load on database minimal is a crucial part of saving costs to the NGO that funds us (The Public Knowledge Workshop)

The test(s) should navigate through different states and make sure the same call isn't called twice

Contributor guide