diff --git a/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/DefaultGraphCatalogApplications.java b/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/DefaultGraphCatalogApplications.java index 900c05da19..8de2f09e3c 100644 --- a/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/DefaultGraphCatalogApplications.java +++ b/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/DefaultGraphCatalogApplications.java @@ -235,26 +235,26 @@ public boolean graphExists(User user, DatabaseId databaseId, String graphNameAsS /** * @param failIfMissing enable validation that graphs exist before dropping them - * @param databaseName optional override - * @param username optional override + * @param databaseNameOverride optional override + * @param usernameOverride optional override * @throws IllegalArgumentException if a database name was null or blank or not a String */ @Override public List dropGraph( Object graphNameOrListOfGraphNames, boolean failIfMissing, - String databaseName, - String username, + String databaseNameOverride, + String usernameOverride, DatabaseId currentDatabase, User operator ) { // general parameter consolidation // we imagine any new endpoints will follow the exact same parameter lists I guess, for now var validatedGraphNames = parseGraphNameOrListOfGraphNames(graphNameOrListOfGraphNames); - var databaseId = currentDatabase.orOverride(databaseName); - var usernameOverride = User.parseUsernameOverride(username); + var databaseId = currentDatabase.orOverride(databaseNameOverride); + var parsedUsernameOverride = User.parseUsernameOverride(usernameOverride); - return dropGraphApplication.compute(validatedGraphNames, failIfMissing, databaseId, operator, usernameOverride); + return dropGraphApplication.compute(validatedGraphNames, failIfMissing, databaseId, operator, parsedUsernameOverride); } @Override diff --git a/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/GraphCatalogApplications.java b/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/GraphCatalogApplications.java index 68862039c7..42f0057c9c 100644 --- a/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/GraphCatalogApplications.java +++ b/applications/graph-store-catalog/src/main/java/org/neo4j/gds/applications/graphstorecatalog/GraphCatalogApplications.java @@ -49,8 +49,8 @@ public interface GraphCatalogApplications { List dropGraph( Object graphNameOrListOfGraphNames, boolean failIfMissing, - String databaseName, - String username, + String databaseNameOverride, + String usernameOverride, DatabaseId currentDatabase, User operator );