Config for setting collation for attributes
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
No se nombran archivos ni tests. Empieza rastreando cómo Ash/Ecto genera filtros ILIKE para atributos de PostgreSQL y, después, determina dónde se puede representar una intercalación a nivel de consulta sin cambiar las migraciones. El trabajo estará terminado cuando las consultas puedan aplicar la expresión COLLATE solicitada y funcionar con intercalaciones no deterministas creadas por Django, con cobertura para el caso de filtro que falla.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Elixir
- Estrellas
- 191
- Forks
- 186
- Merge medio
- 16 h 4 min
- PR fusionados (30 d)
- 17
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ash-project/ash_postgres
-
Temporal: an update or destroy as of an instant doesn't carry into later versionsPosiblemente ocupada @hoanle0126 la tomó hace 13 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
ash-project/ash_postgres#915 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
has_create_action?/1 excludes manual creates, making the #49 nullability fix inert on AshEvents resourcesQuizá libre de nuevo @Mckay-Hinds la tomó hace 18 días y no hay ningún pull request abierto. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
ash-project/ash_postgres#851 · 9 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
ash-project/ash_postgres#642 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 40/100
ash-project/ash_postgres#628 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ash-project/ash_postgres#538 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de ash-project/ash_postgres
Issues similares
-
@swmansion/popcorn: published .d.ts files lack extensions on relative imports, breaking moduleResolution node16/nodenextPosiblemente ocupada @Huyvux12 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
software-mansion/popcorn#929 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
ash-project/ash#3127 ·
Los mantenedores suelen responder en 1 día
-
Bug: Table layout and date column are cut off on mobile screens on the Tournaments -> History pageAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
hexlet-codebattle/codebattle#2375 ·
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
wintermeyer/vutuv#2388 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100