Skip to content

Conversation

@pranav700
Copy link

@pranav700 pranav700 commented Apr 9, 2019

What's this PR do? - Now you can filter the worksheet based on the color of your choice.

Where should the reviewer start? - Commit 349cf18

How should this be manually tested? - I think by visually checking input and output files

Any background context you want to provide? - ClosedXML does not have any feature which supports color based filtering. This PR is being proposed to enhance the capability of the solution

Screenshots (if appropriate)

Questions:

  • Is there a blog post?

  • Does the knowledge base need an update? -Yes

  • Does this add new (C#) dependencies?

  • C# Code Review: @csreviewer

  • Test Automation Review: @csreviewer

@igitur
Copy link
Member

igitur commented Apr 10, 2019

I noticed that you did all your work on your develop branch. It's better to branch of a new branch with a distinct name. That way, if you want to work on multiple pull requests, you have that option.

So far this PR looks good, but I notice that it doesn't take conditional formatting into account, and to do that would anyway be quite difficult. Isn't the use case of colour autofilters indeed to be combined with with conditional formats? Or, in your use case, do you actually want to filter on manually set background colours?

@pranav700
Copy link
Author

pranav700 commented Apr 10, 2019

Thanks for the review.
Yes, there is no conditional formatting involved in this use-case. This implementation is just for filtering manually set background colors.

@igitur
Copy link
Member

igitur commented Apr 10, 2019

Ok, good work so far. You still need to implement loading and saving of the color autofilter to and from the file.

@pranav700
Copy link
Author

If I am getting it correctly, then I think saving has been done in ClosedXML_Examples/AutoFilters/ColouredAutoFilter.cs and loading was done inside ClosedXML_Tests/Examples/AutoFilterTests.cs

@pranav700
Copy link
Author

@igitur - Did you get a chance to look into my comments?

@igitur igitur added this to the v0.96 milestone Jul 9, 2019
@igitur igitur added the enhancement Feature already exists, but should be enahanced. label Jul 9, 2019
@Pankraty
Copy link
Member

Pankraty commented Jul 9, 2019

@pranav700 could you please mark this checkbox in this PR:
image

I will push some formatting changes and then it will be ready to be included in 0.96.

@pranav700
Copy link
Author

@Pankraty - Done, thanks

@igitur igitur modified the milestones: v0.96, v0.95 Feb 25, 2020
Copy link
Member

@igitur igitur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I approved too soon. This PR just hides or shows lines depending on the color filter. What's still needed, is to load and save the actual filter from the file.

The file that the test case produces currently looks like this:
image

But should look like this:
image

@igitur igitur removed this from the v0.95 milestone Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature already exists, but should be enahanced.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants