Skip to content
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

Consolidate property filters into a class #1441

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

plypaul
Copy link
Contributor

@plypaul plypaul commented Oct 2, 2024

The signature of a few functions in ValidLinkableSpecResolver take in a few arguments that describe how to filter the returned items based on properties. To simplify the signatures and enable improved caching in a later PR, this PR groups them into the LinkableElementFilter class.

@cla-bot cla-bot bot added the cla:yes label Oct 2, 2024
@plypaul plypaul marked this pull request as ready for review October 2, 2024 16:23


@dataclass(frozen=True)
class LinkableElementFilter(Mergeable):
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we call this LinkableElementPropertyFilter? On first glance I would have assumed this is referring to a filter on a group by spec or something similar to that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This actually gets updated in a later PR to filter by element name, so I kept this more general.

Base automatically changed from p--short-term-perf--15 to main October 2, 2024 19:49
@plypaul plypaul force-pushed the p--short-term-perf--16 branch from cf2796e to f7e3c05 Compare October 2, 2024 19:49
@plypaul plypaul merged commit fab87da into main Oct 2, 2024
11 checks passed
@plypaul plypaul deleted the p--short-term-perf--16 branch October 2, 2024 19:52
courtneyholcomb pushed a commit that referenced this pull request Oct 9, 2024
The signature of a few functions in `ValidLinkableSpecResolver` take in
a few arguments that describe how to filter the returned items based on
properties. To simplify the signatures and enable improved caching in a
later PR, this PR groups them into the `LinkableElementFilter` class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants