Tour UI is currently broken.

After enabling Tour UI Fatal exception occurs

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "tour_ui.controller" has a dependency on a non-existent service "plugin.manager.entity". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processReferences() (line 59 of /Users/clemens/Sites/drupal/d8/www/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).

Further Change Notices are

https://drupal.org/node/2181815 plugin.manager.entity service is replaced by entity.manager
https://drupal.org/node/2181667 EntityType is now a domain object
https://drupal.org/node/2067565 Entity Controllers can get dependencies injected via a createInstance method

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

clemens.tolboom’s picture

Change record

https://drupal.org/node/2181815

plugin.manager.entity service is replaced by entity.manager

clemens.tolboom’s picture

Issue summary: View changes

Change records

https://drupal.org/node/2181667 EntityType is now a domain object

https://drupal.org/node/2067565 Entity Controllers can get dependencies injected via a createInstance method

clemens.tolboom’s picture

Title: Fix tour to work on latest core » Fix Tour UI to work on latest core
clemens.tolboom’s picture

I found some fixes but no enough. Attached are my scribbles.

slewazimuth’s picture

I only stayed current until Jan 24. http://drupalpatio.com/im24

alex.xequals’s picture

Tried #4 but with no results. Drush doesn't seem to want to apply the patch. Working off latest version of D8 and latest version of tour module. Starting to get the strong impression that this part of D8 needs a lot of work. Just enabling tour_ui seemed to create a lot of problems on my localhost. Also once installed, it seems it doesn't want un-enable / un-install. The tour_ui module maintainers need to release a more stable working copy so those of us who aren't native developers, but are keen to start writing lots of tours for the community and also write general documentation can start doing this.

clemens.tolboom’s picture

This issue is old compared to the "chasing head" of Drupal 8.

Thanks for bringing this module under my attention again. Hope to spend some time on it before DrupalCon.

nick_schuch’s picture

My gut feeling is to wait on the BETA or RC release. This shouldn't be holding back writing tour's for core.

There are many ways to contribute tours to core (screenshots etc), the hardest part is working out what you write. I have been stretch on other Drupal community projects recently, but plan to focus on this in the coming weeks in the lead up to DrupalCon Amsterdam.

slewazimuth’s picture

With D8 now on Beta 6 and Beta 7 due out on Feb 25 I may get back on this. I stopped work on the UI for the Advanced Tour last March and lately I've been considering getting back up to speed on D8.

joachim’s picture

Priority: Normal » Critical

Critical, surely?

slewazimuth’s picture

I whipped up a new tour_ui for the beta7 version of drupal 8 to get back up to speed on stuff. Its completely new and has zippo to do with the one stopped back in Oct of 2013. Screen recording can be seen at http://d8pres.qetm.biz/tour_ui

clemens.tolboom’s picture

@slewazimuth your welcome to add your patch in this issue. Watching a video is not code so I cannot handle it ;-)

rootwork’s picture

Agreed, would really love to see that code committed back to this project!

nick_schuch’s picture

@slewazimuth,

Video looks awesome! I will contact you once Im back from DrupalCI sprinting (next week).

darol100’s picture

I'm running a copy of Drupal head master and install this module + patch and I got this error.

ReflectionException: Class Drupal\tour_ui\Routing\TourUIController does not exist in ReflectionClass->__construct() (line 964 of /Sites/drupal/core/vendor/symfony/dependency-injection/ContainerBuilder.php).
darol100’s picture

Status: Active » Needs work
slewazimuth’s picture

Nick never did contact me, but while waiting I built a new Advanced Tour, Advanced Tour UI along with a number of other modules for Drupal 8 to support Intermedia. With Release Candidate 1 being released, here's the latest silent screen recording showing a bit of the Advanced Tour on RC1 - http://d8pres.qetm.biz/rc1

clemens.tolboom’s picture

Status: Needs work » Needs review
FileSize
75.39 KB

In #12 I asked for a patch from @slewazimuth which never made it.

I tried to re-roll #4 on latest 8.2.x

- move Drupal/lib/tour_ui to src
- TourDeleteForm needed new method interface

Unfortunately the page /admin/config/user-interface/tour is not found. Checking with ie ShortcutController I do not see/get what to do.

Attached patch has mentioned changes.

Status: Needs review » Needs work

The last submitted patch, 18: tour_ui-2182095-18.patch, failed testing.

The last submitted patch, 18: tour_ui-2182095-18.patch, failed testing.

GoZ’s picture

Status: Needs work » Needs review
FileSize
86.59 KB

After a couple days of work, here is a large rewrite of tour_ui module ported to Drupal 8.2.x.

Tests will have to be converted to phpunit. I suggest to create a new issue for tests after this port will be commited.

Have a nice tour !

Status: Needs review » Needs work

The last submitted patch, 21: fix_tour_ui_to_work_on-2182095-21.patch, failed testing.

GoZ’s picture

Status: Needs work » Needs review

Tests fail due to... tour_ui (simpletest) tests.

Please review and commit this code first before tests can be rewritten. Right now module can't be used so tests are pointless.

The last submitted patch, 4: tour-ui-2182095-fix-core-do-not-test.patch, failed testing.

GoZ’s picture

Tour lose routes when user click on 'Add' tip button.

GoZ’s picture

FileSize
89.95 KB
566 bytes

Fix a missing replacement from _tour_load to Tour Class load.

GoZ’s picture

FileSize
86.96 KB
317 bytes

Add Tour UI to User-interface menu.

GoZ’s picture

Status: Needs review » Needs work
FileSize
87.9 KB
16.5 KB

Add #delta => 100 to tip weight to not be in conflict with drag&drop table weight from tour form.

Check tip implements methods export() and optionsForm() to define if a tip can be edited or added. At this point, tips without export() will be lost, so we need work to get list of tip independent of export method. If tip has not export method, we should use existing tip definition.

I remove src/Plugin/tour/tip/TipPluginTextExtended as Tour tip plugin and replace it by tour_ui plugin src/Plugin/tour_ui/tip/TipPluginTextExtended. TipPluginTextExtended should not be defined as Tour tip plugin since its purpose is only to extends TipPluginText. It should not appear in available plugins, and once tour_ui is disabled (should be disabled in production), text tip should still appear, which is not the case without that.

GoZ’s picture

Status: Needs work » Needs review
FileSize
88.77 KB
3.68 KB

With this patch
* I replace export() method by getConfiguration(), waiting after #2851166. When this one will be commited getConfiguration() will be useless in each plugins.
* A warning is displayed in tour UI when a tip is not exportable. Tour cannot be saved in this case to avoid unwanted tip deletion.

GoZ’s picture

FileSize
1.58 KB
88.68 KB

And finally small fix for coding standard, removing tab and adding line at end of files.

clemens.tolboom’s picture

@GoZ thanks for working on this.

I see your patch is big. Can you try to add the git mv action into the diff? According to http://stackoverflow.com/questions/5730460/how-to-do-a-git-diff-on-moved... this could be done using git diff -M.

GoZ’s picture

There is many differences and modifications so -M does not give many more.

clemens.tolboom’s picture

Darn ... then I have to manually mv the files then apply. Will try this week.

GoZ’s picture

why do yo want to move files ? i you do that, patch will fail

Joachim Namyslo’s picture

I have applied that and hey it works in 8.26, again! Grat patch!

MiSc’s picture

We find a usage for this module, and therefor I have forked it, and added @Goz patch, more about it in #2857224: Fork of Tour UI.

clemens.tolboom’s picture

@MiSc why fork when you can collaborate. Just ask for joining this project in a separate issue.

MiSc’s picture

There are a bunch of fixes to get Tour UI up to speed, that is why I forked it, you will need to combine patches to get the thing working, and that is why I think a fork is the best idea, and then make a big patch from it, that hopefully will be accepted byt the maintainers here. And yes collaborating is the key, so please help out if you want to, the github repo will be up later today.

GoZ’s picture

I don't think a big patch with lot of features is a good deal.
It will be hard to read and review.

@clemens.tolboom Tour UI doesn't work anymore, can you at least commit this current patch so we can go forward and fix issues or features in different issues ? I agree to co-maintain if you want.

mpastas’s picture

Not working anymore..

rootwork’s picture

I think Tour UI is abandoned. There hasn't been a commit in 3 years, and there's been no move by maintainers to merge any of the changes in this thread that reports that the module is un-usable. That doesn't sound like "actively maintained" to me.

There was a fork a few months back (#36), but there haven't been any commits there since the fork either...

MiSc’s picture

I have been quite occupied and going to work on the fork during the summer.

  • GoZ authored 8b87d46 on 8.x-1.x
    Issue #2182095 by GoZ, clemens.tolboom: Fix Tour UI to work on latest...
clemens.tolboom’s picture

I've committed #32 as per #39

@GoZ + @MiSc please apply for a co-maintainer

clemens.tolboom’s picture

Status: Needs review » Fixed

@GoZ thanks for your awesome work!

MiSc’s picture

Great to push this forward.

dddave’s picture

I've added GoZ as co-maintainer and upgraded clemens' permissions so that he can add new maintainers himself in the future.

GoZ’s picture

thanks dddave

clemens.tolboom’s picture

Huh .. @dddave you have super powers? How where you notified? I filed #2882975: Make Clemens.Tolboom full owner of project to make @nick_schuch active. It's great to have these new maintainers but the flow of control is fuzzy to me. Please explain :-)

dddave’s picture

Well, the issue in the Project ownership queuesummoned me. ;)
I took a look around the module's queue and assessed the situation (and forget to post in the other issue...). After all the module was quite broken, yet you were the acting maintainer and willing to add new co-maintainers.

clemens.tolboom’s picture

:-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.