Skip to content

Commit ee4518b

Browse files
committed
Client-side changes to allow real-time data volume graph updates
1 parent 57b7aa6 commit ee4518b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

openlayer/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,7 @@ def publish_batch_data(
11301130
# Get min and max timestamps
11311131
earliest_timestamp = batch_df[batch_data["timestampColumnName"]].min()
11321132
latest_timestamp = batch_df[batch_data["timestampColumnName"]].max()
1133+
batch_row_count = len(batch_df)
11331134

11341135
with tempfile.TemporaryDirectory() as tmp_dir:
11351136
# Copy save files to tmp dir
@@ -1140,7 +1141,12 @@ def publish_batch_data(
11401141
with tarfile.open(tar_file_path, mode="w:gz") as tar:
11411142
tar.add(tmp_dir, arcname=os.path.basename("batch_data"))
11421143

1143-
payload = {"performGroundTruthMerge": False}
1144+
payload = {
1145+
"performGroundTruthMerge": False,
1146+
"earliestTimestamp": int(earliest_timestamp),
1147+
"latestTimestamp": int(latest_timestamp),
1148+
"rowCount": batch_row_count,
1149+
}
11441150

11451151
presigned_url_query_params_dict = {
11461152
"earliestTimestamp": int(earliest_timestamp),

openlayer/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
data=data,
2323
)
2424
"""
25-
__version__ = "0.1.0a13"
25+
__version__ = "0.1.0a14"

0 commit comments

Comments
 (0)