Skip to content

Conversation

evan-onyx
Copy link
Contributor

Description

Fixes https://linear.app/danswer/issue/DAN-1940/attributeerror-paginatedlist-object-has-no-attribute-nexturl
(hopefully)

Fix for attribute not found error likely due to python name mangling.

How Has This Been Tested?

Automated tests because we have not yet reproduced this issue locally

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.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@evan-onyx evan-onyx requested a review from a team as a code owner May 6, 2025 00:24
Copy link

vercel bot commented May 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 1:59am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds a utility function to handle PyGithub's PaginatedList attribute access, specifically addressing an AttributeError related to the nextUrl property.

  • Added get_nextUrl function in /backend/onyx/connectors/github/connector.py to handle both __nextUrl and nextUrl attribute variations
  • Modified existing code to use the new function instead of direct attribute access, improving resilience against PyGithub version differences
  • Addresses a production issue where attribute access was failing due to Python name mangling

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@Weves Weves added this pull request to the merge queue May 6, 2025
Merged via the queue into main with commit 2d7e48d May 6, 2025
11 checks passed
@Weves Weves deleted the bugfix/github-cursor-page-nextUrl branch May 6, 2025 16:49
ferdinandl007 pushed a commit to ferdinandl007/onyx that referenced this pull request May 8, 2025
* possible mangling fix

* fixed nextUrl setting

* global bad
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* possible mangling fix

* fixed nextUrl setting

* global bad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants