Refactor: Extract shared logic in AppCache (Fixes #1536) by Bhagyashri77777 · Pull Request #1796 · imDarshanGK/AI-dev-assistant · GitHub
Skip to content

Refactor: Extract shared logic in AppCache (Fixes #1536) - #1796

Open
Bhagyashri77777 wants to merge 15 commits into
imDarshanGK:mainfrom
Bhagyashri77777:refactor-appcache-1536
Open

Bhagyashri77777 wants to merge 15 commits into
imDarshanGK:mainfrom
Bhagyashri77777:refactor-appcache-1536

Conversation

@Bhagyashri77777

Copy link
Copy Markdown
Contributor

Description

This PR resolves issue #1536 by refactoring the repetitive logic inside the AppCache service.

Changes Made:

  • Created a new helper function _get_valid_key() to safely handle the cache_enabled check and key generation.
  • Updated the get() and set() methods to use this new helper function.
  • Removed duplicated code to make the file much cleaner and easier to maintain.

This is contributed under GSSoC '26. Let me know if any other changes are needed!

@github-actions

Copy link
Copy Markdown

@github-actions github-actions Bot added the stale label Sep 16, 2026

@imDarshanGK imDarshanGK 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.

@github-actions github-actions Bot removed the stale label Sep 21, 2026
@Bhagyashri77777

Copy link
Copy Markdown
Contributor Author

Hi @imDarshanGK! I have updated the code to address the test configuration leakage, fixed the TTL logic, and resolved all the strict CI formatting and linting errors. All checks are finally passing green... Could you please re-review this when you have a moment? Thank you so much for your patience and for helping me learn...

@github-actions

Copy link
Copy Markdown

👋 This PR has had no activity for 7 days.

Please push updates or comment if you still need more time.

Inactive PRs may be closed automatically after 7 more days.

@github-actions github-actions Bot added the stale label Sep 29, 2026
@github-actions github-actions Bot removed the stale label Sep 30, 2026
@github-actions

Copy link
Copy Markdown

@github-actions github-actions Bot added the stale label Oct 14, 2026
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