Account created on 25 December 2006, about 18 years ago
#

Merge Requests

More

Recent comments

🇬🇧United Kingdom steven jones

This looks great, and thanks for the hard work everyone, but this sort of change really should have some tests to make sure we're not breaking things for existing sites, and that the new settings work correctly etc. so setting back to needs work.

🇬🇧United Kingdom steven jones

I had this issue on a Drupal 7 site that was sort of close to going over the limit, the following code sorted it out:


  db_add_index('queue', 'temp', ['item_id']);
  db_drop_primary_key('queue');
  db_change_field('queue', 'item_id', 'item_id', array(
    'type' => 'serial',
    'size' => 'big',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'description' => 'Primary Key: Unique item ID.',
  ), [
    'primary key' => ['item_id'],
  ]);
  db_drop_index('queue', 'temp');

I imagine this sort of approach could be adapted very easily for Drupal 11.

🇬🇧United Kingdom steven jones

@chetananemade thanks for the updated patch. We should try to get this into a MR instead of using patches.

🇬🇧United Kingdom steven jones

Yeah, field templates do not apply to the exports that VDE is doing, this as as-designed.
Use the hooks instead as suggested in #5

🇬🇧United Kingdom steven jones

I would strongly suspect that as explained in #2 there is something else not quite working with your Drupal install.

Given the time since this issue was opened, I'm going to close it down.

🇬🇧United Kingdom steven jones

Hmmm...I don't think it's correct that we ever allow specifying a view mode, so yeah, we should clean this up and not allow selecting one.
I wonder if you clone another display that uses an entity view mode, does VDE secretly store that and not allow you to remove it?

🇬🇧United Kingdom steven jones

Hmm...is this an issue with our string, or the export that Drush produces?

🇬🇧United Kingdom steven jones

Yeah, so at the moment there's no interface for us to check to see if this method is there, see: 🐛 Views style plugins with the `attachTo` method should implement an interface Needs work

But until then we can probably do a simple method_exists check and that'll stop the WSOD you were seeing.

🇬🇧United Kingdom steven jones

Hmm...I suppose that it's nice to make this opt-in and won't break any existing export flows, but is there a reason to make this optional? Wouldn't you always want VDE to reflect the sorting options that the user has used?

Either way, this could do with some tests.

🇬🇧United Kingdom steven jones

I don't think we must have solved this issue long ago, so closing this one out.

🇬🇧United Kingdom steven jones

Let's open a new MR with PHP CS enabled.

🇬🇧United Kingdom steven jones

Actually, let's continue here!

🇬🇧United Kingdom steven jones

Let's continue in 📌 Fix the issues reported by phpcs Needs review rather than having 2 issues.

🇬🇧United Kingdom steven jones

Thanks for the work on this, much appreciated.

🇬🇧United Kingdom steven jones

steven jones made their first commit to this issue’s fork.

🇬🇧United Kingdom steven jones

Thanks for this, looks great.

🇬🇧United Kingdom steven jones

steven jones made their first commit to this issue’s fork.

🇬🇧United Kingdom steven jones

I think we should validate that the filename has been set, rather than working around it.

🇬🇧United Kingdom steven jones

Yeah, this looks like a solid improvement, thanks!

🇬🇧United Kingdom steven jones

@vasyok I don't think you want the public:// prefix on the filename.

🇬🇧United Kingdom steven jones

I'm not sure we support migrations, maybe re-open this issue and change it to the views_migration module?

🇬🇧United Kingdom steven jones

Confirmed, yeah, that's totally broken eh?

🇬🇧United Kingdom steven jones

I'll admit that it's a bit odd that we're generating absolute URLs for the attachment links. I'm not sure why we need to do that, does anyone in this thread know? They could be relative links and then things should work fine.

Equally, if Drupal doesn't know it's running behind https, you should sort that issue out with your setup, it's not on VDE to sort that out.

I'm going to close this out, since if you have a correctly configured Drupal, VDE generates a link correctly, even if it does generate an absolute link.

🇬🇧United Kingdom steven jones

Thanks for the bug report, were there specific export types that exhibit this issue, or is it all of the text based ones?

🇬🇧United Kingdom steven jones

Hmmm...I think this might be a core issue, we'll keep this one around, but it's probably Views' job to not send us a URL with the default contextual filter in.

🇬🇧United Kingdom steven jones

There's nothing malformed about having a download attribute with no value.

This is a bug with the translation import process, is this in Drupal that you're seeing this error?

🇬🇧United Kingdom steven jones

Can we change to a Merge Request please, also:

+++ b/src/Plugin/views/display/DataExport.php
@@ -668,7 +668,12 @@ class DataExport extends RestExport {
+        \Drupal::request()->request->add($query_parameters);

It should be fine to simply change to using this version in all cases? I don't think we need to detect anything here.

🇬🇧United Kingdom steven jones

I can't reproduce this using the latest versions of everything. Feel free to re-open if you can, with detailed steps, and maybe a config export of the view that's causing the problems.

🇬🇧United Kingdom steven jones

Yeah, as @ryanrobinson_wlu says the issue here is that you need to manually select an output format, but the module doesn't enforce that, and it should. Let's add that and then this error will go away.

🇬🇧United Kingdom steven jones

Thanks for the patch, but I don't think we'll be adding this to the main module.

🇬🇧United Kingdom steven jones

This seems more like a feature request to me.

🇬🇧United Kingdom steven jones

I've done this today, with the latest versions of Drupal and modules, and don't see this issue, feel free to re-open with more details if you're still seeing this issue.

🇬🇧United Kingdom steven jones

I've done this today, with the latest versions of Drupal and modules, and don't see this issue, feel free to re-open with more details if you're still seeing this issue.

🇬🇧United Kingdom steven jones

@Aurel60 hmm...I'm not keen that Views Data Export skips access checks by default, but the views UI does give you the option to do this for specific views if you really need to do so, but it would be better to get the access checks brought in by your Views Custom Table module sorted instead. Likewise @jahanaras with Drupal commerce, either allow access to the data you need, or don't :)

@uberengineer I think that's another issue, but I can't see why it would be anything other than a boolean, but yeah, the strict type checking does seem a bit over the top.

🇬🇧United Kingdom steven jones

As @gold has said, you can already do this with the CSV encoding, but not json encoding. So, closing this issue out.

🇬🇧United Kingdom steven jones

This needs converting to a merge request, and a test I reckon.

🇬🇧United Kingdom steven jones

I think that's a bug in your theme rather than this module then.

🇬🇧United Kingdom steven jones

Looks like this issue is a duplicate of the core issues then, closing out.

🇬🇧United Kingdom steven jones

Not sure why that would matter, or why it would matter to Views Data Export specifically, anyway, closing this one out.

🇬🇧United Kingdom steven jones

Closing as the consensus seems to be that that isn't an issue any more.

🇬🇧United Kingdom steven jones

Thanks @ghost of drupal past!

I've applied your patch to a MR, and we'll merge that in if all existing tests pass.

🇬🇧United Kingdom steven jones

Hmmm...sounds like something really weird is going on there!

Feel free to re-open including an export of your view that's causing the issue, so that we can take a look to see if there's anything obviously going wrong there.

🇬🇧United Kingdom steven jones

I'm not sure we have a TXT export in Views Data Export 8.x, do we?

🇬🇧United Kingdom steven jones

I'm not sure this is a bug. An empty file is correct if there's no data to export.

🇬🇧United Kingdom steven jones

Is this an issue with the differences in rendering when doing batched/non-batched exports maybe?

Please re-open if that's the case.

🇬🇧United Kingdom steven jones

Please re-open if this is still an issue, but try to provide an simple config export of a view that has this problem, if you can, thanks!

🇬🇧United Kingdom steven jones

Hmmm...they shouldn't get shifted.

Feel free to re-open with more details to reproduce this issue, ideally an export of the config of your view that's causing the issue you are seeing.

🇬🇧United Kingdom steven jones

We should probably switch to using a renderInIsolation call instead of the renderRoot

🇬🇧United Kingdom steven jones

Seems like this is the same as the error in 🐛 Export using date tokens is not working - cache metadata error Closed: cannot reproduce ?

If you can give the steps for reproducing, then we can take a look.

🇬🇧United Kingdom steven jones

I can't reproduce this using the latest versions of Drupal and Views data export. I'm assuming that this was a bug in views or something and has since been fixed.

🇬🇧United Kingdom steven jones

That's very strange, I'd assume it's something special about your environment specifically, maybe something like the max-allowed-packet being too small?

🇬🇧United Kingdom steven jones

Looks like your filesystem wasn't writeable, and Drupal was unable to create a directory early on in the process of building up the export.

Have a look at the Media => File System page in the Admin UI and see if there are any errors on that page.

🇬🇧United Kingdom steven jones

This works fine for me in the latest version of Drupal and Views Data Export.

Feel free to add more steps for reproduction to this ticket and re-open if you can reproduce it.

🇬🇧United Kingdom steven jones

There's an option in the views UI to specify the export filename, and if you use that, then you can set the filename that's used.

🇬🇧United Kingdom steven jones

I can't reproduce this with the latest version of Drupal and Views Data Export, the combined filter was working just fine for me.

Please re-open with more information if you can reproduce it, and provide an export of your configured view, if possible.

🇬🇧United Kingdom steven jones

Wow, yeah, this seems like quite a big oversight. This should be relatively easy to add a test for too.

🇬🇧United Kingdom steven jones

Confirmed, this is broken with batched exports. This is a prime candidate for adding some tests.

🇬🇧United Kingdom steven jones

