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

capsule result urls in api object #2905

Merged
merged 47 commits into from
Mar 9, 2023
Merged

capsule result urls in api object #2905

merged 47 commits into from
Mar 9, 2023

Conversation

thoniTUB
Copy link
Collaborator

Provide descriptive information about result assets

@thoniTUB thoniTUB marked this pull request as ready for review February 1, 2023 15:07
@thoniTUB thoniTUB requested a review from awildturtok February 1, 2023 15:07
@@ -49,7 +48,7 @@ public abstract class ExecutionStatus {
/**
* The urls under from which the result of the execution can be downloaded as soon as it finished successfully.
*/
private List<URL> resultUrls = Collections.emptyList();
private List<ResultAsset> resultUrls = Collections.emptyList();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Bitte openapi spec anpassen

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ist angepasst :)

Comment on lines 46 to 47
new ResultAsset("Arrow File", ResultArrowResource.getFileDownloadURL(uriBuilder.clone(), (ManagedExecution<?> & SingleTableResult) exec)),
new ResultAsset("Arrow Stream", ResultArrowResource.getStreamDownloadURL(uriBuilder.clone(), (ManagedExecution<?> & SingleTableResult) exec))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Müssten die nicht sogar lokalisiert sein?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Streng genommen ja, aber sie werden gerade nicht ausgegeben

@@ -30,7 +31,7 @@
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Path("result/")
@Path("result/csv")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Api Änderung bitte in openapi eintragen, und ist das JupyEnd schon informiert über die Änderung?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Das muss ich noch klären, aber an sich bekommt es wie das Frontend die URL als dem ExecutionStatus und leitet sich die nicht selber her.

@MaxVonKnobloch ist das ein Problem aus Sicht der CqAPI wenn der Pfad sich hier ändert? Wie matched du momentan auf das Arrow-Format

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@awildturtok ist noch nicht in OpenApi drinne ;)

Comment on lines +48 to +76
"method": "GET",
"path": "/result/csv/{query}.csv",
"clazz": "ResultCsvResource"
},
{
"method": "GET",
"path": "/result/xlsx/{query}.xlsx",
"clazz": "ResultExcelResource"
},
{
"method": "GET",
"path": "/result/arrow/{query}.arrs",
"clazz": "ResultArrowResource"
},
{
"method": "GET",
"path": "/result/arrow/{query}.arrf",
"clazz": "ResultArrowResource"
},
{
"method": "GET",
"path": "/result/parquet/{query}.parquet",
"clazz": "ResultParquetResource"
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mir ist nicht klar, warum du die Doppelung brauchst

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Es ist hier nicht so offensichtlich, aber ich habs gemacht damit es einheitlich ist, denn der ExternalResultProvider mapped kann auch auf die Formate mappen und dann würde es einen Problem geben, so hat jetzt erstmal jeder Provider seinen Namespace

@thoniTUB thoniTUB force-pushed the feature/result-assets branch from 01cd6cc to 23a7f8a Compare February 16, 2023 12:58
fabian-bizfactory and others added 10 commits February 20, 2023 10:35
…ignment-patch

Fix tooltip alignment with popperOptions using padding instead of skidding
# Conflicts:
#	backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java
#	backend/src/main/java/com/bakdata/conquery/io/result/ResultRender/ResultRendererProvider.java
#	backend/src/main/java/com/bakdata/conquery/io/result/ResultUtil.java
#	backend/src/main/java/com/bakdata/conquery/io/result/arrow/ResultArrowProcessor.java
#	backend/src/main/java/com/bakdata/conquery/io/result/excel/ResultExcelProcessor.java
#	backend/src/main/java/com/bakdata/conquery/models/config/ArrowResultProvider.java
#	backend/src/main/java/com/bakdata/conquery/models/config/CsvResultProvider.java
#	backend/src/main/java/com/bakdata/conquery/models/config/ExcelResultProvider.java
#	backend/src/main/java/com/bakdata/conquery/models/config/ParquetResultProvider.java
#	backend/src/main/java/com/bakdata/conquery/models/forms/managed/ManagedForm.java
Signed-off-by: Max Thonagel <[email protected]>
@thoniTUB thoniTUB requested a review from awildturtok February 27, 2023 12:08
static void setup() throws NoSuchAlgorithmException {
// Generate a key pair
KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance("RSA");
keyGenerator.initialize(1024);

Check failure

Code scanning / CodeQL

Use of a cryptographic algorithm with insufficient key size

This [key size](1) is less than the recommended key size of 2048 bits.
@thoniTUB thoniTUB requested a review from Kadrian as a code owner March 1, 2023 12:55
@thoniTUB thoniTUB merged commit 64a735c into develop Mar 9, 2023
@delete-merged-branch delete-merged-branch bot deleted the feature/result-assets branch March 9, 2023 08:05
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.

4 participants