-
Notifications
You must be signed in to change notification settings - Fork 2k
Update GitHub Connector metadata #4769
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
Changes from 6 commits
8e06232
c8b4c41
e85ccce
dadf4a5
a4d6b30
d0feb17
b382ab6
4879187
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -842,7 +842,7 @@ def to_repository_side_effect( | |
assert all(isinstance(item, Document) for item in outputs[1].items) | ||
assert { | ||
item.semantic_identifier for item in cast(list[Document], outputs[1].items) | ||
} == {"PR 3 Repo 2", "PR 4 Repo 2"} | ||
} == {"3: PR 3 Repo 2", "4: PR 4 Repo 2"} | ||
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. This change is here because we add the pr/issue number to the semantic id (seems a little unnecessary here, but normally the title of the issue/pr wouldn't include the number). This will be important for kg because we want to be able to search for the entity "4: Fixed ABC", when the user asks for PR 4. |
||
cp1 = outputs[1].next_checkpoint | ||
assert ( | ||
cp1.has_more | ||
|
@@ -869,7 +869,7 @@ def to_repository_side_effect( | |
assert all(isinstance(item, Document) for item in outputs[3].items) | ||
assert { | ||
item.semantic_identifier for item in cast(list[Document], outputs[3].items) | ||
} == {"PR 1 Repo 1", "PR 2 Repo 1"} | ||
} == {"1: PR 1 Repo 1", "2: PR 2 Repo 1"} | ||
cp3 = outputs[3].next_checkpoint | ||
# This checkpoint is returned early because offset had items. has_more reflects state then. | ||
assert cp3.has_more # still need to do issues | ||
|
Uh oh!
There was an error while loading. Please reload this page.