Config for setting collation for attributes
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
ファイルやテストは指定されていません。まず、Ash/Ecto が PostgreSQL 属性に対する ILIKE フィルターをどのように生成するかを追跡し、次に、マイグレーションを変更せずにクエリレベルの照合順序をどこに表現できるかを判断してください。クエリで要求された COLLATE 式を適用でき、Django によって作成された非決定的な照合順序で動作し、失敗するフィルターケースをカバーできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Code of Conduct
- I agree to follow this project's Code of Conduct
AI Policy
- I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.
Is your feature request related to a problem? Please describe.
When working with a shared PostgreSQL database that's also used by Django (since Django 4.2's deprecation of CITextField), you can't use ilike filters anymore on columns that Django has set up with nondeterministic collations.
Django deprecated CITextField and now prefers setting db_collation on regular text fields to handle case-insensitive comparisons. The problem is that when Django creates a column with one of these nondeterministic collations, PostgreSQL throws errors if you try to use LIKE or ILIKE operators on those columns.
To Reproduce
Have a Django app that creates a table with a text field using db_collation for case-insensitive matching
Try to query that table from Ash/Ecto using an ILIKE filter
PostgreSQL will error because ILIKE doesn't work with nondeterministic collations
Describe the solution you'd like
It would be nice to have a way to specify a collation on an Ash attribute that gets applied at the query level (not in migrations - we can't change the column definition since that would break Django). Something that would generate SQL like:
WHERE column_name COLLATE "default" ILIKE '%search%'
This way Ash could work with Django's collation setup without modifying the actual column definitions.
Describe alternatives you've considered
No response
Additional context
No response
- 主要言語
- Elixir
- スター
- 191
- フォーク
- 186
- 平均マージ
- 16時間 4分
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ash-project/ash_postgres のほかの issue
-
Temporal: an update or destroy as of an instant doesn't carry into later versions対応中かも @hoanle0126 が 13 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
ash-project/ash_postgres#915 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
has_create_action?/1 excludes manual creates, making the #49 nullability fix inert on AshEvents resources再び着手できるかも @Mckay-Hinds が 18 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
ash-project/ash_postgres#851 · コメント 9 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ash-project/ash_postgres#642 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 40/100
ash-project/ash_postgres#628 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ash-project/ash_postgres#538 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ash-project/ash_postgres の issue をすべて見る
似ている issue
-
@swmansion/popcorn: published .d.ts files lack extensions on relative imports, breaking moduleResolution node16/nodenext対応中かも @Huyvux12 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
software-mansion/popcorn#929 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
ash-project/ash#3127 ·
メンテナーはふだん 1 日以内に返信
-
Bug: Table layout and date column are cut off on mobile screens on the Tournaments -> History pageオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
hexlet-codebattle/codebattle#2375 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
wintermeyer/vutuv#2388 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100