delete /api/admin/test but add some TODOs #11760#44
Merged
qqmyers merged 1 commit intoGlobalDataverseCommunityConsortium:SPA-_api_to_getToolLaunchUrlfrom Sep 3, 2025
Conversation
Enough functionality has been added in #11760 that it should be save to delete all of /api/admin/test (TestApi.java) because it was only testing external tools. However, if we incorporate this change into that PR we should do the following: - fix the backend to not return a toolUrl when it shouldn't (see testFileLevelToolWithAuxFileReq) - consider how we aren't exercising findDatasetToolsByType and findFileToolsByType anymore. They are used by JSF. - consider how we don't return the following fields when getting the toolUrl: scope, types, contentType - remove commented code that's just there for review
Pull Request Test Coverage Report for Build #1251Details
💛 - Coveralls |
qqmyers
approved these changes
Sep 3, 2025
4c10b8a
into
GlobalDataverseCommunityConsortium:SPA-_api_to_getToolLaunchUrl
8 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enough functionality has been added in IQSS#11760 that it should be safe to delete all of /api/admin/test (TestApi.java) because it was only testing external tools.
However, if we incorporate this change (deleting that class) into that PR we should do the following:
This is the tool added with testFileLevelToolWithAuxFileReq:
In JSF, the tool is correctly not shown for the "false" file (random bytes with an extension of ".hdf5"):
But via the new API, a tool is offered:
Instead, the API should return something like "auxFilesExist requirement not met". From what I can tell,
externalToolService.meetsRequirements()isn't called by the new API. This method was added in 9edaf59.