Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

close fwdata file when leaving the editor #925

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

hahn-kev
Copy link
Collaborator

@hahn-kev hahn-kev commented Jul 4, 2024

closes #912

there's now a home button on the editor, when you click it the fwdata file will be closed to let you open the project in flex. If you have the project open on another tab it will be sent home with a message about why they were navigated away.

@hahn-kev hahn-kev requested a review from rmunn July 4, 2024 09:18
Copy link

github-actions bot commented Jul 4, 2024

UI unit Tests

11 tests  ±0   11 ✅ ±0   0s ⏱️ ±0s
 3 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit a90bf79. ± Comparison against base commit e5074b9.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

FW Lite Unit Tests

34 tests  ±0   34 ✅ ±0   5s ⏱️ -1s
 4 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit a90bf79. ± Comparison against base commit e5074b9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@rmunn rmunn left a comment

Choose a reason for hiding this comment

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

I don't see the code that calls OnDisconnectedAsync when navigating away, but I assume that's already set up in the SignalR configuration somewhere (I don't yet have any experience with SignalR) so I'll assume it's working correctly. My only concern is to find out whether the IMemoryCache.Remove() call will actually trigger post-eviction callbacks (see below). If it does, then this looks good to me.

backend/FwDataMiniLcmBridge/FwDataFactory.cs Show resolved Hide resolved
backend/FwDataMiniLcmBridge/FwDataFactory.cs Show resolved Hide resolved
frontend/viewer/src/ProjectView.svelte Outdated Show resolved Hide resolved
hahn-kev added 2 commits July 5, 2024 16:51
# Conflicts:
#	backend/FwDataMiniLcmBridge/FwDataBridgeKernel.cs
#	frontend/viewer/src/App.svelte
#	frontend/viewer/src/ProjectView.svelte
@hahn-kev hahn-kev merged commit 9f36064 into develop Jul 5, 2024
11 checks passed
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.

Close FWData file on disconnect
2 participants