After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 633293 - Export/Import
Export/Import
Status: RESOLVED OBSOLETE
Product: baobab
Classification: Core
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Baobab Maintainers
Baobab Maintainers
: 485713 536503 676545 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-10-27 20:58 UTC by Ryan Hughes
Modified: 2021-05-26 09:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
import/export implementation (15.91 KB, patch)
2011-10-18 20:51 UTC, Oliver Gerlich
none Details | Review
import/export implementation (20.21 KB, patch)
2011-10-18 20:54 UTC, Oliver Gerlich
none Details | Review
Add ability to save and load reports in JSON format. (10.78 KB, patch)
2012-09-06 17:29 UTC, Stefano Facchini
none Details | Review
Add ability to save and load reports in JSON format (12.01 KB, patch)
2012-09-08 11:52 UTC, Stefano Facchini
none Details | Review
Add ability to save and load reports in JSON format (13.19 KB, patch)
2013-07-20 16:04 UTC, Stefano Facchini
none Details | Review

Description Ryan Hughes 2010-10-27 20:58:08 UTC
There should be a way to export the findings.  Make pngs and svgs out of the graph files, and export the tree as text, xml, and such.

You should be able to re-import the xml exports for later interactive analysis.  It won't give you the most up-to-date picture, but it'll let you come back to analyze stuff later without having to re-scan.

And being able to export/import would let me share my scan with others, if I'm dealing with a shared drive.  I'd say "take a look at this graph, it shows that you're hogging all the disk space!  Import this xml file into baobab and click around if you need to figure out what files of yours are taking up all the space."

I'd like that.
Comment 1 Oliver Gerlich 2011-10-18 20:50:38 UTC
There's an implementation of import/export for Baobab available now at https://github.com/oliver/gnome-utils . The complete patch is also attached.

The change adds "Open Snapshot" and "Save Snapshot" menu items. It dumps the currently displayed tree to XML file and can load that file later.
There is currently no way to do import/export from command line, or to create snapshots on headless systems; this could be added later.

So far, I see the following possibly open points:
- what name to use for "import" and "export"? The current names might be confused with existing screenshot export feature
- menu item accelerators (Ctrl+O, Ctrl+S) conflict with existing accels
  -> just remove accels for Import/Export?
- should we use some special file extension for created files?

What else do you think would be necessary to get this patch into Baobab?

Btw. bugs #485713, #536503 and #616192 are about a similar feature.
Comment 2 Oliver Gerlich 2011-10-18 20:51:28 UTC
Created attachment 199366 [details] [review]
import/export implementation
Comment 3 Oliver Gerlich 2011-10-18 20:54:49 UTC
Created attachment 199367 [details] [review]
import/export implementation

Actual full patch (the previous patch was missing one commit)
Comment 4 Paolo Borelli 2012-07-31 11:09:52 UTC
*** Bug 485713 has been marked as a duplicate of this bug. ***
Comment 5 Paolo Borelli 2012-08-27 19:02:56 UTC
*** Bug 676545 has been marked as a duplicate of this bug. ***
Comment 6 Emmanuele Bassi (:ebassi) 2012-09-05 09:55:04 UTC
Comment on attachment 199367 [details] [review]
import/export implementation

the patch is obsolete: Baobab was rewritten after the gnome-utils split.
Comment 7 Stefano Facchini 2012-09-06 17:29:47 UTC
Created attachment 223677 [details] [review]
Add ability to save and load reports in JSON format.
Comment 8 Stefano Facchini 2012-09-06 17:31:28 UTC
This patch adds a basic import/export functionality. It requires json-glib master.
Comment 9 Paolo Borelli 2012-09-06 19:21:37 UTC
Ciao Stefano! Glad to see you around...

The patch looks pretty good at a quick glance, but I am not convinced that the appmenu is the right place for this...
Comment 10 Stefano Facchini 2012-09-08 11:52:22 UTC
Created attachment 223805 [details] [review]
Add ability to save and load reports in JSON format

Patch applies to the 'rework-toolbar' branch
Comment 11 Stefano Facchini 2013-07-20 10:15:14 UTC
*** Bug 536503 has been marked as a duplicate of this bug. ***
Comment 12 Stefano Facchini 2013-07-20 16:04:57 UTC
Created attachment 249698 [details] [review]
Add ability to save and load reports in JSON format

Updated patch on current master
Comment 13 André Klapper 2021-05-26 09:26:49 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of Baobab, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/baobab/-/issues/

Thank you for your understanding and your help.