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

SOLR-17159: Untangle PostTool and SimplePostTool code #2275

Merged
merged 19 commits into from
Feb 19, 2024

Conversation

epugh
Copy link
Contributor

@epugh epugh commented Feb 16, 2024

https://issues.apache.org/jira/browse/SOLR-17159

Description

This untangles the links between PostTool and SimplePostTool, and their corresponding unit tests.

Solution

I seperated the code dependencies so a delete can be done easier on just main while this is intedned to go to branch_9x. I introduced a --dry-run capability on PostTool that a user can play with that also let us simplify some of the code by removing some mock specific features.

Tests

new tests, both unit and bats.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

Still need to deal with the SimplePostTool and PostTool migr
@github-actions github-actions bot added documentation Improvements or additions to documentation tool:build start-scripts labels Feb 16, 2024
@epugh
Copy link
Contributor Author

epugh commented Feb 18, 2024

This was all fun, but not I see that it's going to be VERY hard to backport the improvements I've made in the Post tool to branch_9x.. So I'm going to undo the deletions, get that merged, and then open a new one...

@epugh epugh changed the title SOLR-17159: Remove post and postlogs from Solr X SOLR-17159: Untangle PostTool and SimplePostTool code Feb 19, 2024
@github-actions github-actions bot removed the documentation Improvements or additions to documentation label Feb 19, 2024
Lets not start mixing case on our long options either...  solrUrl is the java form, it really should be solr-url in our shell scripts.
@epugh epugh merged commit bb0675b into apache:main Feb 19, 2024
4 of 5 checks passed
epugh added a commit that referenced this pull request Feb 19, 2024
* Copied unit tests from SimplePostToolTest to PostToolTest
* add a --dry-run mode that simulates sending documents to Solr
* Missed a few more places with -commit not needed post SOLR-17147 being completed
* clean up our code base to have fewer warnings about code quality.
* Update SolrCloudExampleTest to use the PostTool instead of simulating it's usage.
* Make the long form of -url expliciting a --solr-update-url to be clear what it's for.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant