Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Security Analysis Results filters not saved when switching between projects that have respectively precontingencies and postcontingencies in mapdb #200

Open
jonenst opened this issue May 6, 2019 · 1 comment

Comments

@jonenst
Copy link
Contributor

jonenst commented May 6, 2019

  • Do you want to request a feature or report a bug?
    A bug

  • What is the current behavior?
    In the following circumstances, the filters of the security analysis results are not saved.

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    Prepare 2 projects with security analyses, where one project has precontingency and the other postcontingency violations. Change the default filter on both projects to show the contingency. Close the GSE and reopen it. Only the filter of the project selected during shutdown is saved, the other is reset.

  • What is the expected behavior?
    Both filters should be saved.

  • Please tell us about your environment:

    • PowSyBl Version: 2.5
    • OS Version: linux
@jonenst
Copy link
Contributor Author

jonenst commented May 7, 2019

The filters are stored using the java.util.Preferences API (note: on unix in $HOME/.java/.userPrefs/com/powsybl/gse/security/prefs.xml )

When calling dispose on the SecurityAnalysisViewer, we get the prefs to save but CheckListView getCheckModel().getCheckedIndices() gives an empty list.. Not sure if it's because it's tabbed out or because of the HideSidesPane or something else..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant