Skip to content

feat(crossmatch): integrate XWave cone search service#418

Open
dirodriguezm wants to merge 1 commit intomainfrom
feat/xwave
Open

feat(crossmatch): integrate XWave cone search service#418
dirodriguezm wants to merge 1 commit intomainfrom
feat/xwave

Conversation

@dirodriguezm
Copy link
Contributor

  • Add XWave client with cone search functionality
  • Create service layer for XWave integration
  • Update crossmatch route to use XWave cone search
  • Add XWave URL configuration support
  • Implement dependency injection for cone search queries
  • Update templates to display XWave-powered results with attribution
  • Remove global USE_ABSOLUTE environment variable in favor of service-specific config

from db_plugins.db.sql._connection import PsqlDatabase
from fastapi import Depends

from crossmatch_api.services.xwave_client import client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solo se usa consearch de este archivo, por que no importarlo directo y usarlo directo.

En lugar de
from crossmatch_api.services.xwave_client import client

from crossmatch_api.services.xwave_client.client import consearch
(o importar consearch en init y se puede importar mas directo, hay formas)

from .connection import ApiDatabase

db_dependency = Annotated[PsqlDatabase, Depends(ApiDatabase)]
xwave_conesearch_dependency = Annotated[ConesearchQuery, Depends(lambda: client.conesearch)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

porque esa depended necesita una funcion que retorna una funcion?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No me funcionó usando directamente la función. Pero si lo meto como lambda funciona

Copy link
Contributor

@AlxEnashi AlxEnashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salvo ese detalle del dependencies me parece todo bien.

Sorry la demora

- Add XWave client with cone search functionality
- Create service layer for XWave integration
- Update crossmatch route to use XWave cone search
- Add XWave URL configuration support
- Implement dependency injection for cone search queries
- Update templates to display XWave-powered results with attribution
- Remove global USE_ABSOLUTE environment variable in favor of
service-specific config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants