Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#167 into [email protected] 🐘 call server response interceptors for database requests, add database api interceptors, add baseUrl field for database #170

Open
wants to merge 1 commit into
base: [email protected]
Choose a base branch
from

Conversation

RiceWithMeat
Copy link
Collaborator

No description provided.

…etabase api interceptors, add baseUrl field for database
@RiceWithMeat RiceWithMeat self-assigned this May 20, 2024
@RiceWithMeat RiceWithMeat linked an issue May 20, 2024 that may be closed by this pull request
Comment on lines +118 to +119
describe('createDatabaseRoutes: interceptors', () => {
test('Should call response interceptors in order: api -> server', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Я думаю можно в рамках этого же PR исправить: тесты на interceptors для createRestRoutes и createGraphqQLRoutes не содержат проверку на вызов api response interceptor в цепочке interceptor-ов. Надо бы добавить
  2. Я бы текущие тесты перенес в createShallowDatabase.test.ts и createNestedDatabase.test.ts по след. причинам:
    2.1 текущий тест проверяет по сути только shallow interceptors, т.к. запрос на /users не делается
    2.2 проверяется только get method

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По 1 пункту сделал тут: #177

@MiaInturi
Copy link
Collaborator

И еще вопрос на обсудить - не хотим ли мы route request interceptor добавить? Потому что сейчас нет interceptor-а именно для запросов, которые совпали полностью по роутам

@MiaInturi MiaInturi changed the title #167 into [email protected] 🐘 call server response interceptors for database requests, add detabase api interceptors, add baseUrl field for database #167 into [email protected] 🐘 call server response interceptors for database requests, add database api interceptors, add baseUrl field for database Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Response interceptor is not working in database.
2 participants