Drop drivine_contains at the spec bump that refuses parameter maps in matched patterns

オープン 初心者向け
#504 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

drivine/backend/sqlite/sqlite_graph.py、sqlite_cypher_functions.py、sqlite_cypher_values.py にある一覧の定義を読み、次に drivine_contains または contains を呼び出すテストを探します。定数、登録、関数、ドキュメントの行、および使用されなくなった値ヘルパーやテストを削除します。参照が残っておらず、共有仕様の同期で一致したパターンの拒否が処理されれば完了です。

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

説明

Follows liberation-data/drivine-cypher-spec#194, which makes the compiler refuse a parameter's map as a matched pattern's properties (MATCH (n $props)), as Neo4j does. That was the only Cypher that compiled to drivine_contains, so once this library takes the spec release with #194, nothing calls the function.

What to drop at that bump:

  • CONTAINS = "drivine_contains" in drivine/backend/sqlite/sqlite_graph.py:36
  • add(g.CONTAINS, 2, contains) and def contains in drivine/backend/sqlite/sqlite_cypher_functions.py:64 and :103, and the doc line at :8
  • contains in drivine/backend/sqlite/sqlite_cypher_values.py:214, if nothing else calls it
  • any test that calls them

Nothing to port: the refusal is the shared compiler's, and its refusals.yaml case "Parameter map in a matched pattern" comes with the spec sync.

主要言語
Python
スター
2
フォーク
0
平均マージ
3時間 40分
マージ済み PR(30日)
219

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

liberation-data/drivine-python のほかの issue

liberation-data/drivine-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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