-
Notifications
You must be signed in to change notification settings - Fork 36
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
Multiple finders #23
Multiple finders #23
Conversation
@basil ping. Can you please review this? |
Hey @sparkoo, sorry for the delay in reviewing this. Looking at the new pipeline syntax you are proposing, it seems a bit strange that the first text finder uses a different syntax from the subsequent text finders. I also don't think it's obvious at first glance that the last finder will win. To help me understand this change, would you mind backing up and explaining the high-level problem you are trying to solve? This would help me understand how this new functionality would address that problem. |
Hi @basil, |
@basil anything else to this? I would happily rebase it as new changes caused merge conflicts again, but I need to know you would merge it then. |
Hello @basil would it be possible to merge this PR? I would really appretiate it, thank you. |
I am willing to go through with the multiple finders feature in general, but I want to make sure we get the API right before committing to it. As I mentioned before, the lack of symmetry between the first finder and the rest still seems off to me, and the way the last finder "wins" also seems non-obvious. I'm struggling to understand the use cases that motivate this design; some examples of how this would be used would be very helpful for me. Is there any reason one can't use multiple |
@basil I probably understand where you're going. I'm not using pipelines so I can't add text finder multiple times in job configuration UI. In pipelines, there should be possible to do something like this:
Is that what you mean? I'll try that. However, I'm afraid that list of other finders will have to stay there for UI configuration. |
…ext' invocations, updated tests
# Conflicts: # src/main/java/hudson/plugins/textfinder/TextFinderPublisher.java
@basil rebased. it's ok to go. |
@basil - can you merge it please? |
Thanks for the updates, @sparkoo! This is looking much better on the Pipeline side. Thanks for adding the multiple finder test for Pipeline. I added some code cleanup and did a merge with On the Freestyle side, I have three outstanding concerns at present:
|
@RadoslavCap In order to merge this, I need to be confident in the API, test coverage, and implementation. At this time, I have (minor!) outstanding concerns in each of those three areas, but once those concerns are addressed I'll be happy to move forward with merging this. |
Another issue I noticed while doing manual UI testing: after you click on the "Add additional Text Finder" button, it creates a drop-down with "Text Finder" which you have to click on again to get the additional finder to show up in the UI. This seems suboptimal in that it requires two clicks. An example of the correct behavior would be how the HTML Publisher plugin does it. It just has one "Add" button, and after one click the additional publisher is added to the UI. |
closing this one in favor of #47 |
This adds possibility to set multiple text finders to one build. Last one wins.
It's done in backward compatible way so no current configuration will be affected. I've kept support for pipelines. This patch replaces PR #9.
some implementation details:
TextFinderPublisher
there is newTextFinderModel
which is simple data object with all fields.TextFinderPublisher
have oneTextFinderModel
for base configuration and is providing it's values via "fake" getters. Other text finders are stored in list.pipelines config looks like this: