Skip to content

Fixes problem destroying objects outside a interactive console#613

Merged
averissimo merged 5 commits intomainfrom
612-finalize_objects_session@main
Dec 4, 2024
Merged

Fixes problem destroying objects outside a interactive console#613
averissimo merged 5 commits intomainfrom
612-finalize_objects_session@main

Conversation

@averissimo
Copy link
Copy Markdown
Contributor

@averissimo averissimo commented Aug 13, 2024

Pull Request

Fixes #612

notes:

  • When the rsession is closed the default session object is changed to NULL, while the module's session is not finalized is not. This ensures that it always looks at the current reactive domain

Changes description

  • session_bindings are only cleared if there is a non-null active domain (session) and it hasn't ended

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 13, 2024

badge

Code Coverage Summary

Filename                        Stmts    Miss  Cover    Missing
----------------------------  -------  ------  -------  -----------------------------------------------------------------------------------------------------------------------
R/calls_combine_by.R                7       0  100.00%
R/choices_labeled.R                49      14  71.43%   25, 36, 41, 51-56, 68, 72-76
R/count_labels.R                  102       0  100.00%
R/filter_panel_api.R               27       1  96.30%   132
R/FilteredData-utils.R             58      17  70.69%   38-43, 139, 161-170
R/FilteredData.R                  537     186  65.36%   110, 184, 323, 395, 500-508, 531, 550-593, 613-616, 657, 693, 713-745, 768-770, 773-787, 791-801, 804-847, 904, 916-938
R/FilteredDataset-utils.R          23       1  95.65%   125
R/FilteredDataset.R               230      72  68.70%   48, 147, 179, 206-276, 378
R/FilteredDatasetDataframe.R      120       8  93.33%   87, 148, 158, 233-237
R/FilteredDatasetDefault.R         18       4  77.78%   104-117
R/FilteredDatasetMAE.R            133      37  72.18%   56, 117-122, 159-164, 168-169, 187-209
R/FilterPanelAPI.R                 10       0  100.00%
R/FilterState-utils.R             101       2  98.02%   264, 294
R/FilterState.R                   361      61  83.10%   89, 213, 231-235, 242-243, 257-258, 264-265, 319, 321, 323, 375, 418, 639, 682-705, 715-734, 769-775, 784-790
R/FilterStateChoices.R            352     109  69.03%   301, 368-375, 379-396, 423-426, 439-450, 462-470, 474-503, 523-526, 529-532, 542-567, 578, 583, 594
R/FilterStateDate.R               213     127  40.38%   230, 282-437
R/FilterStateDatettime.R          307     197  35.83%   266, 318-547
R/FilterStateEmpty.R               53      31  41.51%   89, 99-104, 117, 129-169
R/FilterStateExpr.R                81      66  18.52%   167-278
R/FilterStateLogical.R            194     142  26.80%   136, 158, 218, 222-404
R/FilterStateRange.R              410     104  74.63%   262, 384, 517-521, 524-534, 537, 548-554, 565-577, 581-591, 595-597, 610-636, 651, 654, 668-685, 720-725, 735-737
R/FilterStates-utils.R             70       7  90.00%   108, 127, 188-194
R/FilterStates.R                  372      32  91.40%   63, 89-93, 205, 327-336, 421-424, 467, 504, 564-568, 613, 734-737
R/FilterStatesDF.R                  5       0  100.00%
R/FilterStatesMAE.R                10       1  90.00%   40
R/FilterStatesMatrix.R              7       0  100.00%
R/FilterStatesSE.R                216      62  71.30%   36, 73-75, 85-87, 110-117, 125-132, 208, 233, 252-270, 278-296, 303
R/include_css_js.R                  5       5  0.00%    12-16
R/teal_slice.R                    107       4  96.26%   131, 195-196, 206
R/teal_slices.R                    84       5  94.05%   150-155
R/test_utils.R                     21       0  100.00%
R/utils.R                          26       0  100.00%
R/variable_types.R                 15       1  93.33%   48
R/zzz.R                            17      17  0.00%    3-47
TOTAL                            4341    1313  69.75%

Diff against main

Filename               Stmts    Miss  Cover
-------------------  -------  ------  --------
R/FilteredData.R          -2       0  -0.13%
R/FilteredDataset.R       -2       0  -0.27%
R/FilterState.R           -2       0  -0.09%
R/FilterStateExpr.R       -2      -2  +0.45%
R/FilterStates.R          +2       0  +0.05%
R/FilterStatesSE.R        -2       0  -0.26%
R/utils.R                 +2       0  +100.00%
TOTAL                     -6      -2  +0.00%

Results for commit: 188e9f5

Minimum allowed coverage is 80%

♻️ This comment has been updated with latest results

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 13, 2024

Unit Tests Summary

  1 files   29 suites   23s ⏱️
367 tests 367 ✅ 0 💤 0 ❌
819 runs  819 ✅ 0 💤 0 ❌

Results for commit 188e9f5.

♻️ This comment has been updated with latest results.

@vedhav vedhav self-requested a review August 14, 2024 07:12
@m7pr
Copy link
Copy Markdown
Contributor

m7pr commented Aug 14, 2024

Style check failed

Copy link
Copy Markdown
Contributor

@vedhav vedhav left a comment

Choose a reason for hiding this comment

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

LGTM! The issue is resolved and the fix is reasonable.

@averissimo averissimo merged commit 2528aad into main Dec 4, 2024
@averissimo averissimo deleted the 612-finalize_objects_session@main branch December 4, 2024 14:14
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: When the shiny app is run using Rscript

3 participants