Delete collection

オープン
#45 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java, search
領域
api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Java
スター
90
フォーク
39
平均マージ
22時間 26分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

typesense/typesense-java のほかの issue

typesense/typesense-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。