Support SELECT ALL semantics for selectors

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
領域
api

調査の方向性

まず neofs-api のセレクターのセマンティクスと、参照されている neofs-sdk-go の SELECT 0 の処理を確認します。提案されている SELECT 0 の動作を、望ましい SELECT ALL のセマンティクスと比較し、どの API または SDK の定義について合意が必要かを判断します。表現と互換性の動作が明確に仕様化されていれば完了です。

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

説明

enhancement I2 S2 U3

Is your feature request related to a problem? Please describe.

I'd like to filter out all nodes with some filter and then use all of them in a selector. Looks like there is no way to do that now, I have to specify some count.

This is especially annoying in cases like some on-prem/cloud policy where I'd like to store a copy locally and a copy in a more cloudy environment. I may have a storage node locally, so I'd create a container with SELECT 1 and REP 1. Then I will add a machine to my local environment, but it won't be used for this container.

Describe the solution you'd like

It seems like this behavior could be achieved without neofs-api changes, just by some special treatment of SELECT 0 (which doesn't make sense otherwise anyway).

Maybe there are other options, let's talk about them here, if SELECT 0 is OK then I'll create an issue in neofs-sdk-go to have SELECT ALL as another way of writing SELECT 0.

主要言語
Makefile
スター
12
フォーク
15
平均マージ
1日 19時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

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

nspcc-dev/neofs-api のほかの issue

nspcc-dev/neofs-api の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

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

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