CA must reject invalid metadata updates.

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
49/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

Start by tracing Attribute.update_meta and the CA transport metadata update path described in the issue; the payload does not name specific files or tests. Check how invalid metadata currently fails and how the attribute and records metadata are updated. Done means a rejected update leaves both metadata values in sync.

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

説明

Following #440, which introduces thorough metadata handling, an update to an attributes metadata will be reflected with an update to the CA records metadata. However, if this update is not valid (such as the shape of an array), this is still attempted and will fail.

After this failure, the attribute is left with new metadata that does not reflect the actual records metadata.

A possible solution for this would be to create a validator function on the CA transport and add a _update_meta_validators list to Attribute. Transports can then register their function to this list via an add_update_meta_validator method, which allows Attribute.update_meta to reject updates before they go through.

Acceptance Criteria

  • Attributes and records metadata do not go out of sync when a failed metadata update occurs
主要言語
Python
スター
6
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

DiamondLightSource/fastcs のほかの issue

DiamondLightSource/fastcs の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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