Skip to content

Commit 51662ce

Browse files
22284: Refactors hierarchy parameters for move_cases, MAJOR (#328)
Co-authored-by: howsohazard <[email protected]>
1 parent 30f497d commit 51662ce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

howso/client/base.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ def move_cases(
849849
precision: t.Optional[Precision] = None,
850850
preserve_session_data: bool = False,
851851
source_id: t.Optional[str] = None,
852-
source_name_path: t.Optional[Collection[str]] = None,
853-
target_name_path: t.Optional[Collection[str]] = None,
852+
source_path: t.Optional[Collection[str]] = None,
853+
target_path: t.Optional[Collection[str]] = None,
854854
target_id: t.Optional[str] = None
855855
) -> int:
856856
"""
@@ -915,17 +915,17 @@ def move_cases(
915915
When True, will move cases without cleaning up session data.
916916
source_id : str, optional
917917
The source trainee unique id from which to move cases. Ignored
918-
if source_name_path is specified. If neither source_name_path nor
918+
if source_path is specified. If neither source_path nor
919919
source_id are specified, moves cases from the trainee itself.
920-
source_name_path : list of str, optional
920+
source_path : list of str, optional
921921
List of strings specifying the user-friendly path of the child
922922
subtrainee from which to move cases.
923-
target_name_path : list of str, optional
923+
target_path : list of str, optional
924924
List of strings specifying the user-friendly path of the child
925925
subtrainee to move cases to.
926926
target_id : str, optional
927927
The target trainee id to move the cases to. Ignored if
928-
target_name_path is specified. If neither target_name_path nor
928+
target_path is specified. If neither target_path nor
929929
target_id are specified, moves cases to the trainee itself.
930930
931931
Returns
@@ -963,8 +963,8 @@ def move_cases(
963963
"preserve_session_data": preserve_session_data,
964964
"session": self.active_session.id,
965965
"source_id": source_id,
966-
"source_name_path": source_name_path,
967-
"target_name_path": target_name_path
966+
"source_path": source_path,
967+
"target_path": target_path
968968
})
969969
self._auto_persist_trainee(trainee_id)
970970
if not result:

0 commit comments

Comments
 (0)