Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

fix: required multiselect #842

Merged

Conversation

lucasdittrichzup
Copy link
Contributor

Description

The adoption team found a bug in the multiselect input when the required field is not sent.

To solve this, a validation was added that checks if the field is sent before being used in the code.

Close #839

How to verify it

  1. clone this PR (git fetch origin pull / 842 / head: fix/required-multiselect)
  2. create a formula with multiselect input without the required field
  3. run the formula and verify that the error no longer occurs

Changelog

Add validation in case the required field is not sent in the multiselect input

Signed-off-by: lucas.dittrich <lucas.dittrich@zup.com.br>
Signed-off-by: lucas.dittrich <lucas.dittrich@zup.com.br>
@lucasdittrichzup lucasdittrichzup added 🪲 bug Report a bug encountered while operating Ritchie ✔️ ready-for-review ready for review labels Jan 28, 2021
@lucasdittrichzup lucasdittrichzup self-assigned this Jan 28, 2021
@codecov-io
Copy link

Codecov Report

Merging #842 (04fcaaa) into master (88bc0a3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #842   +/-   ##
=======================================
  Coverage   84.34%   84.34%           
=======================================
  Files         113      113           
  Lines        4011     4011           
=======================================
  Hits         3383     3383           
  Misses        442      442           
  Partials      186      186           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 720656a...04fcaaa. Read the comment docs.

brunasilvazup
brunasilvazup previously approved these changes Jan 29, 2021
pkg/prompt/multiselect.go Outdated Show resolved Hide resolved
@brunasilvazup brunasilvazup added 🕒 Wait waiting reply Waiting for an answer to a comment and removed ✔️ ready-for-review ready for review labels Feb 1, 2021
Signed-off-by: lucas.dittrich <lucas.dittrich@zup.com.br>
Copy link
Contributor

@henriquemoraeszup henriquemoraeszup left a comment

Choose a reason for hiding this comment

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

This will conflict with #843

@brunasilvazup brunasilvazup merged commit e6d305f into ZupIT:master Feb 8, 2021
@lucasdittrichzup lucasdittrichzup deleted the fix/required-multiselect branch July 21, 2021 19:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🪲 bug Report a bug encountered while operating Ritchie ✔️ ready-for-review ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Required field in multiselect input
5 participants