backdrop-issues icon indicating copy to clipboard operation
backdrop-issues copied to clipboard

crossport views commits from 7.x-3.12

Open jenlampton opened this issue 6 years ago • 15 comments

jenlampton avatar Apr 28 '19 00:04 jenlampton

Re https://www.drupal.org/node/1154830 and the respective 7.x commit, do we support D6 straight to Backdrop, and in general, do we advise people to first upgrade to the latest version of the respective 7.x module before doing D7 to Backdrop upgrades?

I'm asking because the commit adds a views_update_7302(), which would have already run if the module on a D6/D7 site was using the latest version of Views 7.x. Other wise, do we need to add a new 100x update hook on our end?

klonos avatar May 13 '19 09:05 klonos

We seem to already have implemented the same fix as https://git.drupalcode.org/project/views/commit/96a54e041b171eb47c6a00805b9c4731c81d9283, but we are using form#views-exposed-form- instead of #views-exposed-form-. I called it a N/A, but feel free to change that if you thing that we should change things accordingly.

klonos avatar May 13 '19 16:05 klonos

Re drupal.org/node/1154830 and the respective 7.x commit, do we support D6 straight to Backdrop,

No. Not officially, but I think there is an issue somewhere to add this. Though, the longer it takes to address that, the harder it will get.

and in general, do we advise people to first upgrade to the latest version of the respective 7.x module before doing D7 to Backdrop upgrades?

Yes.

I'm asking because the commit adds a views_update_7302(), which would have already run if the module on a D6/D7 site was using the latest version of Views 7.x. Other wise, do we need to add a new 100x update hook on our end?

@klonos that update would only have already been run if someone had added the views module to their D7 site after the update was added, but before before moving to Backdrop. What if they had already upgraded from D7 to Backdrop before that update was added to D7 views. Is there anything in there that their Backdrop site won't have?

For other updates like this, we add the update to Backdrop, but in the update we test if the change has been made already. If so, we do nothing. If not, we do the update. That way we account for all use-cases.

jenlampton avatar May 13 '19 18:05 jenlampton

...What if they had already upgraded from D7 to Backdrop before that update was added to D7 views. Is there anything in there that their Backdrop site won't have?... That way we account for all use-cases.

Makes sense @jenlampton 👍 ...will add a PR for that change as well then.

klonos avatar May 15 '19 05:05 klonos

...done 🙂

klonos avatar May 15 '19 05:05 klonos

Since most of these PRs are RTBC, I've changed the tags to get committer eyes on this. @klonos there are 2 of these PRs that still need work:

  • https://github.com/backdrop/backdrop/pull/2661
  • https://github.com/backdrop/backdrop/pull/2659

jenlampton avatar Oct 10 '19 20:10 jenlampton

Re https://www.drupal.org/node/1154830 and the respective 7.x commit, do we support D6 straight to Backdrop, and in general, do we advise people to first upgrade to the latest version of the respective 7.x module before doing D7 to Backdrop upgrades?

Yes, we do encourage that. Though it seems as though this particular issue could slip through to some (few) Backdrop sites. Since Backdrop existed for ~3 years by the time that issue was committed, it's possible that some Backdrop sites were upgraded from D7 with that problem before it was fixed in Views. It's low impact overall, so I think merging the fix suggested in https://github.com/backdrop/backdrop/pull/2679 is a good idea.

quicksketch avatar Oct 13 '19 22:10 quicksketch

I merged in all the ready items here for 1.14.1. There are now only 3 remaining items. https://github.com/backdrop/backdrop/pull/2654 should be separated out into a dedicated issue, as I don't think we'll need/want a direct port of that code from Drupal 7.

quicksketch avatar Oct 13 '19 22:10 quicksketch

Im getting same problem Access denied You are here Home You are not authorized to access this page.

Php 7.2 MariaDB 104

domaingood avatar Oct 13 '19 22:10 domaingood

I've created a follow-up issue at https://github.com/backdrop/backdrop-issues/issues/4137 and marked the item as NA in this list.

jenlampton avatar Oct 14 '19 01:10 jenlampton

Pushed a fix to this PR https://github.com/backdrop/backdrop/pull/2659

herbdool avatar Jan 04 '22 22:01 herbdool

Pushed a fix to this PR too https://github.com/backdrop/backdrop/pull/2661.

As far as I can see there are only two PRs left on this list. Fingers crossed they get merged and this whole issue can be closed.

herbdool avatar Jan 05 '22 15:01 herbdool

Just adding a note here that there's only one more PR to close this issue, but it needs steps to reproduce the bug, so that we can confirm that the bug is fixed in Backdrop.

Here's a usecase that came up in Drupal:

Because for a project we would like to integrate Megarows with workbench. A few of the views Workbench supplies are based on revisions.

It might be worthwhile looking at the revision views in workbench, and trying to recreate them in Backdrop.

jenlampton avatar Jan 20 '22 21:01 jenlampton

I tried to see if I could discover any new functionality in Views after the final patch in https://github.com/backdrop/backdrop/pull/2661, and I was not successful. The code seems to make sense but I can't tell where it would have any effect. I tried assembling a view starting from a "Content Revisions" table and a view from the "Content" table and joining over to revisions, but in both cases I can't find anything that I couldn't do before.

quicksketch avatar Feb 11 '22 05:02 quicksketch

Looking for an older views crossport, I stumbled about this list where 28 of 29 tasks are checked, which is great! There is only one unclear issue - see https://github.com/backdrop/backdrop-issues/issues/3720#issuecomment-1017945548. Can we set the unclear issue to N/A and proceed?

olafgrabienski avatar Nov 30 '22 09:11 olafgrabienski

I couldn't bear to bump this issue yet again. With only https://github.com/backdrop/backdrop/pull/2661 remaining and no complaints against the code implementation, I went ahead and merged that last PR so we can close this issue.

quicksketch avatar Dec 01 '23 19:12 quicksketch