Skip to content
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

Change _ne to _neq for consistencey #1550

Open
jsimnz opened this issue Jun 1, 2023 · 0 comments
Open

Change _ne to _neq for consistencey #1550

jsimnz opened this issue Jun 1, 2023 · 0 comments
Assignees
Labels
area/query Related to the query component deprecate Indicates something is deprecated. refactor This issue specific to or requires *notable* refactoring of existing codebases and components

Comments

@jsimnz
Copy link
Member

jsimnz commented Jun 1, 2023

In the GQL query layer

@jsimnz jsimnz added area/query Related to the query component refactor This issue specific to or requires *notable* refactoring of existing codebases and components labels Jun 1, 2023
@fredcarle fredcarle added this to the DefraDB v0.7 milestone Jul 31, 2023
@shahzadlone shahzadlone self-assigned this Jul 31, 2023
@shahzadlone shahzadlone added the deprecate Indicates something is deprecated. label Aug 3, 2023
@shahzadlone shahzadlone modified the milestones: DefraDB v0.7, DefraDB v0.8 Sep 14, 2023
@shahzadlone shahzadlone removed this from the DefraDB v0.8 milestone Nov 9, 2023
shahzadlone added a commit that referenced this issue Jan 4, 2024
## Relevant issue(s)
- Subtask of #1750 [EPIC]
- [x] Resolves #1752
- [x] Resolves #1272


## BREAKING CHANGE:
- Use of `_key` to access a document's unique id is now deprecated,
instead use `_docID`.
- Use of `dockey`/`id` is now deprecated, instead use `docID`.
- Use of `dockeys`/`ids` is now deprecated, instead use `docIDs`.


## Description
- [x] Rename `_key` to `_docID` everywhere.
- [x] Rename `_keys` to `docIDs` in explain the response.
- [x] Rename `_newKey` to `_docIDNew` in backup/recover functionality.
- [x] Fix `_docID` tests.
- [x] Fix explain and backup/recover functionality tests.
- [x] Fix the collectionID order for a P2P test (leaving a note as order
was reverted).
- [x] Update all cids.
- [x] Rename all files with `key(s)|dockey(s)` in the name to
`doc_id(s)`.
- [x] Document breaking change to pass change detector.

## For Reviewers:
- Main commits to review are the `PR(MAIN)` commits. 
- If you have more time `PR(MINOR) and PR(*TEST)` commits are good to go
over


## Disclaimer / Discussion:
I do not like these non-underscored `docID/docIDs`, would be in favor of
underscoring these :

```
query {
    User(docIDs: ["bae-6a6482a8-24e1-5c73-a237-ca569e41507d"]) {
        _docID
    }
}
```

```
query {
    Users {
        Name
        _docID
        _version {
            docID
        }
    }
}
```

```
Request: ` {
    commits(groupBy: [docID], order: {docID: DESC}) {
        docID
    }
}`,
Results: []map[string]any{
    {
        "docID": "bae-f54b9689-e06e-5e3a-89b3-f3aee8e64ca7",
    },
    {
        "docID": "bae-72f3dc53-1846-55d5-915c-28c4e83cc891",
    },
},

```

EDIT: Above was resolved with #2162, to do out of this PR.


## Limitations (out of scope of this PR):
- #1467
- #1751
- #1550
- #2162
shahzadlone added a commit to shahzadlone/defradb that referenced this issue Jan 22, 2024
## Relevant issue(s)
- Subtask of sourcenetwork#1750 [EPIC]
- [x] Resolves sourcenetwork#1752
- [x] Resolves sourcenetwork#1272


## BREAKING CHANGE:
- Use of `_key` to access a document's unique id is now deprecated,
instead use `_docID`.
- Use of `dockey`/`id` is now deprecated, instead use `docID`.
- Use of `dockeys`/`ids` is now deprecated, instead use `docIDs`.


