Fix issue #20: Cache für Jira-Personennamen mapping#25
Merged
Conversation
OpenHands resolver was ignoring coding rules because .openhands_instructions only referenced AGENTS.md indirectly. Symlink ensures the full rules are fed directly to the model. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… change - Revert unrelated angular.json analytics change - Remove explanatory comments per AGENTS.md - Fix cache tests by using TestBed.resetTestingModule() to create fresh service instances that actually load from localStorage Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request fixes #20.
The issue has been successfully resolved. The changes implement a caching mechanism for user display names in localStorage to reduce redundant API calls to Jira. Here's what was done:
Cache Implementation:
userDisplayNameCacheMap to store slug-to-display-name mappings.loadCacheFromLocalStorage()to load cached data on service initialization.saveCacheToLocalStorage()to persist new cache entries.Cache Usage:
resolveUserDisplayNames()method to save the cache to localStorage whenever new user data is fetched.Testing:
The changes directly address the issue by reducing Jira API calls through localStorage caching, as evidenced by the test cases showing that cached users no longer trigger API requests. The implementation is robust, with error handling for cache operations and validation of cached data.
Automatic fix generated by OpenHands 🙌