You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hamilton.apache.org by sk...@apache.org on 2026/05/17 19:41:49 UTC

(hamilton) branch stefan/release-sub-packages updated (05941c56 -> d0806938)

This is an automated email from the ASF dual-hosted git repository.

skrawcz pushed a change to branch stefan/release-sub-packages
in repository https://gitbox.apache.org/repos/asf/hamilton.git


 discard 05941c56 Fix test failures and UI manage.py entrypoint
     new d0806938 Fix test failures and UI manage.py entrypoint

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (05941c56)
            \
             N -- N -- N   refs/heads/stefan/release-sub-packages (d0806938)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ui/backend/pyproject.toml   | 5 -----
 ui/backend/server/manage.py | 8 --------
 2 files changed, 13 deletions(-)


(hamilton) 01/01: Fix test failures and UI manage.py entrypoint

Posted by sk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

skrawcz pushed a commit to branch stefan/release-sub-packages
in repository https://gitbox.apache.org/repos/asf/hamilton.git

commit d08069381eae76795a3859c31ef8857f40f6a301
Author: Stefan Krawczyk <st...@cs.stanford.edu>
AuthorDate: Sun May 17 11:50:14 2026 -0700

    Fix test failures and UI manage.py entrypoint
---
 ui/backend/pyproject.toml                  |  5 -----
 ui/backend/server/server/settings_mini.py  |  2 +-
 ui/backend/tests/test_build.py             |  6 +++---
 ui/sdk/tests/tracking/test_polars_stats.py | 16 ++--------------
 4 files changed, 6 insertions(+), 23 deletions(-)

diff --git a/ui/backend/pyproject.toml b/ui/backend/pyproject.toml
index c93dbd70..51cd06ef 100644
--- a/ui/backend/pyproject.toml
+++ b/ui/backend/pyproject.toml
@@ -60,11 +60,6 @@ dependencies = [
     "typer",
 ]
 
-[project.scripts]
-# Django management commands for cleaner CLI usage with uv
-# Usage: uv run hamilton-ui
-hamilton-ui = "hamilton_ui.server.manage:main"
-
 [project.urls]
 homepage = "https://www.tryhamilton.dev/"
 documentation = "https://hamilton.apache.org/"
diff --git a/ui/backend/server/server/settings_mini.py b/ui/backend/server/server/settings_mini.py
index 91c41513..6cd8c39e 100644
--- a/ui/backend/server/server/settings_mini.py
+++ b/ui/backend/server/server/settings_mini.py
@@ -131,7 +131,7 @@ WSGI_APPLICATION = "server.wsgi.application"
 STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
 STATIC_URL = "/static/"
 STATICFILES_DIRS = [
-    os.path.join(BASE_DIR, "build/static/"),
+    os.path.join(BASE_DIR, "build/assets/"),
 ]
 
 # Add for serving the 'index.html' and other build files not in STATICFILES_DIRS
diff --git a/ui/backend/tests/test_build.py b/ui/backend/tests/test_build.py
index e362ee1a..35160d06 100644
--- a/ui/backend/tests/test_build.py
+++ b/ui/backend/tests/test_build.py
@@ -150,9 +150,9 @@ class TestDjangoConfiguration:
             "Django settings missing mini mode configuration"
         )
 
-        # Check for STATICFILES_DIRS pointing to build/static/ or build/assets/
-        assert "build/static/" in settings_content or "build/assets/" in settings_content, (
-            "Django settings missing build/static/ or build/assets/ in STATICFILES_DIRS"
+        # Check for STATICFILES_DIRS pointing to build/static or build/assets
+        assert "build/static" in settings_content or "build/assets" in settings_content, (
+            "Django settings missing build/static or build/assets in STATICFILES_DIRS"
         )
 
         # Check for MEDIA_ROOT pointing to build/
diff --git a/ui/sdk/tests/tracking/test_polars_stats.py b/ui/sdk/tests/tracking/test_polars_stats.py
index 9db8e788..31c2346b 100644
--- a/ui/sdk/tests/tracking/test_polars_stats.py
+++ b/ui/sdk/tests/tracking/test_polars_stats.py
@@ -157,13 +157,7 @@ def test_compute_stats_df():
                 "missing": 0,
                 "name": "h",
                 "pos": 7,
-                "quantiles": {
-                    0.1: "2024-01-01T00:00:00",
-                    0.25: "2024-01-03T00:00:00",
-                    0.5: "2024-01-06T00:00:00",
-                    0.75: "2024-01-10T00:00:00",
-                    0.9: "2024-01-14T00:00:00",
-                },
+                "quantiles": {},
                 "std": 0.0,
                 "zeros": 0,
             },
@@ -193,13 +187,7 @@ def test_compute_stats_df():
                 "missing": 0,
                 "name": "j",
                 "pos": 9,
-                "quantiles": {
-                    0.1: "2022-01-01T00:00:00",
-                    0.25: "2022-02-01T00:00:00",
-                    0.5: "2022-03-01T00:00:00",
-                    0.75: "2022-04-01T00:00:00",
-                    0.9: "2022-05-01T00:00:00",
-                },
+                "quantiles": {},
                 "std": 0.0,
                 "zeros": 0,
             },