[Bug]: Remove redundant central calls for CLI commands after java 17 migration #41190
Labels
Area/ProjectAPI
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/Bug
Milestone
Description
In the CLI commands, we have iterated through the
SupportedPlatforms
array and for each of the value in the array, we send central API calls withBallerina-Platform
set to each value. This is to filter out packages that are built with the specific platform.However, this array previously contained only java11. (
SUPPORTED_PLATFORMS = {"java11"}
). Therefore only one request was sent.Now with the addition of java17,
SUPPORTED_PLATFORMS = {"java11", "java17"}
has caused a lot of requests within cli commands includingbal pull
,bal search
,bal tool search
,bal tool pull
to be duplicated doing the same thing twice.Steps to Reproduce
Type
bal search
with the latest lang master build.Affected Version(s)
2201.8.0-SNAPSHOT
OS, DB, other environment details and versions
No response
Related area
-> Other Area
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: