Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV-429: Fix GeoServer URL references updates #14

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

danschmidt5189
Copy link
Contributor

@danschmidt5189 danschmidt5189 commented Dec 22, 2023

  • Fixes how GeoServer reference URLs are updated in the SolrIndexer.
  • Refactors the GeoserverPublisher class to incorporate more of the logic currently in the ImportUtil class. Beefs up test coverage around its functionality, including adding a few end-to-end tests that rely on the geoservers running.

@danschmidt5189 danschmidt5189 force-pushed the refactor-publisher branch 4 times, most recently from bf356b9 to 6223bd5 Compare December 22, 2023 21:46
docker-compose.yml Show resolved Hide resolved
lib/gingr/cli.rb Show resolved Hide resolved
lib/gingr/cli.rb Show resolved Hide resolved
lib/gingr/cli.rb Show resolved Hide resolved
lib/gingr/config.rb Show resolved Hide resolved
lib/gingr/geoserver_publisher.rb Show resolved Hide resolved
lib/gingr/geoserver_publisher.rb Show resolved Hide resolved
lib/gingr/solr_indexer.rb Show resolved Hide resolved
end
end

describe 'publish' do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests all hit the actual running GeoServers, so they're pretty valuable. We need a few more end-to-end tests like these (especially for the DataHandler and the logic in the Cli.all method).

spec/solr_indexer_spec.rb Show resolved Hide resolved
@danschmidt5189 danschmidt5189 changed the title DRAFT: Refactors the GeoServer Publisher DEV-429: Fix GeoServer URL references updates Dec 22, 2023
@danschmidt5189 danschmidt5189 force-pushed the refactor-publisher branch 5 times, most recently from 99ab0d0 to 64bdab3 Compare December 22, 2023 22:14
Copy link
Contributor

@yzhoubk yzhoubk left a comment

Choose a reason for hiding this comment

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

Thanks! Should we test staging next time with big batch?

docker-compose.yml Show resolved Hide resolved
lib/gingr/cli.rb Show resolved Hide resolved
lib/gingr/cli.rb Show resolved Hide resolved
lib/gingr/cli.rb Show resolved Hide resolved
lib/gingr/geoserver_publisher.rb Show resolved Hide resolved
lib/gingr/geoserver_publisher.rb Show resolved Hide resolved
lib/gingr/geoserver_publisher.rb Show resolved Hide resolved
lib/gingr/geoserver_publisher.rb Show resolved Hide resolved
- Fixes how GeoServer reference URLs are constructed. We now pass only
  the root path to the geoserver, omitting the /rest/ suffix pointing
  to the API. It's assumed that the API lives at /rest/ and the web
  service URLs live at /wms/ and /wfs/
- Refactors the GeoserverPublisher to incorporate much of the logic
  currently present in Cli or ImportUtil. The test suite has been
  updated and fleshed out accordingly.

more stash

more fixes

gets suite passing
@danschmidt5189 danschmidt5189 merged commit dc1e114 into main Dec 23, 2023
4 checks passed
@danschmidt5189 danschmidt5189 deleted the refactor-publisher branch December 23, 2023 04:40
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