abcxyz / abcxyz/abc

Inputs that are conditionally skipped

Aberta
#289 1 comentário 0 reações 1 responsável Reivindicada por @tyroneclay Ver no GitHub
enhancement
Linguagem predominante
Go
Estrelas
16
Forks
4
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### TL;DR

Sometimes, one input is unnecessary, depending on the value of another input. For example, you might have two inputs `use_postgres`, and `postgres_config_file`; if `use_postgres` is false then you don't care about `postgres_config_file`.

One way this could look: we could add a CEL expression `skip_if` to each input. For example:

```
inputs:
- name: use_postgres
- name: postgres_config_file
default: 'postgres.conf'
skip_if: '!bool(use_postgres)'
```

cc @gjonathanhong

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Look at the input parsing logic in the codebase, likely in a config or schema package. Understand how CEL (Common Expression Language) expressions are currently evaluated, if at all. The change involves adding a 'skip_if' field to input definitions and modifying validation to conditionally ignore inputs. Check existing tests for input handling to see how to add new functionality.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Domínio
cli, tooling
Tipo de issue
Funcionalidade
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
40/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.