Skip to content
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

Merged
merged 59 commits into from
Oct 16, 2023

Conversation

Wroud
Copy link
Member

@Wroud Wroud commented Sep 29, 2023

No description provided.

@Wroud Wroud requested review from devnaumov and teunlao September 29, 2023 10:23
@Wroud Wroud self-assigned this Sep 29, 2023
Copy link
Collaborator

@alexander-skoblikov alexander-skoblikov left a 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

@@ -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'],
Copy link
Member

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?

Copy link
Member Author

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 {
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

import type { IResultSetRowKey } from './IResultSetDataKey';

export function compareResultSetRowKeys(a: IResultSetRowKey, b: IResultSetRowKey): number {
return a.index + a.subIndex / 10 - b.index - b.subIndex / 10;
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

comment is added

EvgeniaBzzz and others added 24 commits October 10, 2023 11:31

Map<String, Object> variables = gson.fromJson(request.getParameter(REQUEST_PARAM_VARIABLES), MAP_STRING_OBJECT_TYPE);

String fileId = JSONUtils.getString(variables, FILE_ID);
Copy link
Member

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 ..

@alexander-skoblikov alexander-skoblikov merged commit ab98567 into devel Oct 16, 2023
2 of 4 checks passed
@serge-rider serge-rider deleted the feat/cb-3704/data-editor-blob-uploading branch November 3, 2023 08:56
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.

7 participants