We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
API Platform version(s) affected: 3.1.15, react admin 3.4.4
Description Duplicated requests to API without pagination parameters on page load, menu usage or pagination.
How to reproduce I've just pasted the index.js file from docs
import React from 'react'; import ReactDOM from 'react-dom'; import { AdminGuesser, hydraDataProvider, hydraSchemaAnalyzer, } from '@api-platform/admin'; // Use your custom data provider or resource schema analyzer // Hydra: const dataProvider = hydraDataProvider({ entrypoint: 'http://localhost:63305' }); const schemaAnalyzer = hydraSchemaAnalyzer(); // OpenAPI: const Admin = () => ( <AdminGuesser dataProvider={dataProvider} schemaAnalyzer={schemaAnalyzer} /> ); ReactDOM.render(<Admin />, document.getElementById('root'));
Edit: the problem is also visible on official app skeleton https://github.com/api-platform/api-platform/tree/v3.1.14 Additional Context You can see these requests on this video: https://streamable.com/1pfy9s
The text was updated successfully, but these errors were encountered:
Reproduced. These requests seem to be necessary for introspection.
Sorry, something went wrong.
The problem comes from @api-platform/api-doc-parser. To introspect the parameters of a resource, the Hydra parser has to fetch the getList route:
@api-platform/api-doc-parser
getList
https://github.com/api-platform/api-doc-parser/blob/e8b49f2b452c4a19fab5eea86ec742c8201d381f/src/hydra/getParameters.ts#L1-L26
It should be possible to use the main schema instead
Probably linked to api-platform/api-doc-parser#115
No branches or pull requests
API Platform version(s) affected: 3.1.15, react admin 3.4.4
Description
Duplicated requests to API without pagination parameters on page load, menu usage or pagination.
How to reproduce
I've just pasted the index.js file from docs
Edit: the problem is also visible on official app skeleton https://github.com/api-platform/api-platform/tree/v3.1.14
Additional Context
You can see these requests on this video: https://streamable.com/1pfy9s
The text was updated successfully, but these errors were encountered: