WordPress-Simple-History icon indicating copy to clipboard operation
WordPress-Simple-History copied to clipboard

Export enhancements

Open bonny opened this issue 5 years ago • 8 comments

The export function could be a bit better:

  • More export formats, for example formats that can include the diff of post (HTML? JSON?).
  • Handle large logs without memory/timeouts. Create file using multipl AJAX calls and store in folder like wp_privacy_generate_personal_data_export_file() does.
  • Make export function more visible by adding a link or similar to the main log file.
  • Add option to export "what you see" while browsing the log, i.e. export the current "view".
  • Maybe use https://actionscheduler.org/ for background processing.
  • Add option to include CSV column headers, so users know what each column is

bonny avatar Apr 14 '19 15:04 bonny

Hi Pär,

We love Simple History, and in large part for its simplicity. Simple History just works. Any of our clients who would like to track user activity on their membership sites, automatically get Simple History.

While we love the simplicity, we'd very much like to see an export button on the search results page. Here's how we imagine this could be done while staying true to the simplicity of Simple History.

Currently the two options for export are JSON or CSV. We are only after CSV here. To keep the interface simple you could add a setting for "Preferred Export Format" so that the button that appears on the search results page would just export in either CSV or JSON. If you add other export formats later, they could also be included in this preference.

Here's a version with the export button at the bottom:

simple-history-interface-export-bottom

Here's a version with the export button at the top:

simple-history-interface-export-2a

Performance improvements on granular export are less of an issue than with the current global export. The big issue is that without granular export, there's no efficient way of getting data out of Simple History.

We have the skills to inject search results export ourselves into Simple History but would much prefer everyone enjoy the benefits. We feel strongly enough about this to contribute $150 to Simple History if search result export is coded this month (yes, there's time pressure, I'm sorry). Alas, if you were unable to make this improvement now, we'd have to do it ourselves.

Let us know if you are able to make this improvement, Pär, or if you have other ideas about it.

Once export is in, we'll be using the ability to register loggers to improve search and filtering for our events (FV Player). Thanks including the calls and filters which allow Simple History to play well with others.

AlecKinnear avatar Feb 13 '23 15:02 AlecKinnear

@AlecKinnear Glad to hear that you like the plugin!

I agree that the export needs some more work. At the moment development of the plugin is a bit slow due to lack of time, but hopefully I will have time to work on it more soon again.

Don't know if it's good enough for you but you could probably pretty easy create a "box" in the sidebar and add a link/button there that goes to the export page. It won't include the filters but it may be better than nothing. :/

bonny avatar Feb 16 '23 12:02 bonny

@bonny Thanks for the quick response. I didn't write back right away as I found your answer so frustrating. We need filters, we need selective export. I gave exact guidelines on how to build export functionality to be genuinely useful in a few hours. On top of that we offered to pay for the work (albeit $150). As a demonstration of good faith, I started to sponsor your work on Github.

We do not want to do this enhancement ourselves just for ourselves. We'd like you to do the selective CSV export enhancement now and get a contribution and have everyone enjoy the improved export functionality.

And at some point in a mythical future you can add html, json, xml whatever catches your fancy. You've set the bar too high and are letting everyone down by doing so. Make it easy. Just get selective export for CSV done, so the vast majority of your users can export data in a useful format.

I'm very tired of open source developers complaining that no one contributes and then when people come forward to contribute, the open source developers complain they have no time and are bored with the project anyway. This is why we cannot enjoy high quality FOSS software. And instead have to overpay for over-marketed buggy commercial software run by ethically challenged MBA types or get-rich-quicksters. Yes, I'm frustrated Pär.

AlecKinnear avatar Feb 22 '23 22:02 AlecKinnear

@AlecKinnear I understand that the export functionality is important to you so I understand the frustration. I also have reported issues in projects that received no replies or that gets closed without being fixed. It’s indeed very annoying.

Many other open source developers probably have the same problem that I have: a family and a full-time job, so it’s challenging to squeeze in more than an hour here and there to work on OSS projects.

bonny avatar Feb 23 '23 12:02 bonny

@bonny Pär I understand open source. I'm not asking you to work for free. I signed up to sponsor you on Github and promised $150/€150 (take your pick) to implement selective CSV import which is as described above is just a couple of hours of your time (half an hour to settle down and remember the code, forty minutes to write a solution, fifty minutes to test). Given that I'd probably sponsor you for a year if I was happy with what happened with this request, you are effectively refusing to improve export at all in Simple History for €270.

Of course the version you are talking about with multiple formats and some kind of special interface (which I deliberately did not ask for, just use the existing search function which prepares a selection already) would take about 25 hours to code and even then would be full of bugs and require continuous additions and fixes. Which is why you shouldn't code it, unless there are sponsors for the more exotic export formats. You would just be making trouble for yourself with little or no support for that work.

We implement feature requests all the time for our customers if they are willing to pay for it. If open-source developers won't accept sponsorship to improve their projects, the whole FOSS is doomed. We (we're FOSS developers as well) just can't seem to figure out a functional model at all. And it's a great pity.

Next question. If we go through the absolute misery of leaning Simple History's code well enough (we're half way there, your code is clean at least if the named variables are a little bit nested) to code the CSV export ourselves, will you accept the push request? I expect the answer will be no, as it's a lot of trouble to manage external code contributions. Which is exactly why I offered to donate to the project in the first place.

What a great contribution (Simple History) to WordPress just being left to atrophy and rot. All hail FOSS! Instead we will all have to deal with absolute crap adware tracking solutions full of admin notice interruptions, ads and annual renewal licenses. What's even better about WordPress these days are the plugin authors who claim their plugins should stop working after the license expires.

Rant over – it's not your fault that FOSS doesn't work and that WordPress has become a viper's den of spammy marketing wares instead of collective code which we developers all carefully cultivate in cheerful and considerate co-operation. This situation is just a symptom of a larger illness.

AlecKinnear avatar Feb 24 '23 15:02 AlecKinnear

@bonny I checked your history of merging pulls from Simple History. It's very good. Hence, as we can't persuade you to improve CSV export in Simple History for love or money, we'll make some improvements and send you the pull request. I'd still rather send you the sponsorship money and that you made the improvements. Let me know.

AlecKinnear avatar Mar 07 '23 15:03 AlecKinnear

Hi Pär,

We just need simple CSV export and that would help most users. I've withdrawn sponsorship as there's not enough movement on this issue and I've sponsored Simple History for half a year. We have had good use of Simple History, so it's no hard feelings. But if open source authors would like to maintain sponsors, it would help to heed their feature requests. If simple CSV export appears some time soon (I see you've made some progress on some internal classes), I'll be happy to renew our sponsorship.

AlecKinnear avatar Aug 07 '23 16:08 AlecKinnear

Can't get this done for love or money. It's not a matter of having a family, I was willing to sponsor the feature, within an achievable format (not the max version which would be a couple of weeks coding rather than a few hours). Argh.

Open source authors complain there's no financial support, but even when there is it's impossible to get improvements in a timely way. Thanks for Simple History all the same!

AlecKinnear avatar Dec 15 '23 20:12 AlecKinnear