Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lveillard
Copy link
Member

@lveillard lveillard commented Jun 30, 2024

πŸš€ This description was created by Ellipsis for commit e4b95b7

Summary:

Introduced a new SurrealDB adapter with 'edges' and 'refs' link modes, updating scripts, configurations, and tests to support these modes.

Key points:

  • Added linkMode support in SurrealDB adapter (src/adapters/surrealDB/enrichSchema/helpers.ts, src/helpers.ts)
  • Updated package.json scripts for new SurrealDB link modes
  • Introduced cross-env dependency in package.json
  • Added logger.ts for custom logging
  • Modified queryMachine to handle surrealDBRefs (src/stateMachine/query/queryMachine.ts)
  • Added new state machine for surql-refs (src/stateMachine/query/surql-refs/*)
  • Updated tests/bench.sh and tests/test.sh to handle new link modes
  • Refactored and added new test configurations and data for SurrealDB link modes (tests/adapters/surrealDB/mocks/*)
  • Renamed and moved several test files to accommodate new structure (tests/unit/*)
  • Updated tests/helpers/init.ts and tests/helpers/setup.ts for new configurations

Generated with ❀️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

πŸ‘ Looks good to me! Reviewed everything up to c501991 in 47 seconds

More details
  • Looked at 3155 lines of code in 42 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. tests/unit/queries/query.test.ts:1
  • Draft comment:
    The import path for init is incorrect. It should be two levels up, not one. Please update the import statement to correctly reference the init function from the helpers directory.
import { init } from '../../helpers/init';
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_yS0PBRHisu8go5lP


You can customize Ellipsis with πŸ‘ / πŸ‘Ž feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

πŸ‘ Looks good to me! Incremental review on 40c819d in 1 minute and 19 seconds

More details
  • Looked at 1614 lines of code in 28 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. tests/unit/mutations/allMutation.test.ts:1
  • Draft comment:
    This file is redundant as it only imports and runs functions that are already being tested in their respective test files. Consider removing this file to avoid duplication and potential confusion.
  • Reason this comment was not posted:
    Confidence of 40% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_oLfZgJwXRpwxLM2S


You can customize Ellipsis with πŸ‘ / πŸ‘Ž feedback, review rules, user-specific overrides, quiet mode, and more.

@lveillard lveillard merged commit 0a911b0 into main Jul 2, 2024
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on e4b95b7 in 34 seconds

More details
  • Looked at 55 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_LkQSmDiVtrrSkIxP


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with πŸ‘ / πŸ‘Ž feedback, review rules, user-specific overrides, quiet mode, and more.

const thing = getSchemaByThing(ctx.schema, q.$thing);
const { id } = thing.defaultDBConnector;

if (thing.db === 'typeDB') {
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems there's a mix-up in the database checks for typeDB and surrealDB. The conditions and associated logic appear to be reversed. This should be corrected to match the intended database types.

Suggested change
if (thing.db === 'typeDB') {
if (thing.db === 'surrealDB') {

This issue also applies to the corresponding else-if block for typeDB on line 104.

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.

2 participants