Delete collection

Aperta
#45 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, search
Ambito
api

Direzione di ricerca

The reproduction calls collections(name).delete() and then collections("service").retrieve(), so start by checking whether collections(name) makes a request or only builds a handle, since the report expects null for a deleted collection. Run the snippet against a local Typesense server to see which call throws and what status comes back. Done means either a clear explanation of the expected post-delete behaviour or a documented change, and the maintainers need to agree on that first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

Drop collection does not seem to completely remove the collection.

Steps to reproduce

   CollectionResponse[] collectionResponses = client.getTypesenseClient().collections().retrieve();
for (CollectionResponse c : collectionResponses) {
	client.getTypesenseClient().collections(c.getName()).delete();
}
Collection collection = client.getTypesenseClient().collections("service");
		
if ( collection == null){
	// create the schema
}
else {
	CollectionResponse retrieve = collection.retrieve();
      // throws exception
}

Expected Behavior

Deleting an collection should drop the collection

Actual Behavior

After deleting a collection, the collection is not null, but when accessing it an exception is thrown

Metadata

Typesense Version: 0.24.1

OS:MacOs

Lingua principale
Java
Stelle
90
Fork
39
Merge medio
22h 26m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di typesense/typesense-java

Tutte le issue di typesense/typesense-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.