MonkeyCanCode commented on code in PR #931:
URL: https://github.com/apache/polaris/pull/931#discussion_r1942003357


##########
regtests/client/python/cli/command/profiles.py:
##########
@@ -0,0 +1,142 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+import os
+import sys
+import json
+from dataclasses import dataclass
+from typing import Dict, Optional, List
+
+from pydantic import StrictStr
+
+from cli.command import Command
+from cli.constants import Subcommands, DEFAULT_HOSTNAME, DEFAULT_PORT, 
CONFIG_DIR, CONFIG_FILE
+from polaris.management import PolarisDefaultApi
+
+
+@dataclass
+class ProfilesCommand(Command):
+    """
+    A Command implementation to represent `polaris profiles`. The instance 
attributes correspond to parameters
+    that can be provided to various subcommands, except `profiles_subcommand` 
which represents the subcommand
+    itself.
+
+    Example commands:
+        * ./polaris profiles create dev
+        * ./polaris profiles delete dev
+        * ./polaris profiles update dev

Review Comment:
   Yes. The diff is update will load current value as opposed to just delete 
(which we will then lost the original values in case if user only wants to 
update certain fields...e.g. change url as user was using localhost and now the 
proper fqdn is ready to use...then instead of asking user to delete and 
recreate, we can just use update to change for the url)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to