Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typesense] some relation targets point to non-existent entities #149

Open
stefanprobst opened this issue Jan 31, 2025 · 0 comments
Open
Assignees

Comments

@stefanprobst
Copy link

stefanprobst commented Jan 31, 2025

example:

retrieve the "Musterfrau" person details, and check the courtFunctions field:

curl "https://typesense.acdh-dev.oeaw.ac.at/collections/viecpro_v3_person_detail/documents/345676" -H "X-TYPESENSE-API-KEY: catYoetXCv1rTfAp5LzcQ6TKI48gkB13" | jq ".courtFunctions"

this returns:

[
  {
    "endDate": -5349110400,
    "endDateWritten": "1800",
    "relationType": "Schauspielerin",
    "startDate": -5569948800,
    "startDateWritten": "1793",
    "target": {
      "id": 229378,
      "kind": "court",
      "name": "Schauspielgesellschaft (Fr2 (Ks.))"
    }
  }
]

however, an entity with id: 229378 does not exist in the "court_detail" collection:

curl "https://typesense.acdh-dev.oeaw.ac.at/collections/viecpro_v3_court_detail/documents/229378" -H "X-TYPESENSE-API-KEY: catYoetXCv1rTfAp5LzcQ6TKI48gkB13"

you can also check in the frontend: https://viecpro-frontend.acdh-ch-dev.oeaw.ac.at/persons/345676

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

No branches or pull requests

2 participants