Skip to content

Conversation

mangalaman93
Copy link
Member

No description provided.

@github-actions github-actions bot added area/testing Testing related issues area/bulk-loader Issues related to bulk loading. go Pull requests that update Go code labels Jun 17, 2025
@mangalaman93 mangalaman93 marked this pull request as ready for review June 23, 2025 12:54
@Copilot Copilot AI review requested due to automatic review settings June 23, 2025 12:54
@mangalaman93 mangalaman93 requested a review from a team as a code owner June 23, 2025 12:54
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a new dgraph import sub-command that uses the bulk loader under the hood for faster data ingestion.
Key changes:

  • Introduce dgraphimport command and wire it into root.go along with flags and confirmation logic.
  • Rename and expand options to BulkOptions across bulk loader code, adding ConnStr and switching to use dgo for timestamp allocation.
  • Enhance loader to connect to either Zero or Alpha (dgo) for timestamps and schema handling.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
edgraph/multi_tenancy.go Adjust log call to include colon before namespace value
dgraph/cmd/root.go Import and register new dgraph import command
dgraph/cmd/dgraphimport/run.go Implement import command with bulk loader invocation
dgraph/cmd/bulk/schema.go Update newSchemaStore to accept *BulkOptions
dgraph/cmd/bulk/run.go Migrate from options to BulkOptions, call RunBulkLoader
dgraph/cmd/bulk/merge_shards.go Rename options param to *BulkOptions
dgraph/cmd/bulk/mapper.go Rename mapper buffer factory to accept *BulkOptions
dgraph/cmd/bulk/loader.go Refactor loader to use BulkOptions, add dgo integration
.trunk/trunk.yaml Bump tool versions (checkov, prettier, renovate, trufflehog)
Comments suppressed due to low confidence (1)

dgraph/cmd/bulk/loader.go:214

  • This for loop appears outside of any function and is followed by unmatched braces, which will cause a compile error. It seems misplaced—please move it inside the appropriate function or remove the extraneous braces.
	for {

@mangalaman93 mangalaman93 enabled auto-merge (squash) June 23, 2025 13:57
Copy link

trunk-io bot commented Jun 23, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Copy link

trunk-io bot commented Jun 23, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Copy link

trunk-io bot commented Jun 23, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@mangalaman93 mangalaman93 merged commit 8df04d0 into main Jun 24, 2025
14 checks passed
@mangalaman93 mangalaman93 deleted the aman/import branch June 24, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bulk-loader Issues related to bulk loading. area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

2 participants