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

Properly set the ops:Harvest_Info/ops:node_name values, remove obsolete node_name in configuration file #188

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

al-niessner
Copy link
Contributor

🗒️ Summary

Just a quick typo change. More to come.

⚙️ Test Data and/or Report

NA

♻️ Related Issues

Closes #186
Closes #187

@al-niessner al-niessner self-assigned this Sep 19, 2024
@al-niessner al-niessner requested a review from a team as a code owner September 19, 2024 15:35
@al-niessner al-niessner marked this pull request as draft September 19, 2024 15:36
@@ -59,8 +60,7 @@ static public List<String> exchangeLidvids (List<CollectionType> ids) {
}
static public String exchangeIndexForNode (String indexName) {
if (indexNodeMap.containsKey (indexName)) return indexNodeMap.get(indexName);
if (0 < indexName.indexOf("-registry")) return indexName.substring(0, indexName.indexOf("-registry"));
return "development";
throw new IllegalArgumentException("Index (" + indexName + ") + not supported: either fix it in your configuration by using one of the supported or request an upgrade of harvest");
Copy link
Member

Choose a reason for hiding this comment

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

Thanks @al-niessner, I would like the error message to provide the github issue link where the user can request for the upgrade needed, you can add to the message: " to support your new index by submitting a ticket on https://github.com/NASA-PDS/harvest/issues".

cut and pasted the string in there for ya
@tloubrieu-jpl tloubrieu-jpl merged commit d55a749 into main Oct 8, 2024
2 checks passed
@tloubrieu-jpl tloubrieu-jpl deleted the issue_186_187 branch October 8, 2024 15:09
@tloubrieu-jpl tloubrieu-jpl changed the title node name issues Properly set the ops:Harvest_Info/ops:node_name values, remove obsolete node_name in configuration file Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants