You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "bamaer (via GitHub)" <gi...@apache.org> on 2026/09/24 18:19:51 UTC
[PR] Fixes #8536 : Let the linter address Hop's own verify checks individu… (hop)
bamaer opened a new pull request, #8590:
URL: https://github.com/apache/hop/pull/8590
…ally
- Report lint findings in the editor as the linter's, the way the command line does
- Match a messageKey whose message has values filled in
- Keep a check's own error code as its rule id; suppressions and baselines also accept the classifying rule or the code
- Cap severity with the blanket native rule; a narrowed rule sets it
- Table input no longer repeats the missing-connection remark
**Please** add a meaningful description for your change here
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [x] Run `mvn clean install apache-rat:check` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
- [x] If you have a group of commits related to the same change, please squash your commits into one and force push your branch using `git rebase -i`.
- [x] Mention the appropriate issue in your description (for example: `addresses #123`), if applicable.
To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
you have to acknowledge this by using the following check-box.
- [x] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)
- [ ] In any other case, please file an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes #8536 : Let the linter address Hop's own verify checks individu… (hop)
Posted by "bamaer (via GitHub)" <gi...@apache.org>.
bamaer merged PR #8590:
URL: https://github.com/apache/hop/pull/8590
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes #8536 : Let the linter address Hop's own verify checks individu… (hop)
Posted by "mattcasters (via GitHub)" <gi...@apache.org>.
mattcasters commented on code in PR #8590:
URL: https://github.com/apache/hop/pull/8590#discussion_r4106451201
##########
plugins/transforms/tableinput/src/main/java/org/apache/hop/pipeline/transforms/tableinput/TableInputMeta.java:
##########
@@ -383,11 +385,22 @@ public void check(
} finally {
db.close();
}
- } else {
+ } else if (!Utils.isEmpty(connection)
Review Comment:
**[bug]** An unset connection (`null`, the field default on a new Table Input) never reaches this branch, and Verify still reports it twice. `variables.resolve(null)` returns null, and `serializer.load(null)` throws `HopException` (`"you need to specify the name..."`). The catch above this `else if` always adds `TableInputMeta.CheckResult.DatabaseMetaError` with that null argument, which MessageFormat renders as connection `'null'`. Because `connection` is empty, this new condition is false, so the remark is an uncoded `ERROR` in addition to `ReferencedDatabaseConnectionChecker`'s `CONNECTION_NOT_ASSIGNED`. A named missing connection does not throw (`load` returns null), which is the only case `aMissingConnectionIsReportedOnceByPipelineVerify` covers. The uncoded error is still reported as `HOP-CHECK`, so suppressing `CONNECTION_NOT_ASSIGNED` does not clear it.
**Suggestion:** Do not call `load` when the name is empty; let the pipeline checker report `CONNECTION_NOT_ASSIGNED`. In the catch, skip `DatabaseMetaError` when the resolved name is empty or still has a variable token, and add a check-transforms test with `setConnection(null)` that expects a single `CONNECTION_NOT_ASSIGNED` remark.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Fixes #8536 : Let the linter address Hop's own verify checks individu… (hop)
Posted by "bamaer (via GitHub)" <gi...@apache.org>.
bamaer commented on code in PR #8590:
URL: https://github.com/apache/hop/pull/8590#discussion_r4111303963
##########
plugins/transforms/tableinput/src/main/java/org/apache/hop/pipeline/transforms/tableinput/TableInputMeta.java:
##########
@@ -383,11 +385,22 @@ public void check(
} finally {
db.close();
}
- } else {
+ } else if (!Utils.isEmpty(connection)
Review Comment:
Fixed, but it isn't a duplicate: `HopMetadataPropertyWalker` skipped null fields, so `CONNECTION_NOT_ASSIGNED` was never reported for an unset connection and the uncoded error was the only remark. Guarding the `load` alone would have left it with no remark at all.
The walker can now report unset fields, the checker asks for them, and Table Input no longer loads an empty name. `null` and `""` each give one `CONNECTION_NOT_ASSIGNED` warning. Tests added at all three levels; verified in the GUI.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org