Expired listing versions can no longer be fetched by explicit version

Abierto
#153 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
api, backend

Línea de trabajo

The 404 comes from the lookup in reference-implementations/dacs-directory/src/catalog/indexer.ts near line 232, which searches only current listings, so start by reading how that search and expiry interact. Confirm the bug first by requesting an expired version through GET /api/dacs/listings/{id}/{version}. Done means that version is retrievable before and after expiry while staying out of new offers, and the change goes to the phase0-completion branch.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

contributors-section

This repo holds community tools for DACS, an open standard for agent commerce, including the reference Directory.

Where: reference-implementations/dacs-directory/src/catalog/indexer.ts:232 (on main at the linked commit)

What remains to fix: GET /api/dacs/listings/{id}/{version} returns 404 for an expired version because it searches only current listings. Keep a verified version archive that is independent of discovery and test retrieval before and after expiry, while excluding expired versions from new offers.

Suggested fix: Keep a verified version archive that is independent of discovery. Test retrieval before and after expiry, and keep expired versions out of new offers.

Size: Medium

Unless it says otherwise above, this comes from reading the code, not from a failing run, so please confirm it before starting. Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
3
Merge medio
20 h 26 min
PR fusionados (30 d)
119

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DACS-Agent-commerce/Community

Todos los issues de DACS-Agent-commerce/Community

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.