Skip to content

Commit

Permalink
fix: all tests pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
sg-s committed Nov 19, 2024
1 parent fe8a94e commit 551f793
Show file tree
Hide file tree
Showing 14 changed files with 202 additions and 298 deletions.
9 changes: 3 additions & 6 deletions src/data_hub/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import concurrent.futures
import os
import tempfile
from pathlib import Path
from typing import Any, Optional, Union
from urllib.parse import urlparse, urlunparse
Expand Down Expand Up @@ -246,7 +245,7 @@ def list_rows(
def download_file(
file_id: str,
*,
destination: str | Path | tempfile.TemporaryDirectory = os.getcwd(),
destination: str | Path = os.getcwd(),
client=None,
_stash: bool = False,
) -> None:
Expand All @@ -261,9 +260,7 @@ def download_file(
"""

if not isinstance(destination, tempfile.TemporaryDirectory) and not os.path.isdir(
destination
):
if not os.path.isdir(destination):
raise DeepOriginException(
message=f"Destination `{destination}` should be a path for a folder."
)
Expand Down Expand Up @@ -1102,7 +1099,7 @@ def get_dataframe(
def download_files(
files: Optional[list | dict] = None,
*,
save_to_dir: Path | str | tempfile.TemporaryDirectory = Path("."),
save_to_dir: Path | str = Path("."),
use_file_names: bool = True,
client=None,
_stash: bool = False,
Expand Down
3 changes: 1 addition & 2 deletions src/utils/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import functools
import json
import tempfile
from pathlib import Path
from urllib.parse import parse_qs, urljoin, urlparse

Expand Down Expand Up @@ -33,7 +32,7 @@ def check_for_updates():
@beartype
def download_sync(
url: str,
save_path: str | Path | tempfile.TemporaryDirectory,
save_path: str | Path,
) -> None:
"""Concrete method to download a resource using GET and save to disk
Expand Down
30 changes: 30 additions & 0 deletions tests/fixtures/responses/convert_id_format.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"{\"conversions\": [{\"hid\": \"dfsd-306\"}, {\"hid\": \"exp-1\"}, {\"hid\": \"dna-8\"}]}": [
{
"id": "_row:cbOepriiytSaPfpqetT4C",
"hid": "dfsd-306"
},
{
"id": "_row:ku2ZdpZ0VkYgOj1Y37rSi",
"hid": "dna-8"
},
{
"id": "_row:rakyaiwKrKsS4JT9IJsXn",
"hid": "exp-1"
}
],
"{\"conversions\": [{\"id\": \"_row:cbOepriiytSaPfpqetT4C\"}, {\"id\": \"_row:ku2ZdpZ0VkYgOj1Y37rSi\"}, {\"id\": \"_row:rakyaiwKrKsS4JT9IJsXn\"}]}": [
{
"id": "_row:cbOepriiytSaPfpqetT4C",
"hid": "dfsd-306"
},
{
"id": "_row:rakyaiwKrKsS4JT9IJsXn",
"hid": "exp-1"
},
{
"id": "_row:ku2ZdpZ0VkYgOj1Y37rSi",
"hid": "dna-8"
}
]
}
6 changes: 3 additions & 3 deletions tests/fixtures/responses/create_database.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@
}
},
"{\"database\": {\"hid\": \"tc-4Qzkrn57rM-db\", \"hidPrefix\": \"tc-4Qzkrn57rM-db\", \"name\": \"tc-4Qzkrn57rM-db\", \"parentId\": \"registry\"}}": {
"id": "_database:WrOAWYHIuIqqvy0nbGb5u",
"id": "_database:6yDqaiwVaJF3RNodOWW19",
"type": "database",
"hid": "tc-4Qzkrn57rM-db",
"name": "tc-4Qzkrn57rM-db",
"dateCreated": "2024-11-18 20:26:20.145809",
"dateUpdated": "2024-11-18 20:26:20.145809",
"dateCreated": "2024-11-19 02:31:40.413344",
"dateUpdated": "2024-11-19 02:31:40.413344",
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]",
"parentId": "_workspace:IYTHdIjtuSvnOekwQjUlN",
"hidPrefix": "tc-4Qzkrn57rM-db",
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/responses/create_file_download_url.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"{\"file_id\": \"_file:09fwpdPqHtVdt4jj43ywC\"}": {
"downloadUrl": "https://s3.us-west-2.amazonaws.com/data.deeporigin-com.ijvjf/files/_file%3A09fwpdPqHtVd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PQcHlsh98EoCRULQ09DCkAKE%2FifQ%2F2uKkL5PLImkpwc0MOFuoPgVoYQKLvTQ1DqvxQH6flKYQYY8IQuPvjkokEhnhvabeS56tjG5ukAmz31ho1CyJVHg3tONNx%2FPEkDlT9rgljWbaD8c7Pompsb5G843IbGxjTdNNyn17TwYCou%2BqiHetVZGPNKyfhIQ1%2B7ERzlt2jaYw7MXuuQY6mwET59CZAQh9D9F7InhTgdsRGeUbkg38y4nAFzv2kbmMozSeLw8MtdnYmCjYavVctiwnH86O59BD%2BaephTUozgRi6j9KJ17OamqG7I5zucrL9b6cHJkuv29Cx%2BDe%2Bd1dHB134t7L8BmtNHI1LNysKaXfuckcqgC69QjYeRh1ECgmcfHTp0LWRFaftX1JbseEeFAGuZVB9U5facnyGw%3D%3D&X-Amz-Signature=3cabd9bbed4f2de87fa3cb2f63041d47504fdc4875ea2626fe4b211bc9c497ae&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27science.ade2574_sm.pdf&x-id=GetObject"
"downloadUrl": "https://s3.us-west-2.amazonaws.com/data.deeporigin-com.ijvjf/files/_file%3A09fwpdPqHtVdt4jj43ywC?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAYOHGBN6AVXATGS7W%2F20241119%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20241119T023140Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjENP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJIMEYCIQCwPytzoqcYERMuMIOLvYkgVScDKAxluuCrvr2f%2FcPPMAIhAIJLyOogKrN5v3cCBTgNMAHNOBL%2FY3nlh8QtbhiGQMfhKpcFCGwQARoMNTgwMzAzMDI0MDAxIgwhUnmbxzbSe0IsXt0q9AQl3tgnQ3hcxX%2BeI1Y1qyV%2FXPBDQHleLgFYD7VzTgCSW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X-Amz-Signature=bfcb539c5ed7be3f64d916a1a717f8ac89edff7815436f4e1210dcaa97afe56a&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27science.ade2574_sm.pdf&x-id=GetObject"
}
}
45 changes: 45 additions & 0 deletions tests/fixtures/responses/create_file_upload.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,50 @@
"dateUpdated": "2024-11-18T20:26:25.600Z",
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]"
}
},
"{\"checksum_sha256\": \"OOalC7zeyKhsbKYnafPElfRfNNhFbb9834QZKG0bScI=\", \"content_length\": \"10532\", \"content_type\": \"text/x-python\", \"name\": \"test_data_hub.py\"}": {
"uploadUrl": "https://s3.us-west-2.amazonaws.com/data.deeporigin-com.ijvjf/files/_file%3AcAntixwMAY0kdJof1TEBf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAYOHGBN6ATAQFMUMY%2F20241119%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20241119T003917Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjENH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJGMEQCIHz6tHmjctUAM36I9zcwCdlouPsc%2FMDfhG6mknp4NmYyAiAfSHVjyA%2F15WKleAUk5KuKUOvmnhZ7mfwo6gMC0Tb4ViqXBQhqEAEaDDU4MDMwMzAyNDAwMSIMk1O0CQbPw4TZ%2BYEtKvQEIsBTRpc3p6BJA3cknLyDwgvN%2F5uvv4KLM4%2B%2Bgn2dW6%2BQGUgAo7RzDPc9n%2BpwTfpbApD14E4hCveAz5lbbPEGAEJOJSosaSV4WL468%2FHMzoMtCaaEWVU3X4QYQ9owoS3LI4UA1bSuNzQSlIHCI4TFvPqX4BvYG3HbYpqFv5ZQVz8xJOAlToPxyS4E4nh9Qi77BYixRs98m41Kd3iQvqpx9KVoYml1c5RS2Ja0ldzGBoHF2sjTjN636gfJuWF7keVY34xjzlyWD9erAp1vI4FTy85TFSgdHX7viI0dzPuHHUz8jCggtFYm7duyWyaBk7iQtLDARDrAhjFpD37Iudlxxqmzc%2BlzXFdrCI0%2F6uRkgqrbkDMAIObFQNZTNzykait%2FcsHING%2FO0F3No3twchEiUMjkRnMIV%2FvHT8%2BZuhk%2BSNfkR%2BcpWUGi%2FNRs%2BvlS%2FSInjcn6%2B1nBmAEnlMAlIiqbiz1%2FeJLpi3Y4hMrR9cGMZfULFeZkv%2BbAvwtCaylbPurm4pyNVt0o4J9%2FjdsDjqAazGkncMV%2F2ToNsKvK0%2Fva5%2Fr4RT3NojM8iHQaf5iXqekgajNh7i0dcj4fz7I1qKxtNtBXQ%2Bp7%2BAU64zV37FPFgrFckWelYATjo84E4EvHD%2BTKMeYVWpPa7HxanXhBJz8YK1%2Blz%2FxK1MkZqp75TRmVJtWplAwlnIp4OfHO3ogMzhiLKiesyHlqBlMKCkLmNXKo56%2FCsn7ZF%2BhsOuEp0lCdX8wvsc%2FLi%2FBjP0vPHC%2FvM8rSzDg9KopgIIf3v3mDbC4uBVMPHyhBYYp8yvPxnhbox%2F%2FQbszhnHVPSvwm%2FOZMuNe92BZPOzC2vO%2B5BjqcAZIKAbXyarlFcIEVesM969xNvBLz0qcRMNEmASZqTuspDa3y4Bh3ycihk3oXcBiKD4VjTlw%2BAl3K6NMvifsezP%2F0P9COu3kywpBO9jbkmAaJgPAcDYH4j5nkpIonhVWVfUEG%2BVoVAmOCRTKTujlmFAEC9O%2BegVi%2Bp8l9FUCSDSO%2FKGMKKLmtlb%2FP6dizOE159TxeecIGQImD%2BRyK8A%3D%3D&X-Amz-Signature=e67e98220003654c0e9f586247794fd918a7c8138c18e07993a9fd3e4be43c77&X-Amz-SignedHeaders=content-length%3Bhost%3Bx-amz-checksum-sha256&x-amz-sdk-checksum-algorithm=SHA256&x-id=PutObject",
"file": {
"name": "test_data_hub.py",
"contentType": "text/x-python",
"contentLength": 10532,
"checksumSha256": "OOalC7zeyKhsbKYnafPElfRfNNhFbb9834QZKG0bScI=",
"id": "_file:cAntixwMAY0kdJof1TEBf",
"status": "ready",
"uri": "s3://data.deeporigin-com.ijvjf/files/_file:cAntixwMAY0kdJof1TEBf",
"dateCreated": "2024-11-19T00:39:18.050Z",
"dateUpdated": "2024-11-19T00:39:18.050Z",
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]"
}
},
"{\"checksum_sha256\": \"ow8eG4Wyyh7lFRVWXX+5/0GKgq/9fKxTTnx8ZXg/V/4=\", \"content_length\": \"10300\", \"content_type\": \"text/x-python\", \"name\": \"test_data_hub.py\"}": {
"uploadUrl": "https://s3.us-west-2.amazonaws.com/data.deeporigin-com.ijvjf/files/_file%3AHgf8ODhmDqrkHkSWKxWYS?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAYOHGBN6AZVKO3FAJ%2F20241119%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20241119T004001Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjENH%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIGYetUfWMyWkceuhk%2FgEHpS18eh%2BXruqXPlfAjQ9U8bCAiEA2%2FA8Z41Ghi8gUj4yKGN%2FU8VJqnkPjVfWMgwQtg8NipoqlwUIahABGgw1ODAzMDMwMjQwMDEiDOLtjhGDxaJi4o%2BUaSr0BFBWX82tYpQarr1gLyB4%2BoQW5q%2Fsodqbp9s4pgLTyhfRrApelWXa9Tj3P4%2Fe1liELuhQ5FKz0BhvFTw2kjFLr8TEuIzgXgJalgdxtsWs32YC%2BDOlWaI1WWadIL%2FIqIfabrocf9ttDVZx%2FjOTjwDEvq33wfw6e1YxsxPruy4NpnQ3wHbkm4vcu%2Frb7%2BP4qsuRbQEwA3fd7qDTuFL9K7CsYRM%2BYckjSjogJnwAyxruG36aBBeK7rReRxNGD6hJKTvp96E9HLS%2F63fSs6qg%2BN%2BOWKRvddDYnEa1FFGJniOnw1BkQOyNtaBMPLDCXe%2BTNZr5h72QhODODGx%2FgS0kWXuqW0569rcTGTaO2WRvERNVs%2BtYTUEcQbdKM4b6i8kB4ci5BAlRaHL906eBp%2B1VKzDXfa1ee20%2F1cfRmmITBAQmQ52QiQL53KdiZBbQu2GryHYpdL5mVOjmZhZs7e7wLVQ4myHMNhjKRSndmFUNcfHIhrJz0XPQS4%2FBwRkYvuRL7uxjWS6tCXI542RZUX%2BOXwIG%2BJd7LOSVxxGNr5J8xJMuSAas3F7Wjg6zRxA2sWbBQdO%2BP8dh60yX%2B%2FB8xXZfn6qioFtwk0eVhbLWhBj%2Bha06SQSd5hiKIFVM6vqRCkKkd2KLVTsEAyoCQS4Uo2u6aJP%2B%2B9kkFbQ883yu4SQN3dVV0xnVArbrOKs7wWWg%2FIwQ9s5q2m%2FZQ7R5KuGbpxnBV3dt5OHhWOIkIG7znMf%2Bhczn5jfXpeHt4DWA3GKy8SljECNl8Omu5ZY9GvKdAuxkwaZ1hlwS3PvT9zGTbGJeflRvep5Pre1HcHxroMutxCPFxndkJ068yIIw4bzvuQY6mwFcXasbsCX81dL93%2BP7uQM%2Fkz%2FL%2FFhqNzrz5ZyIcHITSmCpBNCBNfbb85ok5drbmrZ2sGOkhzK%2BqXu5MRfT2eR7C7rmTHtmI9l1RPkRsBZPvs4ypjAGqHynxg0J%2B7a%2Fz0xjcdMSZlSJG3GaVjZxZOiSdY5vmj%2F%2FKMoJAO6Sr8VxTfq3EkUsSTUqiBR6K3IMuqE0x90Af1cfqe8Ovw%3D%3D&X-Amz-Signature=0e9c563abe72c55965d8298b9482157d4211720b01462e9da7fbfe4c54cc8ab9&X-Amz-SignedHeaders=content-length%3Bhost%3Bx-amz-checksum-sha256&x-amz-sdk-checksum-algorithm=SHA256&x-id=PutObject",
"file": {
"name": "test_data_hub.py",
"contentType": "text/x-python",
"contentLength": 10300,
"checksumSha256": "ow8eG4Wyyh7lFRVWXX+5/0GKgq/9fKxTTnx8ZXg/V/4=",
"id": "_file:Hgf8ODhmDqrkHkSWKxWYS",
"status": "ready",
"uri": "s3://data.deeporigin-com.ijvjf/files/_file:Hgf8ODhmDqrkHkSWKxWYS",
"dateCreated": "2024-11-19T00:40:01.413Z",
"dateUpdated": "2024-11-19T00:40:01.413Z",
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]"
}
},
"{\"checksum_sha256\": \"HBtzo8llBxCz+VTKiadjW1i/tcLGq8kOafOJXPcW3+g=\", \"content_length\": \"10486\", \"content_type\": \"text/x-python\", \"name\": \"test_data_hub.py\"}": {
"uploadUrl": "https://s3.us-west-2.amazonaws.com/data.deeporigin-com.ijvjf/files/_file%3AmdLNOcypPygiSS2LiX9Zn?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=ASIAYOHGBN6ASQNAT3AO%2F20241119%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20241119T023141Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjENP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIQCudBw%2FeCfs1%2BFh1rzMnUICOhm3rarEgqMJv76Zepj2gQIgTVASn1wni87XurP%2BEVa15k4LqyoYPCiTDNQX%2BKy%2BvlcqlwUIbBABGgw1ODAzMDMwMjQwMDEiDPMbPIzHAWhyOPhM2Sr0BHC8kVPt7Ykv6f3tQyKX6PlEVuGTTTjynboP6cCcCsRymA%2FRxIh%2BtEOrYdKrMtVaE20tNHBaeAgVF1fNOSvpHMnQ%2Bq%2FD7UzEv0kjxZNf4osWXJzDb%2BY%2Fz9C9egVhdgtoCzX%2Fy92rnnSYZkIFaaWr6J5r2qNSxZ9g4hRKpxmIDbnxPp0NJ%2Ft%2Feh51zvLB%2Fja30V7mQ2xt7mgkBbfJYCcmlAikfKkCWX80LHUPtEEytVZO8JTFSeXg91VjgfZ5J3bO8q2doE9OsXllsAT8ybFYyq%2B9gBeiyg5vsLCT%2B6cfSgNWbMhwSU0ikOdETQLqa2mytiSheHou4BrJw%2BncnC%2FlqM%2F0bNHe79sntu2z0qMDr%2B52EZ3E5KEqWPe9lpcOAVun%2B0IRpOBZHQA4Y02v3R6V%2BNGdU1YNVg8YVK2Ggv92A5nTqMaxgczhnBiP5zVlosC50%2BISM56MaYZlj4DjInQHQ5CkJu42TYIYYHwsP56TLczMz5p05FgU75LVVhWOTfFvApQPq3xpnXh3Snobn1tLAqFl6QiroYE9ZRVRr5%2BiQj72c498ARd184v7zQ12OMXu6AJVTk%2FVHxkDP%2FaDvAOWhiN339nACrr5tWdvf2x8a6QwVAybXd27tbOOOK80GEw8rAyu3QdVDgV7BlHGxfPXlXuhCbpedYUFYsNqmWtlWUvV6IkM%2ByJ3ajkzNDjOy90R%2FlrTAjAv%2BVEVQFeC4OgcSb6jOLvM4miw091dzX0rnRiyacU3qzk1EVwtu1pDOEhKngbNJozxPehNp7NPVY6Ak%2BhF9%2B%2Bl6OwPSlGg09bwBOc8RbrKYbyxGe1Ao4OrX9poOSKDNokwjfHvuQY6mwEK12iR26T%2BUkPPULpvMKYGK%2FqxQOtPFmj%2FRLCT6gvgpAzcMH96QlA1vT33qRq6zUoJK%2BUaLtoOnrtJTjJfEaf6d00bw2TvsJXAzrvIxHY8kuQprZgORWILVyjRCZJEyNIIKtpV7LtuQgJA6rvjWO2bNXl2IqUxs0okheykHsPa%2FclMOdfbCgct1ejkV6k2R%2B3alcqmuy%2B9peOeVw%3D%3D&X-Amz-Signature=0d8a52680bed3d7f972556413d728005e391dca145df9489da287bf46988f080&X-Amz-SignedHeaders=content-length%3Bhost%3Bx-amz-checksum-sha256&x-amz-sdk-checksum-algorithm=SHA256&x-id=PutObject",
"file": {
"name": "test_data_hub.py",
"contentType": "text/x-python",
"contentLength": 10486,
"checksumSha256": "HBtzo8llBxCz+VTKiadjW1i/tcLGq8kOafOJXPcW3+g=",
"id": "_file:mdLNOcypPygiSS2LiX9Zn",
"status": "ready",
"uri": "s3://data.deeporigin-com.ijvjf/files/_file:mdLNOcypPygiSS2LiX9Zn",
"dateCreated": "2024-11-19T02:31:41.749Z",
"dateUpdated": "2024-11-19T02:31:41.749Z",
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]"
}
}
}
6 changes: 3 additions & 3 deletions tests/fixtures/responses/create_workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]"
},
"{\"workspace\": {\"hid\": \"tc-4Qzkrn57rM-ws\", \"name\": \"tc-4Qzkrn57rM-ws\", \"parentId\": null}}": {
"id": "_workspace:fuwIWJoLFy9rqMDorXebv",
"id": "_workspace:6Wja8RPJ1hTP0ZB4K1UZu",
"type": "workspace",
"hid": "tc-4Qzkrn57rM-ws",
"name": "tc-4Qzkrn57rM-ws",
"dateCreated": "2024-11-18 20:26:20.358607",
"dateUpdated": "2024-11-18 20:26:20.358607",
"dateCreated": "2024-11-19 02:31:40.529314",
"dateUpdated": "2024-11-19 02:31:40.529314",
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]"
},
"{\"workspace\": {\"hid\": \"tc-4Qzkrn57rM-d64c9f\", \"name\": \"tc-4Qzkrn57rM-d64c9f\", \"parentId\": null}}": {
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/responses/describe_database_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"rowCount": 29
},
"{\"database_id\": \"kitchen-sink\"}": {
"rowCount": 120
"rowCount": 125
}
}
8 changes: 4 additions & 4 deletions tests/fixtures/responses/ensure_rows.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"rows": [
{
"type": "row",
"id": "_row:21p3WTJ8i4OA5IKYRldms",
"hid": "ks-129",
"id": "_row:dEKQy0zs4KtvubW3kfOZq",
"hid": "ks-133",
"parentId": "_database:swAKhqQzxqTB7cm2FeVcW",
"dateCreated": "2024-11-18 20:26:26.024273",
"dateUpdated": "2024-11-18 20:26:26.024273",
"dateCreated": "2024-11-19 02:31:40.246771",
"dateUpdated": "2024-11-19 02:31:40.246771",
"createdByUserDrn": "drn:identity::user:google-apps|[email protected]",
"validationStatus": "valid"
}
Expand Down
Loading

0 comments on commit 551f793

Please sign in to comment.