-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java
Outdated
Show resolved
Hide resolved
@@ -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(); |
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.
Bitte openapi spec anpassen
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.
Ist angepasst :)
new ResultAsset("Arrow File", ResultArrowResource.getFileDownloadURL(uriBuilder.clone(), (ManagedExecution<?> & SingleTableResult) exec)), | ||
new ResultAsset("Arrow Stream", ResultArrowResource.getStreamDownloadURL(uriBuilder.clone(), (ManagedExecution<?> & SingleTableResult) exec)) |
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.
Müssten die nicht sogar lokalisiert sein?
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.
Streng genommen ja, aber sie werden gerade nicht ausgegeben
@@ -30,7 +31,7 @@ | |||
import lombok.extern.slf4j.Slf4j; | |||
|
|||
@Slf4j | |||
@Path("result/") | |||
@Path("result/csv") |
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.
Api Änderung bitte in openapi eintragen, und ist das JupyEnd schon informiert über die Änderung?
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.
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
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.
@awildturtok ist noch nicht in OpenApi drinne ;)
"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" | ||
}, |
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.
Mir ist nicht klar, warum du die Doppelung brauchst
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.
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
…ollide with providers of a similar name
01cd6cc
to
23a7f8a
Compare
Signed-off-by: Max Thonagel <[email protected]>
…ignment-patch Fix tooltip alignment with popperOptions using padding instead of skidding
…akdata/conquery into feature/result-assets-frontend
# 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]>
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
Use new Label Request Format in Frontend
Co-authored-by: awildturtok <[email protected]>
Result Assets get Type from url and fix a truncation oversight
Provide descriptive information about result assets