Skip to content

Modified search to hide pipelines instead of just modifying the opacity#460

Merged
sachinsudheendra merged 3 commits intogocd:masterfrom
ciotlosm:master
Sep 24, 2014
Merged

Modified search to hide pipelines instead of just modifying the opacity#460
sachinsudheendra merged 3 commits intogocd:masterfrom
ciotlosm:master

Conversation

@ciotlosm
Copy link

For large organisations changing opacity is not helping as you have to scroll a lot. The intuitive behaviour would be to filter out the unwanted pipelines and just show the matching ones.

@ermauliks
Copy link
Contributor

Thanks for PR. You should also look for the related JavaScript tests for this.

@ciotlosm ciotlosm closed this Aug 26, 2014
@ciotlosm ciotlosm reopened this Aug 26, 2014
@ciotlosm
Copy link
Author

Updated the only test I could find related to search and opacity.

@kmugrage
Copy link
Contributor

kmugrage commented Sep 4, 2014

Marius, could you please fill out the form at http://www.go.cd/contribute/cla.html? Let me know if you have any questions.

Thanks

@ciotlosm
Copy link
Author

ciotlosm commented Sep 5, 2014

I've signed the CLA now, thanks for the heads up.

Marius

@ciotlosm ciotlosm closed this Sep 6, 2014
@ciotlosm ciotlosm reopened this Sep 6, 2014
@ciotlosm
Copy link
Author

ciotlosm commented Sep 6, 2014

@ermauliks you are correct. I am amazed I could mess up on such a simple change.

@ermauliks
Copy link
Contributor

@ciotlosm - did you get chance to fix this? Let me know if you need any help :-)

@arvindsv
Copy link
Member

@sachinsudheendra
Copy link
Contributor

@arvindsv I guess that the changes should be interchanged, i.e.

-$(targetElements).css('opacity', 1);
+$(targetElements).css('display', 'none');

should instead be

-$(targetElements).css('opacity', 1);
+$(targetElements).css('display', 'block');

at line 110 and the opposite at line 114.

@ermauliks - Please correct if my understanding is wrong.

@sachinsudheendra
Copy link
Contributor

@arvindsv Ok, I spoke too soon... Yes, you are right. The latest commit seems to have the changes.

@ermauliks
Copy link
Contributor

@sachinsudheendra - looks alright now. Good to go with.

FEEDBACK : When there is no pipeline found with given name, should we show a message? E.g. "No pipeline found under this group with given texts." or something similar.

@ciotlosm
Copy link
Author

Hi guys, I was away for holiday. I've made the change right after feedback was received, but I didn't comment back (just closed and reopened the merge request with the changes done).
I totally agree with the feedback, however that would be much more complex to achieve as I couldn't get the vagrant image to work for me at the moment.

sachinsudheendra added a commit to sachinsudheendra/gocd that referenced this pull request Sep 24, 2014
gocd#460 - Modified search to hide pipelines instead of just modifying the opacity
Moving the same fixes to jquery.listsearch.js in assets under Rails 4p
@sachinsudheendra sachinsudheendra merged commit 2f84d99 into gocd:master Sep 24, 2014
sachinsudheendra added a commit that referenced this pull request Sep 24, 2014
@sachinsudheendra
Copy link
Contributor

@ciotlosm I've migrated your changes to Rails4 as-well and I've have created a new PR - #576 . I'll be merging that and closing this PR without any action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants