Skip to content

#13360: Integrate project version restore tool into GUI - #14997

Merged
magnesj merged 2 commits into
devfrom
restore-project-versions-tool-13360
Oct 21, 2026
Merged

magnesj merged 2 commits into
devfrom
restore-project-versions-tool-13360

Conversation

@magnesj

@magnesj magnesj commented Oct 21, 2026

Copy link
Copy Markdown
Member

Fixes #13360

An external standalone tool (ThirdParty/extract-projectfile-versions) was previously used to restore project file revisions from a project's backup database (.rspdb), but it was difficult for end users to access and use.

This PR integrates the same functionality directly into ResInsight with a GUI:

  • Added RiaProjectBackupTools::extractVersionsToFolder() to read all stored revisions from a project's .rspdb backup database and write each one to a timestamped .rsp file in a destination folder.
  • Added RicRestoreProjectVersionsUi, a dialog for selecting the project file and export folder, defaulting to the currently open project.
  • Added RicRestoreProjectVersionsFeature, a new command feature wired into the File menu as Restore Previous Project Versions..., next to Save Project / Save Project As.

Testing

  • Built ResInsight target successfully (RelWithDebug, existing build folder).
  • Ran clang-format on all new/modified files.

@magnesj
magnesj force-pushed the restore-project-versions-tool-13360 branch 6 times, most recently from 18f80a0 to 7e71080 Compare October 21, 2026 12:42
Add a GUI feature for restoring previous versions of a project file from
its backup database, replacing the need for the external standalone tool.

- RiaProjectBackupTools: add extractVersionsToFolder() to read all stored
  revisions from a project's .rspdb backup database and write each one to
  a timestamped .rsp file in a destination folder.
- RicRestoreProjectVersionsUi: dialog for selecting the project file and
  export folder, defaulting to the currently open project. Adds a Recent
  Project Files dropdown (backed by RiuRecentFileActionProvider) that
  quickly populates the project file and export folder fields.
- RicRestoreProjectVersionsFeature: new command feature wired into the
  File menu as 'Restore Previous Project Versions...', using the
  OpenFolder icon and placed after a separator below Save Project / Save
  Project As.
- RiuRecentFileActionProvider: add recentProjectFiles() to expose the
  list of recently used project files.
- Added '...' suffix to Save Project As, consistent with other
  dialog-launching actions.
@magnesj
magnesj force-pushed the restore-project-versions-tool-13360 branch from 7e71080 to cef0aac Compare October 21, 2026 12:45
@magnesj
magnesj marked this pull request as ready for review October 21, 2026 12:45
@magnesj magnesj self-assigned this Oct 21, 2026
@magnesj
magnesj requested a review from jonjenssen October 21, 2026 13:08
@magnesj
magnesj merged commit 54cfb5e into dev Oct 21, 2026
23 checks passed
@magnesj
magnesj deleted the restore-project-versions-tool-13360 branch October 21, 2026 20:23
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.

Integrate project version restore tool

2 participants