Merged
Conversation
Contributor
|
@Mdevlin4 thanks for putting this together! To make the search box look and behave like how it is on the dashboard page we think it should look like this With a filter (notice the x button to cancel) Tell us if you need help in getting it look like that. |
Removed search buttons and changed the filter to apply when the user types into the input box
…/madevl/labelfilter # Conflicts: # server/webapp/WEB-INF/rails.new/app/assets/javascripts/pipeline_history_search.js # server/webapp/WEB-INF/rails.new/app/assets/stylesheets/css/pipeline-history.scss # server/webapp/WEB-INF/vm/pipeline/pipeline_history.vm
Contributor
Author
| PipelinePauseInfo pauseInfo = pipelinePauseService.pipelinePauseInfo(pipelineName); | ||
| boolean hasBuildCauseInBuffer = pipelineScheduleQueue.hasBuildCause(CaseInsensitiveString.str(pipelineConfig.name())); | ||
| PipelineInstanceModels pipelineHistory = pipelineHistoryService.load(pipelineName, pagination, username, true); | ||
| PipelineInstanceModels pipelineHistory = (labelFilter == null || labelFilter.trim().isEmpty()) ? |
Contributor
There was a problem hiding this comment.
Sorry, missed this earlier.
We have a utility method https://github.com/gocd/gocd/blob/master/base/src/com/thoughtworks/go/util/StringUtil.java#L161 for checking blank strings can you use that here?
Contributor
Author
|
Thanks for the tip about the utility methods, I switched it to use the StringUtil class for the blank string check. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Added an input box to the pipeline history view to filter pipelines by their label, comment, build cause, or revision.