## Description
- [x] Rename `_key` to `_docID` everywhere.
- [x] Rename `_keys` to `docIDs` in explain the response.
- [x] Rename `_newKey` to `_docIDNew` in backup/recover functionality.
- [x] Fix `_docID` tests.
- [x] Fix explain and backup/recover functionality tests.
- [x] Fix the collectionID order for a P2P test (leaving a note as order
was reverted).
- [x] Update all cids.
- [x] Rename all files with `key(s)|dockey(s)` in the name to
`doc_id(s)`.
- [x] Document breaking change to pass change detector.

## For Reviewers:
- Main commits to review are the `PR(MAIN)` commits. 
- If you have more time `PR(MINOR) and PR(*TEST)` commits are good to go
over


## Disclaimer / Discussion:
I do not like these non-underscored `docID/docIDs`, would be in favor of
underscoring these :

```
query {
    User(docIDs: ["bae-6a6482a8-24e1-5c73-a237-ca569e41507d"]) {
        _docID
    }
}
```

```
query {
    Users {
        Name
        _docID
        _version {
            docID
        }
    }
}
```

```
Request: ` {
    commits(groupBy: [docID], order: {docID: DESC}) {
        docID
    }
}`,
Results: []map[string]any{
    {
        "docID": "bae-f54b9689-e06e-5e3a-89b3-f3aee8e64ca7",
    },
    {
        "docID": "bae-72f3dc53-1846-55d5-915c-28c4e83cc891",
    },
},

```

EDIT: Above was resolved with sourcenetwork#2162, to do out of this PR.


## Limitations (out of scope of this PR):
- sourcenetwork#1467
- sourcenetwork#1751
- sourcenetwork#1550
- sourcenetwork#2162
shahzadlone added a commit to shahzadlone/defradb that referenced this issue Feb 23, 2024
## Relevant issue(s)
- Subtask of sourcenetwork#1750 [EPIC]
- [x] Resolves sourcenetwork#1752
- [x] Resolves sourcenetwork#1272


## BREAKING CHANGE:
- Use of `_key` to access a document's unique id is now deprecated,
instead use `_docID`.
- Use of `dockey`/`id` is now deprecated, instead use `docID`.
- Use of `dockeys`/`ids` is now deprecated, instead use `docIDs`.


## Description
- [x] Rename `_key` to `_docID` everywhere.
- [x] Rename `_keys` to `docIDs` in explain the response.
- [x] Rename `_newKey` to `_docIDNew` in backup/recover functionality.
- [x] Fix `_docID` tests.
- [x] Fix explain and backup/recover functionality tests.
- [x] Fix the collectionID order for a P2P test (leaving a note as order
was reverted).
- [x] Update all cids.
- [x] Rename all files with `key(s)|dockey(s)` in the name to
`doc_id(s)`.
- [x] Document breaking change to pass change detector.

## For Reviewers:
- Main commits to review are the `PR(MAIN)` commits. 
- If you have more time `PR(MINOR) and PR(*TEST)` commits are good to go
over


## Disclaimer / Discussion:
I do not like these non-underscored `docID/docIDs`, would be in favor of
underscoring these :

```
query {
    User(docIDs: ["bae-6a6482a8-24e1-5c73-a237-ca569e41507d"]) {
        _docID
    }
}
```

```
query {
    Users {
        Name
        _docID
        _version {
            docID
        }
    }
}
```

```
Request: ` {
    commits(groupBy: [docID], order: {docID: DESC}) {
        docID
    }
}`,
Results: []map[string]any{
    {
        "docID": "bae-f54b9689-e06e-5e3a-89b3-f3aee8e64ca7",
    },
    {
        "docID": "bae-72f3dc53-1846-55d5-915c-28c4e83cc891",
    },
},

```

EDIT: Above was resolved with sourcenetwork#2162, to do out of this PR.


## Limitations (out of scope of this PR):
- sourcenetwork#1467
- sourcenetwork#1751
- sourcenetwork#1550
- sourcenetwork#2162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/query Related to the query component deprecate Indicates something is deprecated. refactor This issue specific to or requires *notable* refactoring of existing codebases and components
Projects
None yet
Development

No branches or pull requests

3 participants