-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Updates GitHub connector metadata handling by adding comprehensive PR and issue tracking fields with proper timezone management in backend/onyx/connectors/github/connector.py
.
- Added critical PR metadata fields (assignee, timestamps, merger info) with UTC timezone standardization
- Added issue tracking metadata (assignee, timestamps, labels) for better issue context
- Implemented None-value filtering in metadata using dictionary comprehension
- Maintains backward compatibility while enhancing data completeness
- Tested functionality with real-world PR and issue scenarios
1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
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 comment
The 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor nits!
* feat: updated github metadata * feat: nullity check * feat: more metadata * feat: userinfo * test: connector test + more metadata * feat: num files changed * feat str * feat: list of str
* feat: updated github metadata * feat: nullity check * feat: more metadata * feat: userinfo * test: connector test + more metadata * feat: num files changed * feat str * feat: list of str
* feat: updated github metadata * feat: nullity check * feat: more metadata * feat: userinfo * test: connector test + more metadata * feat: num files changed * feat str * feat: list of str
Description
^
Will be relevant even more once kg is merged. Lets us filter specific types of PRs and Issues
How Has This Been Tested?
ran on my own repo with prs and issues
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.