Skip to content

fix: Clear client caches when environment is reloaded#1509

Open
tpoliaw wants to merge 1 commit intomainfrom
refresh-cache
Open

fix: Clear client caches when environment is reloaded#1509
tpoliaw wants to merge 1 commit intomainfrom
refresh-cache

Conversation

@tpoliaw
Copy link
Copy Markdown
Contributor

@tpoliaw tpoliaw commented Apr 24, 2026

No description provided.

@tpoliaw tpoliaw requested a review from a team as a code owner April 24, 2026 10:03
@tpoliaw tpoliaw linked an issue Apr 24, 2026 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.28%. Comparing base (af06958) to head (3a9870f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1509   +/-   ##
=======================================
  Coverage   95.27%   95.28%           
=======================================
  Files          43       43           
  Lines        3173     3178    +5     
=======================================
+ Hits         3023     3028    +5     
  Misses        150      150           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oliwenmandiamond
Copy link
Copy Markdown
Contributor

If I've done

bc = BlueapiClient(...)
plans = bc.plans
devices = bc.devices

and then do

>>>bc.reload_environment()

How does this affect objects plans and devices? Do I have to reassign plans and devices again

>>> plans = bc.plans
>>> devices = bc.devices

for them to pick up the new cache?

@tpoliaw
Copy link
Copy Markdown
Contributor Author

tpoliaw commented Apr 24, 2026

Do I have to reassign plans and devices again

Yes. It might be possible to mark them as invalid somehow but for now the caches would need updating

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refreshing the environment should refresh the cached plans

2 participants