Skip to content

Commit

Permalink
Merge branch 'feature/15227-process-spec-mqtt-airflow' into 'modis_ma…
Browse files Browse the repository at this point in the history
…ster'

#94 & #102 Specific process mqtt airflow

See merge request datalake/docker_datalake!111
  • Loading branch information
TheoLGG-Modis committed Oct 25, 2021
2 parents f05c8d0 + 0fbe382 commit b7a2fc3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
11 changes: 6 additions & 5 deletions process_zone/apache_airflow/dags/branching.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,12 @@ def default_application_json(**kwargs):
# Récupération du fichier encoder dans l'object swift
swift_result = swift_object[1]
processed_data = {}
if "application/json" in metadata_doc[content_type]:
process_type = "time_series_json"
# Json parsing
processed_data = extract_transform_load_time_series_json(
swift_result, swift_container, swift_id, process_type)
if "x-object-meta-source" not in swift_object[0]:
if "application/json" in metadata_doc[content_type]:
process_type = "time_series_json"
# Json parsing
processed_data = extract_transform_load_time_series_json(
swift_result, swift_container, swift_id, process_type)
return processed_data


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ModelAddForm extends React.Component {
}

if (this.state.selectedTypesFiles.length === 0) {
this.toastError("Veuillez ajouter au minimum un type de fichier accepter !");
this.toastError("Veuillez ajouter au minimum un type de fichier accepté !");
nbErrors += 1;
}

Expand Down Expand Up @@ -185,10 +185,6 @@ export class ModelAddForm extends React.Component {
});
}

//handleCallbackData = (childData) =>{
// this.setState({dataFilters: childData})
//}

render() {
let Metadonnees = () => {
let data = Array.from(this.state.metadonnees);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ export class ModelEditForm extends React.Component {
});
}

//handleCallbackData = (childData) =>{
// this.setState({dataFilters: childData})
//}

render() {
let Metadonnees = () => {
let data = Array.from(this.state.metadonnees);
Expand Down

0 comments on commit b7a2fc3

Please sign in to comment.