Skip to content

Fix Pyreverse: Aggregations aren't filtered according to filter mode (PUB_ONLY, etc.) #10379

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pavan-msys
Copy link

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

This PR fixes an issue in Pyreverse where class-level aggregations and associations were not being filtered according to the selected filter mode (PUB_ONLY, ALL, etc.).

Currently, even private or protected attributes result in relationships in the diagram, regardless of the filter setting. This fix ensures that relationships are only created for attributes that match the visibility filter.

Closes #10373

@pavan-msys pavan-msys requested a review from DudeNr33 as a code owner May 14, 2025 11:16
@Pierre-Sassoulas Pierre-Sassoulas added pyreverse Related to pyreverse component Bug πŸͺ² labels May 14, 2025
@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.3.8 milestone May 14, 2025
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

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

Thank you for working on this, do you mind addint test using the example givenin the issue please ?

Copy link
Contributor

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 3bfca11

@pavan-msys
Copy link
Author

Hi @Pierre-Sassoulas

I've added the tests using the example from the issue. Please let me know if there's anything else needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pyreverse: Aggregations aren't filtered according to filter mode (PUB_ONLY, etc.)
2 participants