Skip to content

Ap 709: Update Geodata to use Geoblacklight 5.3.0; AP-714: Update Geodata to use Ruby 3.4#76

Merged
yzhoubk merged 16 commits into
mainfrom
AP-709
Jun 29, 2026
Merged

Ap 709: Update Geodata to use Geoblacklight 5.3.0; AP-714: Update Geodata to use Ruby 3.4#76
yzhoubk merged 16 commits into
mainfrom
AP-709

Conversation

@yzhoubk

@yzhoubk yzhoubk commented Jun 24, 2026

Copy link
Copy Markdown
Contributor
  1. Integrated a Geoblacklight instance into the current GeoData
  2. Updated to use Ruby 3.4.9
  3. Temporarily excluded Rspec test in build.yml , it will revered back in AP-754 during add/update test.

@anarchivist anarchivist 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.

looks okay - but i have a lot of questions. do we really intend to get rid a majority of the ERB templates and the css overrides?

Comment thread .github/workflows/build.yml
Comment thread app/assets/stylesheets/_customizations.scss
Comment thread app/assets/stylesheets/_footer.scss Outdated

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.

ditto this - i know the last change to your file was to update the logos, so do we need to retain this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, this has been moved to the legacy folder so it can be reused later if needed.

@import url("https://cdn.jsdelivr.net/npm/leaflet.fullscreen@5.3.0/dist/Control.FullScreen.css");
@import url("https://cdn.jsdelivr.net/npm/ol@8.1.0/ol.css");

@import 'customizations';

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.

importing the customizations should probably happen last as it will override all the other rules.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, updated.

Comment thread app/models/user.rb

@jason-raitz jason-raitz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a lot to go through. I've added some suggestions, comments, and questions. I'm also wondering if we should merge this into an upgrade branch first, since we have follow on work to do?

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Screen readers do better if given the language.

Suggested change
<html>
<html lang="en-US">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

On GeoData site, the content may include language other than English.

Comment on lines +3 to +4
<head>
<title><%= content_for(:title) || "Geodata V5" %></title>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should probably include the charset here.

Suggested change
<head>
<title><%= content_for(:title) || "Geodata V5" %></title>
<head>
<meta charset="utf-8">
<title><%= content_for(:title) || "Geodata V5" %></title>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can look into this while reviewing the UI updates for accessibility.

Comment on lines +108 to +109
config.add_facet_field Settings.FIELDS.GEOMETRY, item_presenter: Geoblacklight::BboxItemPresenter, filter_class: Geoblacklight::BboxFilterField, filter_query_builder: Geoblacklight::BboxFilterQuery, within_boost: Settings.BBOX_WITHIN_BOOST, overlap_boost: Settings.OVERLAP_RATIO_BOOST, overlap_field: Settings.FIELDS.OVERLAP_FIELD,
label: 'Bounding Box'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did anything change here? or is this just formatting? If just formatting, maybe we could make it easier to read? I think the following would work, but I do struggle to remember the intricacies of ruby formatting.

Suggested change
config.add_facet_field Settings.FIELDS.GEOMETRY, item_presenter: Geoblacklight::BboxItemPresenter, filter_class: Geoblacklight::BboxFilterField, filter_query_builder: Geoblacklight::BboxFilterQuery, within_boost: Settings.BBOX_WITHIN_BOOST, overlap_boost: Settings.OVERLAP_RATIO_BOOST, overlap_field: Settings.FIELDS.OVERLAP_FIELD,
label: 'Bounding Box'
config.add_facet_field Settings.FIELDS.GEOMETRY,
item_presenter: Geoblacklight::BboxItemPresenter,
filter_class: Geoblacklight::BboxFilterField,
filter_query_builder: Geoblacklight::BboxFilterQuery,
within_boost: Settings.BBOX_WITHIN_BOOST,
overlap_boost: Settings.OVERLAP_RATIO_BOOST,
overlap_field: Settings.FIELDS.OVERLAP_FIELD,
label: 'Bounding Box'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These are the original setup from the new GeoBlacklight instance. We'll address these files in future tickets.

Comment thread config/settings.yml
Comment on lines 103 to 138
@@ -125,69 +135,88 @@ DISPLAY_NOTES_SHOWN:
icon: triangle-exclamation-solid
note_prefix: "Warning: "

# Web services shown in tool panel
WEBSERVICES_SHOWN:
# - 'wms'
- 'tms'
# - 'wfs'
- 'xyz'
- 'wmts'
- 'tilejson'
- 'iiif'
- 'feature_layer'
- 'tiled_map_layer'
- 'dynamic_map_layer'
- 'image_map_layer'
- 'cog'
- 'pmtiles'

# Relationships to display

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not really familiar with the webservices yet. Why did we add in 'wms' and 'wfs' here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the GeoBlacklight's original configuration (likely from Stanford0. The original setup doesn't include geoServer but we have GeoServer. We'll address these files in future ticket.

Comment thread Gemfile
gem 'devise'
gem 'devise-guests', '~> 0.8'
gem 'geoblacklight', '~> 4.4.2'
gem 'geoblacklight'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we specify geoblacklight 5.3 here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the from the new Geoblacklight instance. We have another ticket (AP-710) for updating gem. I'll add it to that ticket.

@yzhoubk

yzhoubk commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

This is a lot to go through. I've added some suggestions, comments, and questions. I'm also wondering if we should merge this into an upgrade branch first, since we have follow on work to do?

Dan has a temporary workflow for staging and production deployments, so it is should be fine for us to use Main branch for this ticket.

@yzhoubk yzhoubk merged commit a8ce391 into main Jun 29, 2026
5 checks passed
@yzhoubk yzhoubk deleted the AP-709 branch June 29, 2026 16:49
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.

3 participants