Repository navigation
fix: singularize databases to database instead of databasis - #4191
Merged
Merged
Conversation
The -ses rule for basis/bases also matched the end of "databases". A dedicated (database)s$ rule, as Rails has, now runs first. bases still singularizes to basis; other -ases words are unchanged. Fixes #4189 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Peter Amiri <peter@alurium.com>
Collaborator
Author
|
rev1-r1 review @ 6f4e108 (draft, 4.3): APPROVE on code; merge gated on compat-matrix run 37114969130 and on 4.2.0 shipping.
|
Contributor
Wheels Test Results218 119 tests 213 893 ✅ 1h 12m 10s ⏱️ Results for commit 078584b. ♻️ This comment has been updated with latest results. |
…databases Signed-off-by: Peter Amiri <peter@alurium.com> # Conflicts: # vendor/wheels/global/strings.cfm
…de guide
Moves the fragment to `changed`, since singularize("databases") output
changes, and extends the existing "singularize() corrects some -ses
words" entry in the 4.1 to 4.2 upgrade guide rather than adding a
second one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
bpamiri
marked this pull request as ready for review
October 5, 2026 05:43
Collaborator
Author
Final: APPROVE @ 078584b (lifted into 4.2; matrix 37269045190, all 32 legs read)Delta since my approval at 6f4e108
Matrix
No open findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4189
This changes behaviour:
singularize("databases")wasdatabasis.Summary
The singularize
-sesrule forbasis(…|(b)a|…)ses$) also matched the end ofdatabases, sosingularize("databases")returneddatabasison every engine.This PR adds
(database)s$→\1just before the-sesrules, the same dedicated rule Rails uses. It only matches words ending indatabases.Compatibility. An app that relied on
databasis, for example a model or table named after it, needs to rename it. That's unlikely; the changelog fragment says so.Conflict. This PR and #4188 edit the same singularize rule line. #4188 merged first; develop is merged in here, and the rule line now differs from develop only by the added
(database)s$rule.Upgrade notes
changedone (changelog.d/4189-singularize-databases.changed.md).singularize()corrects some-seswords" entry (added by fix: stop singularize() turning psychoanalyses into psychoanalyasis #4188) is extended with this change, rather than adding a second entry.Test plan
vendor/wheels/tests/specs/global/SingularizeDatabasesSpec.cfcchecksdatabases,DatabasesanduserDatabases. It also pins the current output forbases(→basis),cases,phases,purchasesandvases, and pluralize for the singular forms.databasesspec (databasis); the other two specs pass.globaldirectory (pass / fail / error):Full suite (
tools/test-local.sh, Lucee 7 + SQLite): 6525 passed.After merging develop (for 4.2):
globalspecs (SQLite) 313 / 0 / 0 on Lucee 7, Lucee 6 and BoxLang, 312 / 0 / 0 on Adobe 2023, Adobe 2025 and RustCFML v0.693.0; full core suite, Lucee 7 + SQLite: 6703 passed (including theinternalrepo-path specs); guides build passes.🤖 Generated with Claude Code