when retrieving slices attached to a site, exclude the expired ones
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 24 Apr 2025 12:48:35 +0000 (14:48 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 24 Apr 2025 12:48:35 +0000 (14:48 +0200)
planetlab5.sql

index 5478836..4c20ce8 100644 (file)
@@ -768,7 +768,7 @@ CREATE OR REPLACE VIEW site_slices AS
 SELECT site_id,
 array_accum(slice_id) AS slice_ids
 FROM slices
-WHERE is_deleted is false
+WHERE is_deleted is false and expires > CURRENT_TIMESTAMP
 GROUP BY site_id;
 
 -- Slice membership