-
Notifications
You must be signed in to change notification settings - Fork 49
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
Synchronization with high number of labels with long strings #206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. As long as there are no concerns with the schema request I think this is good to go.
packages/graph-explorer/src/connector/sparql/SPARQLConnector.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cubeddu ! Nice job on finding a workaround for the header limit. Couple of changes before we merge this in...
packages/graph-explorer/src/connector/gremlin/GremlinConnector.ts
Outdated
Show resolved
Hide resolved
packages/graph-explorer/src/connector/gremlin/GremlinConnector.ts
Outdated
Show resolved
Hide resolved
* Bump Babel and PostCSS versions * update changelog
* Bump crypto-js to 4.2.0 * update changelog
GET method to useOpenCypher and useGremlin
@michaelnchin PR is ready for review. |
This comment was marked as resolved.
This comment was marked as resolved.
This commit refactors the `useOpenCypher`, `useGremlin`, `useSPARQL`, and `useGEFetch` functions. It updates the imports to include the `useConfiguration` function from the `core` module. It also modifies the function signatures to remove the `connection` parameter and instead retrieves the connection configuration using `useConfiguration`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tested and working well. Thanks @cubeddu !
* updating fetch for templated queries to be POST * fix linter and pre commit issues * fix linter SelectListBox node.value can be null * changelog * removed method get from fetch as it's defaults to get * Bump Babel, PostCSS, and Vite to latest (aws#210) * Bump Babel and PostCSS versions * update changelog * Bump crypto-js to 4.2.0 (aws#214) * Bump crypto-js to 4.2.0 * update changelog * merge * Bye abstract class hello React hooks, test passing * Fix error messages on schema fetch * server does post calls instead of gets calls to neptune * Fix type imports and update schema state * Fix headers in useGEFetch and useSPARQL, and add GET method to useOpenCypher and useGremlin * Add body-parser middleware, created middleware to sign headers * Refactor ConnectorProvider * Add new connection configuration options * Refactor useOpenCypher, useGremlin, useSPARQL, and useGEFetch This commit refactors the `useOpenCypher`, `useGremlin`, `useSPARQL`, and `useGEFetch` functions. It updates the imports to include the `useConfiguration` function from the `core` module. It also modifies the function signatures to remove the `connection` parameter and instead retrieves the connection configuration using `useConfiguration`. * Update fetch request timeout value * Remove unused import in ConnectorProvider.tsx * Add compression middleware to node-server.js * Refactor aws4SigningMiddleware to use async/await * adjusting header signature * update * IAM api call works for POST * GET call return undefined * Update IAM headers and fix query parameter in useGremlin --------- Co-authored-by: Michael Chin <chnmch@amazon.com> Co-authored-by: Michael Chin <mchin188@yahoo.com> Co-authored-by: Juan Cubeddu <vcubjuan@amzon.com>
Issues
Switching from GET to POST in fetch calls allows the handling of long labels or large data efficiently. Unlike GET, which has URL length limits, POST carries data in the request body, preventing data truncation and ensuring accurate data transmission. This change resolves issues with long labels in URL queries, eliminating risks tied to URL string parameter limits.
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.