Skip to content

Issue #3615336: skip missing locale projects (Shrey Narayan, NextBrick) - #1

Open
NextbrickInc wants to merge 46 commits into
mainfrom
fix/3615336-locale-source-missing-project
Open

Issue #3615336: skip missing locale projects (Shrey Narayan, NextBrick)#1
NextbrickInc wants to merge 46 commits into
mainfrom
fix/3615336-locale-source-missing-project

Conversation

@NextbrickInc

@NextbrickInc NextbrickInc commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixes the TypeError in LocaleSource::sourceBuild() when a stale project name is still present in translation status data but no longer returned by LocaleProjectRepository (for example after a module is uninstalled).
  • loadSources() now skips untracked projects, loadSource() returns NULL, and locale batch/cron callers continue instead of fataling.
  • Adds unit coverage for missing and tracked projects.

Author: Shrey Narayan, NextBrick
Email: employeenextbrick@gmail.com

Upstream issue: https://www.drupal.org/project/drupal/issues/3615336

Test plan

  • Run LocaleSourceTest (core/modules/locale/tests/src/Unit/LocaleSourceTest.php).
  • Uninstall a module that previously had translation status data, then run cron / translation status check and confirm there is no TypeError.

catch and others added 30 commits August 21, 2026 18:51
By: quietone
By: andypost
By: smustgrave
By: sivaji_ganesh_jojodae
By: catch
…ult Admin to Toolbar

By: gábor hojtsy
By: smustgrave
…to the search_help module

By: gábor hojtsy
By: sjpagan
By: larowlan
By: quietone
…header only as dependencies

By: mherchel
By: jurgenhaas
By: bernardm28
By: catch
By: godotislate
By: catch
By: fjgarlin
By: kim.pepper
By: longwave
…rs in logs

By: herved
By: joelpittet
By: smustgrave
By: quietone
By: kieran.cott
By: longwave
…class

By: catch
By: smustgrave
By: godotislate
By: dcam
…upal\Tests\Core\Template\AttributeTest

By: Aki Tendo
By: kieran.cott
By: dcam
By: nicxvan
By: berdir
By: daffie
…routes

By: longwave
By: godotislate
By: dcam
…tail

By: joachim
By: andregp
By: larowlan
By: sophiavs
By: alexpott
By: mohit_aghera
By: smustgrave
By: quietone
By: harshitthakore
By: murilohp
By: benjifisher
By: Tauany Bueno
By: dcam
By: rkoller
By: simohell
By: pallavi singh3013
By: godotislate
By: quietone
By: smustgrave
…hould provide guidance on how to get started

By: gábor hojtsy
By: catch
By: lauriii
By: pameeela
By: xjm
By: wim leers
By: phenaproxima
By: tim.plunkett
By: pdureau
By: ckrina
By: mherchel
By: benjifisher
By: rkoller
By: simohell
By: the_g_bomb
By: longwave
By: dcam
By: mstrelan
By: arla
By: alexpott
By: daffie
By: nestor.mata
By: tim bozeman
By: cgalli
By: catch
By: sam152
By: dawehner
By: larowlan
By: effulgentsia
By: mstrelan
By: acbramley
By: bbrala
By: borisson_
By: catch
By: wim leers
By: gábor hojtsy
By: dcam
By: quietone
…tensions

By: phma
By: nicxvan
By: catch
By: longwave
…ery to support attribute discovery

By: berdir
By: catch
By: smustgrave
By: benjifisher
By: godotislate
By: traviscarden
By: danepowell
By: effulgentsia
By: drumm
By: catch
By: webchick
By: Mixologic
By: mile23
By: greggles
By: adamps
By: mglaman
By: alexpott
By: pameela
By: xjm
By: quietone
By: longwave
By: berdir
By: amateescu
By: acbramley
By: mstrelan
…espace between tags

By: tgauges
By: cilefen
By: jwilson3
By: ghost of drupal past
By: smustgrave
By: quietone
…cans for extensions

By: nicxvan
By: amateescu
godotislate and others added 12 commits August 25, 2026 07:55
…o files, for better diffs and automated updates

By: berdir
By: godotislate
By: nicxvan
… profile modules

By: catch
By: nicxvan
By: godotislate
…ailable

By: catch
By: longwave
By: nicxvan
By: longwave
By: aayushpathak
By: smustgrave
… but it's not

By: charlliequadros
By: dcam
By: mstrelan
…ds in ConfigInstallWebTest

By: catch
By: smustgrave
By: mstrelan
By: godotislate
By: catch
By: nicxvan
By: daffie
By: godotislate
Stale project names in translation status data caused a TypeError when sourceBuild() received NULL. Skip untracked projects and return NULL from loadSource() so cron and batch jobs continue.
@NextbrickInc
NextbrickInc force-pushed the fix/3615336-locale-source-missing-project branch from 63d3bbd to c9d32c9 Compare August 26, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants