Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
Merge branch 'v9.5.0' into v2_main
Browse files Browse the repository at this point in the history
  • Loading branch information
boonhapus committed Aug 24, 2023
2 parents 9061a6d + daf31fe commit 40bd943
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
26 changes: 26 additions & 0 deletions src/thoughtspot_tml/_scriptability.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/thoughtspot_tml/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.6"
__version__ = "2.0.7"
15 changes: 13 additions & 2 deletions src/thoughtspot_tml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,19 @@ def save(self, path: PathLike, *, info: Dict[str, Any] = None) -> None:
with pathlib.Path(path).open(mode="w", encoding="UTF-8") as j:
json.dump(data, j, indent=4)

def get_environment_guids(mapper, source, destination) -> Iterator[GUID, GUID]:
for key, environments in mapper._mapping.items():
def get_environment_guids(self, *, source: str, destination: str) -> Iterator[GUID, GUID]:
"""
Iterate through all guid pairs between source and destination.
Parameters
----------
source : str
name of the environment to fetch the source guid from
destination : str
name of the environment to fetch the mapped guid from
"""
for key, environments in self._mapping.items():
guid_src = environments[source]
guid_dst = environments[destination]
yield guid_src, guid_dst
Expand Down

0 comments on commit 40bd943

Please sign in to comment.