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.
Problem/Motivation
We create the url_alias
table on the installation of the system
module.
Let's make that lazy like for example the cache system.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#24 | url_alias_table_is_only-2664466-24.patch | 31.48 KB | kostyashupenko |
Comments
Comment #2
dawehnerLet's see
Comment #3
dawehnerThat included both routing and url_alias.
Comment #6
dawehnerReroll
Comment #8
alexpottFixing the fails...
Comment #9
alexpottHere's the patch
Comment #10
jibranPatch needs a rebase, includes unwanted changes of filestorage.
Comment #11
alexpottUnfortunately I had applied #2620576: fnmatch() is not available on all environments (i.e QNAP QTS) :(
Here's the correct patch - the interdiff to #6 in #8 was actually correct.
Looks like we have some postgres issues...
Comment #12
alexpottOh yay - postgres has an opinion about transactions and this auto-create table stuff... https://stackoverflow.com/questions/10399727/psqlexception-current-trans...
Comment #13
alexpottPhew all of the postgres query types create a savepoint - so should insert... which fixes this.
We need this anyway because if you write to an uncreated cache bin during a node save postgres would break and that's wrong.
Comment #14
catch#2347867: Race conditions with lock/cache using non-database storage - add a non-transactional database connection would also help with this, but #13 looks good.
Comment #15
dawehnerIMHO we should document this here.
Comment #16
alexpottI think we should split the postgres fix out into its own issue so we can add tests - and hey presto we have an issue already... #2487269: Postgres insert queries that fail in a transaction break the entire transaction
Comment #17
alexpottComment #18
catchPostponing on #2487269: Postgres insert queries that fail in a transaction break the entire transaction.
Comment #19
catchComment #21
dawehnerRebased
Comment #22
catchAnd again.
Comment #23
catchSorry needs a re-roll.
Comment #24
kostyashupenkoRe-rolled patch from #21 with auto merge
Comment #25
andypostrerolled
Comment #26
catchCommitted/pushed to 8.1.x, thanks!
Comment #28
edurenye CreditAttribution: edurenye at MD Systems GmbH commentedI opened this follow up #2670360: Add BC layer in installSchema to support url_alias
To add the BC layer to fix the contrib test fails in the testbot.
Comment #30
Dave ReidHonestly I think this needs to be rolled back. We need to rely on being able to query the table directly in Pathauto, because the service does not provide some of the actual querying we need.
Comment #31
Dave ReidWhy couldn't we have just moved everything (schema, service, etc) to the path module?
Comment #32
Dave ReidAnd there is the fallacy. The needs of contrib completely ignored. :(
Comment #33
cilefen CreditAttribution: cilefen commented