Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Any plans to port ShURLy to Drupal 8 ?
Would definitely be a needed module.
Comment | File | Size | Author |
---|---|---|---|
#19 | shurly-2633910-19.patch | 94.8 KB | yannickoo |
#17 | 2633910-17.patch | 2.49 KB | naresh_bavaskar |
#18 | interdiff-12-18.patch | 933 bytes | yannickoo |
Issue fork shurly-2633910
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 2633910-drupal-8-port changes, plain diff MR !1
Comments
Comment #2
neural CreditAttribution: neural commentedany news about this request ?
Comment #3
Jibus CreditAttribution: Jibus commentedAny help are welcome :)
Comment #4
neural CreditAttribution: neural commentedNever made a module port to newer version but I guess the starting point is there :
https://www.drupal.org/update/modules/7/8
Which build should be used as base ?
Comment #5
jmarkel CreditAttribution: jmarkel as a volunteer and at Johnson & Johnson commentedIs there any activity here yet? If not, I'm ready to start work on it - or if there is, to help out.
Comment #6
neural CreditAttribution: neural commentedjmarkel, looks like no activity. I'd be glad to help in testing.
Comment #7
jmarkel CreditAttribution: jmarkel as a volunteer and at Johnson & Johnson commentedOK, thanks. I will assign this issue to myself.
Comment #8
Jibus CreditAttribution: Jibus commentedDevelopment branch has been created, feel free to provide patch.
Comment #9
Jibus CreditAttribution: Jibus commentedComment #10
Jibus CreditAttribution: Jibus commentedBump this. Any help are welcome :)
Comment #11
megadesk3000 CreditAttribution: megadesk3000 at Unic commentedHi together
I created a patch for the 8.x-1.x-dev branch, which does the following:
- Fix some problems with D7 style user/account property access.
- Move the Menu Items to /admin/config/search/shurly
- Fixed the redirect subscriber
- Fixed the schema for the config var shurly_redirect_page from boolean to string
- Fixed basic code style issues
I want to note, that right now i am just using the functions to programatically create short urls, which seems to work right now. Maybe this patch can act as base for a further development.
Cheers
Comment #12
megadesk3000 CreditAttribution: megadesk3000 at Unic commentedJust moved the shirly_counter settings from config to state, since this counter should be environment specific and not kept synchronised over all environments. Now the config is only used to define the start counter.
Otherwise each generated short url would lead to changed config, which is not what we want i guess.
Comment #13
Adamam CreditAttribution: Adamam commentedAny updates on this?
Comment #14
Jibus CreditAttribution: Jibus commentedHello,
Unfortunatly, i have less time to work on this, but i'll be happy to add a maintainer for the D8 port :)
Comment #15
kaamui CreditAttribution: kaamui commentedHello,
In the ShurlySubscriver class, line 28, I got a
&& !empty($_GET['redirect'])
that is preventing any redirection to work on my raw install of Druptal 8.I was wondering what is its purpose to know if I can remove it or if I should use it.
More globally, do you have a "to do list" of what prevents you to finalize the Drupal 8 port to be the latest stable release available ?
Thanks
Comment #16
naresh_bavaskar@kaamui I also found that !empty($_GET['redirect']) it causing the issue for redirection or URLs.
Comment #17
naresh_bavaskarComment #18
yannickooI tested the patch from #12 and it works very nice. Unfortunately I wasn't able to place the block because of an error in
blockAccess
method.What do you think about trying to get this in so we can continue adding features/fixes in other issues?
I noticed that the form looks very ugly so I will create an issue that we can get AJAX behavior for it.
Here are two follow-up issues:
Comment #19
yannickooThe patch before removed the theme function which was not the plan for this issue.
Comment #20
yannickooComment #21
wizonesolutionsI still use this module. I will probably put off upgrading my site that uses it as long as possible, but after that I'll try to review this and maybe apply to be a co-maintainer.
Is there an issue for writing a D7-D8 migration? Those of us who are upgrading will likely want one.
Comment #22
cYu CreditAttribution: cYu commentedI'd like to help get a working version of this module in D8. As yannickoo mentioned, it would be good to commit some of the basic fixes to the dev branch so we can move forward from there with more focused issues. If there are no other volunteers I can help maintain a D8 branch.
Comment #23
opdaviesI'd also be interested in helping with a D8/9 version.
Comment #26
rahul.shindeI have opened the MR to be able to use these changes using composer.
The followings are the steps I followed,
composer require 'drupal/shurly:dev-custom#7a7b1f40e2a80bb30d5f27d8ba743a95a83d493b'
The hash id is the latest commit hash of the MRComment #27
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedMarking #19 as RTBC. Sorry @rahul.shinde, but the D9 issue is another one.
Comment #28
jcnventura CreditAttribution: jcnventura at 1xINTERNET commented