This repository was archived by the owner on Sep 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
[DO NOT MERGE] Code review #53
Closed
Closed
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
bb00fef
Jai/hyp 2765 get api (#28)
jairad26 47fec90
Bump golang.org/x/crypto from 0.29.0 to 0.31.0 (#29)
dependabot[bot] 208821a
separate ci tests and lint (#30)
jairad26 571b799
Create CODEOWNERS
ryanfoxtyler 0420655
add readFrom, index creation, and gid for apis (#31)
jairad26 a8aee3e
Jai/hyp 2771 benchmark modusdb (#32)
jairad26 2e3b106
upgrade dependencies in go.mod (#24)
mangalaman93 3e824e2
add delete api (#33)
jairad26 1116c7c
add nested mutation, getting nested values, upsert, nested types supp…
jairad26 84b781b
support unstructured data in modusdb (#38)
jairad26 f7007a4
chore: repo setup (#43)
ryanfoxtyler fff8aaa
chore: create LICENSE (#42)
ryanfoxtyler e676bc6
chore: add trunk (#44)
ryanfoxtyler a157525
chore: add readme (#46)
ryanfoxtyler dac39a7
chore: add copyrights (#47)
jairad26 77effe0
Update trunk.yaml
ryanfoxtyler 2e7ac26
chore: move to Warp runners for GitHub Actions (#50)
ryanfoxtyler bcd42e1
feat: add readfrom json tag to support reverse edges (#49)
jairad26 dd2ea80
chore: Refactoring package management (#51)
jairad26 7abdc72
chore: move reflection logic to utils package (#54)
jairad26 48b27de
revs
jairad26 205eaf7
.
jairad26 f24f940
rename internal to api to reflect the functions inside are for the ap…
jairad26 42b1452
fix: alter schema on reverse edge after querying schema (#55)
jairad26 b9226a5
Merge branch 'main' into code-review
jairad26 b297d54
feat: update modusDB interface to driver and db (#57)
jairad26 9b6934e
chore: separate load and unit tests (#59)
jairad26 b63cc2a
chore: Ignore blev warning (#60)
mattjohnsonpint 1bf8d5a
chore: Update dgraph dependency (#62)
jairad26 69abfd7
Merge branch 'main' into code-review
jairad26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # CODEOWNERS info: https://help.github.com/en/articles/about-code-owners | ||
| # Owners are automatically requested for review for PRs that changes code | ||
| # that they own. | ||
|
|
||
| * @hypermodeinc/database |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| --- | ||
| name: Bug report | ||
| about: Create a report to help us improve | ||
| title: "" | ||
| labels: bug | ||
| assignees: "" | ||
| --- | ||
|
|
||
| **Describe the bug** A clear and concise description of what the bug is. | ||
|
|
||
| **To Reproduce** Steps to reproduce the behavior: | ||
|
|
||
| 1. Go to '...' | ||
| 2. Click on '....' | ||
| 3. Scroll down to '....' | ||
| 4. See error | ||
|
|
||
| **Expected behavior** A clear and concise description of what you expected to happen. | ||
|
|
||
| **Screenshots** If applicable, add screenshots to help explain your problem. | ||
|
|
||
| **Environment** | ||
|
|
||
| - OS: [e.g. macOS, Windows, Ubuntu] | ||
| - Language [e.g. Go] | ||
| - Version [e.g. v0.xx] | ||
|
|
||
| **Additional context** Add any other context about the problem here. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| blank_issues_enabled: false | ||
| contact_links: | ||
| - name: Modus Community Support | ||
| url: https://discord.hypermode.com | ||
| about: Please ask and answer questions here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- | ||
| name: Feature request | ||
| about: Suggest an idea for this project | ||
| title: "" | ||
| labels: "" | ||
| assignees: "" | ||
| --- | ||
|
|
||
| **Is your feature request related to a problem? Please describe.** A clear and concise description | ||
| of what the problem is. Ex. I'm always frustrated when [...] | ||
|
|
||
| **Describe the solution you'd like** A clear and concise description of what you want to happen. | ||
|
|
||
| **Describe alternatives you've considered** A clear and concise description of any alternative | ||
| solutions or features you've considered. | ||
|
|
||
| **Additional context** Add any other context or screenshots about the feature request here. | ||
|
Comment on lines
+9
to
+17
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Trunk merged the title and body of these paragraphs, because they were just bold text rather than headings. Use |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| self-hosted-runner: | ||
| # Labels of self-hosted runner in array of string | ||
| labels: | ||
| - warp-ubuntu-latest-arm64-2x | ||
| - warp-ubuntu-latest-arm64-4x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| **Description** | ||
|
|
||
| Please explain the changes you made here. | ||
|
|
||
| **Checklist** | ||
|
|
||
| - [ ] Code compiles correctly and linting passes locally | ||
| - [ ] For all _code_ changes, an entry added to the `CHANGELOG.md` file describing and linking to | ||
| this PR | ||
| - [ ] Tests added for new functionality, or regression tests for bug fixes added as applicable | ||
| - [ ] For public APIs, new features, etc., PR on [docs repo](https://github.com/hypermodeinc/docs) | ||
| staged and linked here | ||
|
|
||
| **Instructions** | ||
|
|
||
| - The PR title should follow the [Conventional Commits](https://www.conventionalcommits.org/) | ||
| syntax, leading with `fix:`, `feat:`, `chore:`, `ci:`, etc. | ||
| - The description should briefly explain what the PR is about. In the case of a bugfix, describe or | ||
| link to the bug. | ||
| - In the checklist section, check the boxes in that are applicable, using `[x]` syntax. | ||
| - If not applicable, remove the entire line. Only leave the box unchecked if you intend to come | ||
| back and check the box later. | ||
| - Delete the `Instructions` line and everything below it, to indicate you have read and are | ||
| following these instructions. 🙂 | ||
|
|
||
| Thank you for your contribution to modusDB! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| { | ||
| "$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
| "extends": [ | ||
| "github>hypermodeinc/renovate-config" | ||
| ] | ||
| "extends": ["github>hypermodeinc/renovate-config"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: ci-go-load-tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - ready_for_review | ||
| paths: | ||
| - "**/*.go" | ||
| - "**/go.mod" | ||
| - .github/workflows/* | ||
|
|
||
| permissions: | ||
| contents: read | ||
| actions: write | ||
|
|
||
| jobs: | ||
| ci-go-tests: | ||
| runs-on: warp-ubuntu-latest-arm64-4x | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: go.mod | ||
| cache-dependency-path: go.sum | ||
|
|
||
| - name: Run Unit Tests | ||
| run: go test -race -v ./load_test/... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: ci-go-unit-tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - ready_for_review | ||
| paths: | ||
| - "**/*.go" | ||
| - "**/go.mod" | ||
| - .github/workflows/* | ||
|
|
||
| permissions: | ||
| contents: read | ||
| actions: write | ||
|
|
||
| jobs: | ||
| ci-go-tests: | ||
| name: Test ${{ matrix.os }} | ||
| runs-on: | ||
| "${{ matrix.os == 'linux' && 'warp-ubuntu-latest-x64-4x' || matrix.os == 'macos' && | ||
| 'warp-macos-15-arm64-6x'}}" | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [linux, macos] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Go | ||
| uses: actions/setup-go@v5 | ||
| with: | ||
| go-version-file: go.mod | ||
| cache-dependency-path: go.sum | ||
|
|
||
| - name: Run Unit Tests | ||
| run: go test -race -v ./unit_test/... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,3 +17,5 @@ go.work.sum | |
|
|
||
| # env file | ||
| .env | ||
|
|
||
| cpu_profile.prof | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| *out | ||
| *logs | ||
| *actions | ||
| *notifications | ||
| *tools | ||
| plugins | ||
| user_trunk.yaml | ||
| user.yaml | ||
| tmp |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "line-length": { "line_length": 150, "tables": false }, | ||
| "no-inline-html": false, | ||
| "no-bare-urls": false, | ||
| "no-space-in-emphasis": false, | ||
| "no-emphasis-as-heading": false, | ||
| "first-line-heading": false | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Prettier friendly markdownlint config (all formatting rules disabled) | ||
| extends: markdownlint/style/prettier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "semi": false, | ||
| "proseWrap": "always", | ||
| "printWidth": 100 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| rules: | ||
| quoted-strings: | ||
| required: only-when-needed | ||
| extra-allowed: ["{|}"] | ||
| key-duplicates: {} | ||
| octal-values: | ||
| forbid-implicit-octal: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Generic, formatter-friendly config. | ||
| select = ["B", "D3", "E", "F"] | ||
|
|
||
| # Never enforce `E501` (line length violations). This should be handled by formatters. | ||
| ignore = ["E501"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # This file controls the behavior of Trunk: https://docs.trunk.io/cli | ||
| # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml | ||
|
|
||
| version: 0.1 | ||
|
|
||
| cli: | ||
| version: 1.22.8 | ||
|
|
||
| # Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) | ||
| plugins: | ||
| sources: | ||
| - id: trunk | ||
| ref: v1.6.6 | ||
| uri: https://github.com/trunk-io/plugins | ||
|
|
||
| # Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) | ||
| runtimes: | ||
| enabled: | ||
| - go@1.23.3 | ||
| - node@18.20.5 | ||
| - python@3.10.8 | ||
|
|
||
| # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) | ||
| lint: | ||
| enabled: | ||
| - actionlint@1.7.6 | ||
| - checkov@3.2.352 | ||
| - git-diff-check | ||
| - gofmt@1.20.4 | ||
| - golangci-lint@1.63.4 | ||
| - markdownlint@0.43.0 | ||
| - osv-scanner@1.9.2 | ||
| - prettier@3.4.2 | ||
| - renovate@39.106.0 | ||
| - trufflehog@3.88.2 | ||
| - yamllint@1.35.1 | ||
|
|
||
| actions: | ||
| enabled: | ||
| - trunk-announce | ||
| - trunk-check-pre-push | ||
| - trunk-fmt-pre-commit | ||
| - trunk-upgrade-available |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "recommendations": ["trunk.io"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "editor.formatOnSave": true, | ||
| "editor.defaultFormatter": "trunk.io", | ||
| "editor.trimAutoWhitespace": true, | ||
| "trunk.autoInit": false | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Changelog | ||
|
|
||
| ## UNRELEASED | ||
|
|
||
| - feat: add readfrom json tag to support reverse edges | ||
| [#49](https://github.com/hypermodeinc/modusDB/pull/49) | ||
|
|
||
| - chore: Refactoring package management [#51](https://github.com/hypermodeinc/modusDB/pull/51) | ||
|
|
||
| - fix: alter schema on reverse edge after querying schema | ||
| [#55](https://github.com/hypermodeinc/modusDB/pull/55) | ||
|
|
||
| - feat: update interface to engine and namespace | ||
| [#57](https://github.com/hypermodeinc/modusDB/pull/57) | ||
|
|
||
| - chore: Update dgraph dependency [#62](https://github.com/hypermodeinc/modusDB/pull/62) | ||
|
|
||
| ## 2025-01-02 - Version 0.1.0 | ||
|
|
||
| Baseline for the changelog. | ||
|
|
||
| See git commit history for changes for this version and prior. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.