Skip to content
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

Add dynamic labels for DMA form flow results #64

Merged
merged 5 commits into from
Dec 17, 2024
Merged

Conversation

HawkiesZA
Copy link
Contributor

This adds dynamic labels to flow results. DS has been asked and first indications are that they approve.

@HawkiesZA HawkiesZA self-assigned this Dec 12, 2024
Copy link
Contributor

@rudigiesler rudigiesler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two small comments about the naming of the answer keys, but otherwise looks good!

# TODO: remove this hard-coding once we can have dynamic labels for flow results
write_result("mnch_onboarding_dma_form_v1.0_completed", "yes")
slug_end = concatenate(slug, "_", version, "_end")
write_result("slug", "@assessment_data.slug", label: "@slug_end")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we rather have the answer key be end instead of slug? To keep the naming consistent.

result_tag = concatenate("@slug", "_", "@version", "_question")
write_result("question", question.question, label: "@result_tag")
result_tag = concatenate("@slug", "_", "@version", "_", "@question_id")
write_result("@result_tag", "@question_response")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to change this one to also using a label, so that we don't have @result_tag as the question key.

@HawkiesZA HawkiesZA merged commit cd59451 into main Dec 17, 2024
2 checks passed
@HawkiesZA HawkiesZA deleted the add-dynamic-labels branch December 17, 2024 12:42
rudigiesler added a commit to praekeltfoundation/contentrepo-base-flow that referenced this pull request Dec 24, 2024
This pulls the changes from
praekeltfoundation/platform-mnch#64 into this
repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants