Skip to content

fix: fixed the duplicate key issue#6

Merged
LukasNiessen merged 3 commits into
LukasNiessen:mainfrom
DebanKsahu:fix/_build_cache_key
Jun 15, 2026
Merged

fix: fixed the duplicate key issue#6
LukasNiessen merged 3 commits into
LukasNiessen:mainfrom
DebanKsahu:fix/_build_cache_key

Conversation

@DebanKsahu

Copy link
Copy Markdown
Contributor

Pull Request

  • _build_cache_key directly sorting exclude_patterns and converting them into tuple, this ignoring the duplicate patterns that might be present in exclude_patterns list which might cause redundant GraphCacheKey generation.
  • This pull request makes a minor improvement to the cache key generation logic by ensuring that duplicate values in exclude_patterns are removed before sorting and creating the cache key tuple. This helps prevent unnecessary cache misses due to repeated patterns.

Change Type

  • Bug fix
  • Feature
  • Documentation
  • Refactoring

- `_build_cache_key` directly sorting exclude_patterns and converting them into tuple, this ignoring the duplicate patterns that might be present in `exclude_patterns` list which might cause redundant `GraphCacheKey` generation.
@DebanKsahu DebanKsahu requested a review from LukasNiessen as a code owner May 27, 2026 03:09
…om `excludes` in `extract_graph()` method.

- The reason, apart from `_build_cache_key()` function `exclude` also used by some other private functions also.

@LukasNiessen LukasNiessen left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM

@LukasNiessen LukasNiessen merged commit 1d77892 into LukasNiessen:main Jun 15, 2026
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

2 participants