Sorry you never got a response to your issue, I'm trying to be better in the future!

🇬🇧United Kingdom steven jones

Going to mark this is cannot reproduce, as the module has been working fine for others for years at this point.

Feel free to comment with further information.

🇬🇧United Kingdom steven jones

Yeah...this is the tricky thing with Drush: you need to tell it the URL of your site if you want it to know it.

You have already found one way, you can use Drush aliases, or set environment variables in dev/staging/live etc.

But yeah, this is a Drush issue, not a VDE one, and not really a bug either.

You'd have the same issue for example if you execute cron without passing in the URL, or if you were to request a login link etc.

🇬🇧United Kingdom steven jones

Sorry, the 6.x versions are not supported.

🇬🇧United Kingdom steven jones

As @fjgarlin says in #5 this is kind of by-design, but yeah, is a bit weird.

I'm going to close as a 'works as designed' but if anyone has a decent suggestion of what to do differently here, feel free to suggest it.

🇬🇧United Kingdom steven jones

I'd humbly suggest that this is a job for a field formatter: to remove the extra characters that you don't want. If however, that it's specifically that the Excel exported that is mangling the data, then maybe comment here and move the issue over to the XLS Serialization issue queue.

🇬🇧United Kingdom steven jones

There's a 'strip HTML' option for the CSV stuff, that might help you out?

🇬🇧United Kingdom steven jones

I can't seem to reproduce this issue with the latest versions of VDE, sorry! Please post more information if you have it.

🇬🇧United Kingdom steven jones

I wonder if we need to set the authentication method at all, and if it's worth investigating removing that configuration option from data export, or at least moving it so that people don't change it often, and are then warned if they do.

I think we should be able to produce a test fairly easily that confirms if this is a genuine issue or not and then we can look to resolve it.

🇬🇧United Kingdom steven jones

This looks like it _might_ still be an issue as 🐛 Problem with action path for embedded forms Needs work remains unfixed. We'd need to write a test to confirm I think, and I'm still not sure of the exact conditions that trigger this bug. I'm going to mark as closed, but feel free to post updated information and we can re-open!

🇬🇧United Kingdom steven jones

I've just tried this out with the latest code, and this works fine, if a field is marked as 'exclude from display' it is not rendered, and if not, then it's rendered. Note that this does not effect use in tokens in other fields, it'll still get rendered there, that's the whole point of that functionality.

🇬🇧United Kingdom steven jones

Changing to a MR based on the patch in #9

🇬🇧United Kingdom steven jones

Committed the change to the readme.

🇬🇧United Kingdom steven jones

steven jones made their first commit to this issue’s fork.

🇬🇧United Kingdom steven jones

I've updated the project page with information relevant for the Drupal 8.x version rather than the 7.x version.

🇬🇧United Kingdom steven jones

I've added this information to the project page now.

🇬🇧United Kingdom steven jones

Thanks very much for the nudge. I got out a Drupal 11 compatible release, and will be working on getting some of the RTBC tickets into the module and released soon too.

🇬🇧United Kingdom steven jones

We got Drupal 10 support, so this is basically done, going to close this one out.

🇬🇧United Kingdom steven jones

At the moment, we don't need to rethink things from the ground up, we need to maintain what we have, so closing this one out (for now)

🇬🇧United Kingdom steven jones

Sorry that you didn't get a response, I hope you worked it out.

🇬🇧United Kingdom steven jones

Closing as this issue is very old and mostly about EOL'd stuff.

🇬🇧United Kingdom steven jones

I don't think you can currently do this, no, but there's no reason why we can't make this a feature request.

🇬🇧United Kingdom steven jones

So we only allow picking a single export format per display because we're using the URL to 'negotiate' the response format, whereas the REST export base is using other means to determine that.

I should think you'd be able to provide a KML style plugin to export to that particular format, and then provide another class that (almost) trivially extends it to do the zipping for the KMZ format.

See https://www.drupal.org/docs/develop/creating-modules/building-a-views-di... for documentation on how to do this.

🇬🇧United Kingdom steven jones

How odd, do you maybe have some custom theming on the view that's not outputting the icons properly? Or are you sure that you're looking at the display that the export view is attached.

🇬🇧United Kingdom steven jones

No, not at the moment this isn't possible beyond using standard views filters, and then 'selecting rows' that way.
I.e. you could add a role filter to a view of users, and export all the users with particular roles, but there's no way to pick the 3rd, 6th and 11th row of a view and get a CSV of those using this module, sorry!

🇬🇧United Kingdom steven jones

Yeah, this looks like a duplicate of that issue, which is much closer to resolution so closing this one out.

🇬🇧United Kingdom steven jones

This was requested in 💬 CSV - how to remove header row? Closed: duplicate and as #11 says this looks like a great patch and improvement, we should get this in!

Production build 0.71.5 2024