Skip to content

[radar-output] Fix path format config #4806

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/radar-output/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.0.2"
description: A Helm chart for RADAR-base output restructure service. This application reads data from intermediate storage and restructure the data into project-> subject-id-> data topic -> data split per hour. This service offers few options to choose the source and target of the pipeline.
name: radar-output
version: 1.2.2
version: 1.2.3
icon: "http://radar-base.org/wp-content/uploads/2022/09/Logo_RADAR-Base-RGB.png"
sources:
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-output
Expand Down
4 changes: 2 additions & 2 deletions charts/radar-output/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# radar-output
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/radar-output)](https://artifacthub.io/packages/helm/radar-base/radar-output)

![Version: 1.2.2](https://img.shields.io/badge/Version-1.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.2](https://img.shields.io/badge/AppVersion-3.0.2-informational?style=flat-square)
![Version: 1.2.3](https://img.shields.io/badge/Version-1.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.2](https://img.shields.io/badge/AppVersion-3.0.2-informational?style=flat-square)

A Helm chart for RADAR-base output restructure service. This application reads data from intermediate storage and restructure the data into project-> subject-id-> data topic -> data split per hour. This service offers few options to choose the source and target of the pipeline.

Expand Down Expand Up @@ -107,7 +107,7 @@ A Helm chart for RADAR-base output restructure service. This application reads d
| paths.input | string | `"topics"` | Relative path to intermediate storage root to browse for data |
| paths.output | string | `"output"` | Relative path to output storage to write data |
| paths.factory | string | `"org.radarbase.output.path.FormattedPathFactory"` | Output path construction factory |
| paths.properties | object | `{}` | Additional properties. For details see https://github.com/RADAR-base/radar-output-restructure/blob/master/restructure.yml |
| paths.pathProperties | object | `{"format":"${projectId}/${userId}/${topic}/${filename}","plugins":"fixed time key value"}` | Additional path configuration. For details see https://github.com/RADAR-base/radar-output-restructure/blob/master/restructure.yml |
| topics | object | `{"questionnaire_response":{"pathProperties":{"format":"${projectId}/${userId}/${topic}/${value:name}/${filename}","plugins":"fixed value"}}}` | Individual topic configuration |
| topics.questionnaire_response.pathProperties.format | string | `"${projectId}/${userId}/${topic}/${value:name}/${filename}"` | Alternative path output of the questionnaire_response topic |
| topics.questionnaire_response.pathProperties.plugins | string | `"fixed value"` | Alternative path plugins of the questionnaire_response topic |
Expand Down
7 changes: 5 additions & 2 deletions charts/radar-output/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ data:
# Output path construction factory
factory: {{ .Values.paths.factory }}
# Additional properties
properties:
{{ .Values.paths.properties | toYaml | indent 8 | trim }}
{{- if .Values.paths.pathProperties }}
path:
format: {{ .Values.paths.pathProperties.format }}
plugins: {{ .Values.paths.pathProperties.plugins | quote }}
{{- end }}

# Individual topic configuration
{{- if .Values.topics }}
Expand Down
6 changes: 4 additions & 2 deletions charts/radar-output/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ paths:
output: output
# -- Output path construction factory
factory: org.radarbase.output.path.FormattedPathFactory
# -- Additional properties. For details see https://github.com/RADAR-base/radar-output-restructure/blob/master/restructure.yml
properties: {}
# -- Additional path configuration. For details see https://github.com/RADAR-base/radar-output-restructure/blob/master/restructure.yml
pathProperties:
format: ${projectId}/${userId}/${topic}/${filename}
plugins: fixed time key value

# -- Individual topic configuration
topics:
Expand Down