git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83f680d
)
when retrieving slices attached to a site, exclude the expired ones
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 24 Apr 2025 12:48:35 +0000
(14:48 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 24 Apr 2025 12:48:35 +0000
(14:48 +0200)
planetlab5.sql
patch
|
blob
|
history
diff --git
a/planetlab5.sql
b/planetlab5.sql
index
5478836
..
4c20ce8
100644
(file)
--- a/
planetlab5.sql
+++ b/
planetlab5.sql
@@
-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