This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from metaflow import FlowSpec, step, Parameter | |
import awswrangler as wr | |
from create_glue_db import create_db | |
class AWSQueryFlow(FlowSpec): | |
bucket_uri = Parameter( | |
"bucket_uri", | |
default="s3://outerbounds-how-tos" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## convert HTML POST data or HTTP GET query string to JSON | |
## get the raw post data from the AWS built-in variable and give it a nicer name | |
#if ($context.httpMethod == "POST") | |
#set($rawAPIData = $input.path("$")) | |
#elseif ($context.httpMethod == "GET") | |
#set($rawAPIData = $input.params().querystring) | |
#set($rawAPIData = $rawAPIData.toString()) | |
#set($rawAPIDataLength = $rawAPIData.length() - 1) | |
#set($rawAPIData = $rawAPIData.substring(1, $rawAPIDataLength)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## convert HTML POST data or HTTP GET query string to JSON | |
## get the raw post data from the AWS built-in variable and give it a nicer name | |
#if ($context.httpMethod == "POST") | |
#set($rawAPIData = $input.path("$")) | |
#elseif ($context.httpMethod == "GET") | |
#set($rawAPIData = $input.params().querystring) | |
#set($rawAPIData = $rawAPIData.toString()) | |
#set($rawAPIDataLength = $rawAPIData.length() - 1) | |
#set($rawAPIData = $rawAPIData.substring(1, $rawAPIDataLength)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<component name="org.nuxeo.cors"> | |
<extension target="org.nuxeo.ecm.platform.web.common.requestcontroller.service.RequestControllerService" point="corsConfig"> | |
<corsConfig name="foobar" allowOrigin="*" supportedMethods="GET, POST, PUT, DELETE, HEAD, OPTIONS"> | |
<pattern>.*</pattern> | |
</corsConfig> | |
</extension> | |
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<component name="org.nuxeo.cors"> | |
<extension target="org.nuxeo.ecm.platform.web.common.requestcontroller.service.RequestControllerService" point="corsConfig"> | |
<corsConfig name="foobar" allowOrigin="*" supportedMethods="GET, POST, PUT, DELETE, HEAD, OPTIONS"> | |
<pattern>.* | |
</corsConfig> | |
</extension> | |
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name="org.nuxeo.browser.cache.settings"> | |
<require>org.nuxeo.ecm.platform.web.common.requestcontroller.service.RequestControllerService.defaultContrib</require> | |
<extension target="org.nuxeo.ecm.platform.web.common.requestcontroller.service.RequestControllerService" | |
point="responseHeaders"> | |
<header name="X-UA-Compatible">IE=10; IE=11</header> | |
<header name="Cache-Control">private, max-age=60, must-revalidate</header> | |
<header name="X-Content-Type-Options">nosniff</header> | |
<header name="X-XSS-Protection">1; mode=block</header> | |
<header name="X-Frame-Options">${nuxeo.frame.options:=SAMEORIGIN}</header> | |
<header name="Content-Security-Policy">default-src *; script-src 'unsafe-inline' 'unsafe-eval' data: *; style-src 'unsafe-inline' *; font-src data: * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Provider | |
@Produces({ "application/json+custom" }) | |
public class CustomJsonDocumentListWriter extends JsonDocumentListWriter { | |
private static final Log log = LogFactory.getLog(CustomJsonDocumentListWriter.class); | |
@Context | |
JsonFactory factory; | |
@Context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (namedParameters != null && !namedParameters.isEmpty()) { | |
// fall back on simple document if no type defined on page provider | |
if (searchDocumentModel == null) { | |
searchDocumentModel = new SimpleDocumentModel(); | |
} | |
for (Map.Entry<String, String> entry : namedParameters.entrySet()) { | |
String key = entry.getKey(); | |
String value = entry.getValue(); | |
try { | |
DocumentHelper.setProperty(session, searchDocumentModel, key, value, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entity-type": "esresponse", | |
"value": { | |
"entity-type": "documents", | |
"isPaginable": false, | |
"entries": [ | |
{ | |
"entity-type": "document", | |
"isCheckedOut": "", | |
"repository": "default", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR] Failed to execute goal on project nuxeo-launcher-commons: Could not resolve dependencies for project org.nuxeo.runtime:nuxeo-launcher-commons:jar:7.3-SNAPSHOT: Failed to collect dependencies at org.nuxeo.connect:nuxeo-connect-client:jar:1.4.20: Failed to read artifact descriptor for org.nuxeo.connect:nuxeo-connect-client:jar:1.4.20: Could not transfer artifact org.nuxeo.connect:nuxeo-connect-client:pom:1.4.20 from/to public-releases-mirror (http://maven.in.nuxeo.com/nexus/content/groups/public): maven.in.nuxeo.com: unknown error: Unknown host maven.in.nuxeo.com: unknown error -> [Help 1] |
NewerOlder