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

Pva/evsrestapi 539 add pediatric subsets #319

Merged
merged 42 commits into from
Feb 5, 2025

Conversation

peter-va
Copy link
Collaborator

Implements pediatric subsets, integrating them into the subset hierarchy under the NCIt subset C143048

https://tracker.nci.nih.gov/browse/EVSRESTAPI-539

Copy link
Collaborator

@bcarlsenca bcarlsenca left a comment

Choose a reason for hiding this comment

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

I added a few comments on this one, please have a look.

workbook.close(); // Close the workbook to release resources
} catch (IOException e) {
System.err.println("Failed to close the workbook. Error: " + e.getMessage());
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Never use this pattern of having a try/catch and then just logging the error. In this case, just define the methdo as "throws Exception" and let it just get thrown. If there's really a problem here, we should stop. This is probably true of the try on 629 also. Why bother even catching it - just let that exception get thrown. The other option is to catch the exception, then do a logger.error("your own error message",e); and then throw new Exception("Unexpected xxx",e)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Catching it I think is going to be important for the audit log later (so I can record the necessary information for the error), so I'll throw the exception after catching it

@@ -0,0 +1,161 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we adding this file here? is it for testing? Because this file lives in evsrestapi-operations and having it here is confusing. We should add "extra subsets" to the real file in evsrestapi-operations.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is there because we talked about having the test for reading extraSubsets from the json file use a local version of the file instead of the operations version. I can change that back to the operations version without much trouble if that's better

@bcarlsenca bcarlsenca changed the base branch from develop-2.1 to develop February 5, 2025 21:49
@peter-va peter-va merged commit 164c5ab into develop Feb 5, 2025
2 checks passed
@peter-va peter-va deleted the PVA/EVSRESTAPI-539-add-pediatric-subsets branch February 5, 2025 23:13
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