-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[OP#64194] SharePoint UploadLinkQuery #19886
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
base: dev
Are you sure you want to change the base?
Conversation
331e435
to
949ac90
Compare
...les/storages/app/common/storages/adapters/providers/share_point/queries/upload_link_query.rb
Outdated
Show resolved
Hide resolved
...orages/spec/common/storages/adapters/providers/share_point/queries/upload_link_query_spec.rb
Outdated
Show resolved
Hide resolved
|
||
let(:upload_url) do | ||
"https://ymt6d.sharepoint.com/sites/OPTest/_api/v2.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY" \ | ||
"9jo6leJDqrT7muzvmiWjFW/items/01ANJ53W2OGTVJLOZ5R5F2NFJWGJOLV56J/uploadSession?guid=%27ca9855a1-245f-40b" \ |
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.
🟡 wanna use drive_id
as a variable and interpolate it here? Same in the folder_id
?
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.
It might have some value to interpolate the drive id, but folder ID becomes moot point as the API generates the new ID of the upload and returns it as part of the URL, ignoring the parent folder.
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.
🟡 just a suggestion: maybe to put the token to a file or factory 🤔
Input::UploadLink.build( | ||
folder_id: | ||
"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY8Qconfm2i6SKEoCmuGYqQK||04AZJL5PN6Y2GOVW7725BZO354PWSELRRZ", | ||
file_name: "DeathStart_blueprints.tiff" |
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.
🤣 so, a Death Start
, yes?
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.
Yep it is a blueprint after all. And a TIFF file nonetheless. XD
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
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.
Related Work Package: [OP#64194](https://community.openproject.org/projects/marcello-rocha-pereira/work_packages/64194