Added backend support for multiple files in XSLT. #272

Merged
bema merged 15 commits from widlam/add_multiplefiles_xslt into master 2023-12-04 06:59:06 +01:00
Collaborator
No description provided.
widlam added 14 commits 2023-12-01 12:20:39 +01:00
widlam requested review from bema 2023-12-01 12:20:45 +01:00
bema changed title from Added backend support for multiple files in XSLT. to WIP: Added backend support for multiple files in XSLT. 2023-12-01 13:15:31 +01:00
bema reviewed 2023-12-01 13:24:38 +01:00
@@ -2,6 +2,7 @@ package com.r11.tools.controller;
import com.google.gson.Gson;
import com.r11.tools.controller.internal.*;
import com.r11.tools.model.XMLMultipleFilesBody;
Collaborator

This is unneeded, so should be removed

This is unneeded, so should be removed
bema reviewed 2023-12-01 13:25:47 +01:00
@@ -0,0 +1,38 @@
package com.r11.tools.controller.internal;
import com.r11.tools.model.XMLMultipleFilesBody;
import com.r11.tools.model.XMLRequestBody;
Collaborator

Unused import, removal needed

Unused import, removal needed
bema reviewed 2023-12-01 13:25:57 +01:00
@@ -0,0 +2,4 @@
import com.r11.tools.model.XMLMultipleFilesBody;
import com.r11.tools.model.XMLRequestBody;
import com.r11.tools.xml.Saxon;
Collaborator

Same as above

Same as above
bema reviewed 2023-12-01 13:30:54 +01:00
@@ -16,0 +25,4 @@
* @return transformed xml
* @throws SaxonApiException thrown on stylesheet or transformation error
*/
public String processXSLT(XMLMultipleFilesData[] data, String transform) throws SaxonApiException, IOException{
Collaborator

I would extract some parts of the code from this method to separate private methods to increase readability

I would extract some parts of the code from this method to separate private methods to increase readability
bema reviewed 2023-12-01 13:33:38 +01:00
@@ -108,6 +108,7 @@ function prepareRequestBody():string {
"processor": engine.value,
"version": version.value
});
console.log(requestBody)
Collaborator

We should left console.logs like this in production code as it serves no purpose, altough I understand that can happen ;)

We should left console.logs like this in production code as it serves no purpose, altough I understand that can happen ;)
bema requested changes 2023-12-01 13:39:34 +01:00
bema left a comment
Collaborator

There are some minor things to correct, like unused imports and one method that requires splitting. However, this change is made well overall.

There are some minor things to correct, like unused imports and one method that requires splitting. However, this change is made well overall.
widlam added 1 commit 2023-12-01 14:21:52 +01:00
bema changed title from WIP: Added backend support for multiple files in XSLT. to Added backend support for multiple files in XSLT. 2023-12-04 06:57:56 +01:00
bema approved these changes 2023-12-04 06:58:31 +01:00
bema merged commit 6f2d16c2b9 into master 2023-12-04 06:59:06 +01:00
bema deleted branch widlam/add_multiplefiles_xslt 2023-12-04 06:59:06 +01:00
Sign in to join this conversation.
No description provided.