-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
✨ Source Microsoft SharePoint: Add parsing shared files #35830
✨ Source Microsoft SharePoint: Add parsing shared files #35830
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
e037117
to
243ef28
Compare
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
minor comment for error message
item_url = f"{base_url}/items/{object_id}" | ||
item_response = requests.get(item_url, headers=headers) | ||
if item_response.status_code != 200: | ||
raise RuntimeError(f"Error retrieving shared object: {item_response.status_code}") |
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.
We need specified more user friendly error message with more details.
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.
Fixed
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
What
How
Iterating over shared objects is implemented using the requests library, as office365 doesn't support getting items using drive ID and object ID.
Add a new parameter, search_scope, to select where to search for the files.
Fix file paths by adding the drive URL to the file path to differentiate between files from different drives.