fix: GC endpoint: satellites/{satellite}/images returns 500, resolves #366#367
fix: GC endpoint: satellites/{satellite}/images returns 500, resolves #366#367NucleoFusion wants to merge 1 commit intocontainer-registry:mainfrom
satellites/{satellite}/images returns 500, resolves #366#367Conversation
Signed-off-by: NucleoFusion <lakshit.singh.mail@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR corrects the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
TIP This summary will be updated as you push new changes. Give us feedback
/satellites/{satellite}/imagesreturns 500 #366Description
Changes sql query from:
to
``sql
SELECT a.id, a.reference, a.size_bytes, a.created_at
FROM artifacts a
WHERE a.id IN (
SELECT unnest(artifact_ids) FROM (
SELECT artifact_ids FROM satellite_status
WHERE satellite_id = $1
ORDER BY created_at DESC LIMIT 1
) latest
)
ORDER BY a.reference;