-
Notifications
You must be signed in to change notification settings - Fork 392
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
CB-3704 feat(plugin-data-viewer): blob uploading #2027
CB-3704 feat(plugin-data-viewer): blob uploading #2027
Conversation
…itor-blob-uploading
…pload-big-files
…itor-blob-uploading
# Conflicts: # server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/session/WebSession.java
…pload-big-files
Cb 4051 upload big files
server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/session/WebSession.java
Outdated
Show resolved
Hide resolved
server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/session/WebSession.java
Outdated
Show resolved
Hide resolved
...er/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLFileLoaderServlet.java
Outdated
Show resolved
Hide resolved
...er/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLFileLoaderServlet.java
Outdated
Show resolved
Hide resolved
...er/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLFileLoaderServlet.java
Outdated
Show resolved
Hide resolved
server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLProcessor.java
Outdated
Show resolved
Hide resolved
server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLProcessor.java
Show resolved
Hide resolved
server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/impl/WebServiceSQL.java
Outdated
Show resolved
Hide resolved
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.
also remove all temp files from temp-sql-upload-files on server start
server/bundles/io.cloudbeaver.server/src/io/cloudbeaver/service/sql/WebSQLProcessor.java
Outdated
Show resolved
Hide resolved
@@ -92,6 +92,7 @@ export default [ | |||
['ui_close_all_to_the_left', 'Close all to the Left'], | |||
['ui_or', 'Or'], | |||
['ui_download', 'Download'], | |||
['ui_upload', 'Upload'], |
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 have ui_upload_file and ui_upload_files, do we need another one?
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.
they are different, but yep, it's a tricky case
* you may not use this file except in compliance with the License. | ||
*/ | ||
|
||
export function selectFiles(callback: (files: FileList | null) => any): void { |
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.
Probably we need to attach the input to the body and set its style to be hidden.
If it's not attached to the DOM, the click event might not work in some browsers.
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
...packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetFormatAction.ts
Outdated
Show resolved
Hide resolved
import type { IResultSetRowKey } from './IResultSetDataKey'; | ||
|
||
export function compareResultSetRowKeys(a: IResultSetRowKey, b: IResultSetRowKey): number { | ||
return a.index + a.subIndex / 10 - b.index - b.subIndex / 10; |
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.
Probably we need some comment here or create two named variables to it will be easier to read
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.
comment is added
Cb 3704 json fix
…hub.com/dbeaver/cloudbeaver into feat/cb-3704/data-editor-blob-uploading
…hub.com/dbeaver/cloudbeaver into feat/cb-3704/data-editor-blob-uploading
…hub.com/dbeaver/cloudbeaver into feat/cb-3704/data-editor-blob-uploading
|
||
Map<String, Object> variables = gson.fromJson(request.getParameter(REQUEST_PARAM_VARIABLES), MAP_STRING_OBJECT_TYPE); | ||
|
||
String fileId = JSONUtils.getString(variables, FILE_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.
We must validate it. File ID mustn't contain slashes or ..
No description provided.