Skip to content

Rebuild OHM customizations as logical commits on top of upstream - #448

Open
Rub21 wants to merge 16 commits into
staging-newfrom
staging-upstream
Open

Rub21 wants to merge 16 commits into
staging-newfrom
staging-upstream

Conversation

@Rub21

@Rub21 Rub21 commented Aug 13, 2026

Copy link
Copy Markdown
Member

This PR replaces the old patch-accumulated history with 12 logical commits that contain all OHM customizations, rebuilt on top of the latest upstream master openstreetmap-website-5a02636.

This is the approach agreed in the ticket OpenHistoricalMap/issues#735 as a cleaner baseline for future development and upstream merges.

cc. @1ec5

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
1 Warning
⚠️ Number of updated lines of code is too large to be in one PR. Perhaps it should be separated into two or more?

Generated by 🚫 Danger

@coveralls

coveralls commented Aug 13, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 35295283987

Coverage decreased (-0.4%) to 96.661%

Details

  • Coverage decreased (-0.4%) from the base build.
  • Patch coverage: 21 uncovered changes across 3 files (24 of 45 lines covered, 53.33%).
  • 11 coverage regressions across 3 files.

Uncovered Changes

File Changed Covered %
lib/date_range.rb 21 5 23.81%
app/helpers/browse_helper.rb 5 2 40.0%
app/controllers/searches/nominatim_queries_controller.rb 12 10 83.33%
Total (9 files) 45 24 53.33%

Coverage Regressions

11 previously-covered lines in 3 files lost coverage.

File Lines Losing Coverage Coverage
app/helpers/copyright_helper.rb 6 25.0%
app/controllers/accounts/pd_declarations_controller.rb 4 73.33%
app/models/community.rb 1 80.0%

Coverage Stats

Coverage Status
Relevant Lines: 7636
Covered Lines: 7381
Line Coverage: 96.66%
Coverage Strength: 895.93 hits per line

💛 - Coveralls

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking pretty good. I only inspected the code but haven’t tried running it. I haven’t gone through our issues to see if any features dropped out. It’ll be easier to detect them in testing anyways.

I included some nitpick comments, in case it’s easy enough to remove those from the diffs.1 The cleaner the diff, the less likely we are to have merge conflicts in the future. Some of the whitespace changes are probably remnants from code that we added and removed at some point.

Footnotes

  1. You can do an interactive rebase to rewrite this history. Change pick to edit, edit the file, then continue the rebase.

Comment thread app/assets/stylesheets/id.css Outdated
Comment thread app/assets/javascripts/leaflet.map.js Outdated
Comment thread vendor/assets/leaflet/leaflet.osm.js Outdated
Comment thread app/assets/javascripts/index_modules/export.js
Comment thread app/assets/javascripts/index_modules/query.js Outdated
Comment thread README.md Outdated
Comment thread app/assets/favicons/manifest.json.erb Outdated
Comment thread app/assets/images/attribution_example copy.png Outdated
Comment thread app/assets/stylesheets/common.scss Outdated
Comment thread app/views/site/ohm_privacy_policy.html.erb
@Rub21
Rub21 force-pushed the staging-upstream branch from 2ab234f to 7abe6a7 Compare August 14, 2026 06:19
@Rub21
Rub21 force-pushed the staging-upstream branch 2 times, most recently from ac99a3c to ee9fb22 Compare August 14, 2026 14:11
@Rub21

Rub21 commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

Tests are passing now, the map load timing was breaking some tests, so I bumped Capybara's default_max_wait_time so it waits for the page to finish loading.

@1ec5

1ec5 commented Aug 14, 2026

Copy link
Copy Markdown
Member

Sounds good, it was failing intermittently on other branches for the same reason.

@Rub21

Rub21 commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

I rebased this branch on the latest upstream master and pulled in the recent changes from staging (map-styles 0.9.19 and the locale key rename), same 12 logical commits, just on a newer base.

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We’re almost there! I looked over everything except test/. I specifically looked for any sign of a bad merge, other than some problems we already have tail work ticketed out about.

Comment thread .nvmrc Outdated
Comment thread README.md
Comment thread app/assets/images/about/osm copy.png Outdated
Comment thread app/views/accounts/terms/show.html.erb Outdated
Comment thread config/ui_languages.yml Outdated
Comment thread public/styles/sprite.png Outdated
Comment thread storage/.keep
Rub21 and others added 7 commits September 16, 2026 08:01
Co-authored-by: translatewiki.net <l10n-bot@translatewiki.net>
Co-authored-by: Sajjad Anwar <sajjadkm@gmail.com>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Co-authored-by: Jim McAndrew <jim@loc8.us>
Co-authored-by: Greg Allensworth <gregory@greeninfo.org>
Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
Co-authored-by: Jim McAndrew <jim@loc8.us>
Co-authored-by: Seth Fitzsimmons <seth@mojodna.net>
Co-authored-by: Sanjay Bhangar <sanjay@developmentseed.org>
Co-authored-by: Sajjad Anwar <sajjadkm@gmail.com>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Co-authored-by: Jim McAndrew <jim@loc8.us>
Co-authored-by: Seth Fitzsimmons <seth@mojodna.net>
Co-authored-by: Sanjay Bhangar <sanjay@developmentseed.org>
Co-authored-by: Sajjad Anwar <sajjadkm@gmail.com>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Co-authored-by: Dan Rademacher <dan@greeninfo.org>
Co-authored-by: Greg Allensworth <gregory@greeninfo.org>
Co-authored-by: Jeff Meyer <jeff@gwhat.org>
Co-authored-by: Dan Rademacher <dan@greeninfo.org>
Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Rub21 and others added 2 commits September 16, 2026 12:16
Co-authored-by: Dan Rademacher <dan@greeninfo.org>
Co-authored-by: mmd-osm <mmd.osm@gmail.com>
Co-authored-by: Jeff Meyer <jeff@gwhat.org>
Co-authored-by: Dan Rademacher <dan@greeninfo.org>
Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Rub21 and others added 5 commits September 16, 2026 12:48
Co-authored-by: Jim McAndrew <jim@loc8.us>
Co-authored-by: Seth Fitzsimmons <seth@mojodna.net>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Co-authored-by: Eric Theise <erictheise@gmail.com>
Co-authored-by: translatewiki.net <l10n-bot@translatewiki.net>
@Rub21

Rub21 commented Sep 16, 2026

Copy link
Copy Markdown
Member Author

I went through config/locales/overrides/ again and I found dead entries worth removing before we merge. We ship 11,035 override entries across 110 files, and about 9% of them are dead, in three groups that are dead for different reasons.

Key Files Entries Lines
site.communities.lede_text 47 47 308
activerecord.attributes.client_application.* 96 929 1,027
date.formats.contribution_calendar 19 19 19
Total 995 1,354

site.communities.lede_text — we removed the Communities page here, with its route and header link, so nothing reads this key in OHM. It is the only subkey under communities: in all 47 files.

activerecord.attributes.client_application.* — upstream renamed these to oauth2_application when it moved to Doorkeeper. There is no client_application in upstream's en.yml, no model here, and no code using it. We still translate it in 96 languages.

date.formats.contribution_calendar — in 19 files our value is the same as upstream, so the override does nothing.

Only config/locales/overrides/ changes. The upstream locale files stay as they are, so the diff against staging-new gets smaller.

* Remove dead entries from locale overrides

* Check for locale overrides that repeat upstream or look unused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants