Repository navigation
fix: Clear client caches when environment is reloaded - #1509
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1509 +/- ##
=======================================
Coverage 95.90% 95.91%
=======================================
Files 44 44
Lines 3250 3255 +5
=======================================
+ Hits 3117 3122 +5
Misses 133 133 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
If I've done bc = BlueapiClient(...)
plans = bc.plans
devices = bc.devicesand then do >>>bc.reload_environment()How does this affect objects >>> plans = bc.plans
>>> devices = bc.devicesfor them to pick up the new cache? |
Contributor
Author
Yes. It might be possible to mark them as invalid somehow but for now the caches would need updating |
abbiemery
reviewed
Apr 30, 2026
abbiemery
left a comment
Contributor
There was a problem hiding this comment.
There should be a test to check state has cleared. Could you add the check for these in there?
1 task
tpoliaw
force-pushed
the
refresh-cache
branch
3 times, most recently
from
June 24, 2026 13:08
9747bc6 to
63521f2
Compare
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.
No description provided.