[Task]: Remove the positive check results from the transforms and the actions

Aperta
#9,376 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start with the two GUI check delegates and ActionValidatorUtils.addOkRemark, then inspect the TYPE_RESULT_OK uses under plugins/transforms, the engine classes named in the issue, and translation files. Update checks to report only errors and warnings, retain the constant for CheckResultDialog, and adjust tests that count or expect positive remarks; verify the related pipeline and workflow checks and tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Actions awaiting triage P3 Transforms
What needs to happen?

Remove the positive check results, ICheckResult.TYPE_RESULT_OK, produced by the check() methods of the transforms and the actions. They are no longer used and are not visible.

The results of the verification of a pipeline or a workflow in Hop GUI skip them:

CheckResultDialog, which can still show the successful results, is only used by the unit testing plugin to check the location of a CSV file, not to verify the transforms and the actions.

Yet these results are still built, with a message to translate for each of them, which makes the check() methods longer and adds keys to every translation file. For example, "Number of row clones is specified." or "Transform is receiving info from other transforms.".

Where they are produced:

  • The transforms: about 175 files under plugins/transforms use TYPE_RESULT_OK, plus DummyMeta and InjectorMeta in the engine.
  • The actions: mostly through the validators, ActionValidatorUtils.addOkRemark called by AndValidator for each validated property, and directly in ActionAbort.
  • PipelineMeta also adds one.

Proposal:

  • Report only the errors and the warnings in check(): a valid setting gives no remark.
  • Remove the messages that are no longer used from the translation files.
  • Keep the constant ICheckResult.TYPE_RESULT_OK, still used by CheckResultDialog.
  • Update the unit tests that count or expect the positive remarks.
Issue Priority

Priority: 3

Issue Component

Component: Actions, Component: Transforms

Lingua principale
Java
Stelle
1.6k
Fork
499
Merge medio
1g 5h
PR unite (30g)
316

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/hop

Tutte le issue di apache/hop

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.