Comments (7)
@palkan I'll take a look :)
from logidze.
Hi, @ribanez7!
Could you explain, please, what do you mean by "it parsed bad the list"?
What options do you pass to generator?
from logidze.
Hi @palkan , sorry for the late response, I passed the following options:
rails generate logidze:model Actiu --backfill --limit=10 --whitelist=d_provincia_id id_rem actiu d_tipo_activo_id d_subtipo_activo_id d_tipo_via_id address street_number nuesac flat puerta d_provincia_id d_municipio_id d_unidad_inferior_municipio_id postal_code d_poblacion_del_registro_id registro_plaza finca idufir_cru folio libro tomo sup_construida sup_util sup_construida_con_rec sup_parcela d_origen_activo_id d_situacion_titulo_id fecha_titulo notario num_protocolo fecha_auto_adjudicacion fecha_firmeza_auto_adjudicacion tipo_juzgado num_autos id_asunto_recovery procurador letrado d_situacion_titulo_id fecha_inscripcion nombre_del_propietario nif_del_propietario propiedad d_grado_propiedad_id fecha_solicitud_ch fecha_emision_ch vpo d_regimen_proteccion_id descalificada fecha_toma_posesion_inicial fecha_recepcion_llaves_por_haya ocupado con_titulo d_tipo_titulo_posesorio_id fecha_titulo_posesorio fecha_vencimiento_titulo_posesorio tapiado puerta_antiocupa fecha_venta precio_venta nombre_propietario_anterior nif_propietario_anterior
And as a result, I got blacklisted on the migration fields that are on this list (as an example, for reference, look at the column named d_subtipo_activo_id:
EXECUTE PROCEDURE logidze_logger(10, 'updated_at', '{id, num_expedient, actiu, tipus_actiu_id, subtipus_actiu_id, terminada, avance_obra, address, street_number, flat, flat_letter, postal_code, ref_catastral, propiedad, regimen_proteccion_id, sup_parcela, sup_construida, sup_util, sup_registral, finca, registro_plaza, cargas, titular, tipus_carga, situacion_cancelacion, fecha_posesion, fecha_lanzamiento, alquilado, moratoria, cee, fecha_solicitud_cee, ch, fecha_solicitud_ch, fecha_cedula, cedula, fecha_vencimiento, diligencia_lanzamiento, observaciones, created_at, updated_at, contactos_gestion, fecha_baja_activo, fecha_pago, tipo_impuesto, periodicidad, deuda_asumida, deuda_retencion, pago_voluntario, pago_otros, contactos_ibis, observaciones_ibis, comunidad_constituida, fecha_ultima_jgo, fecha_documentacion, fecha_primer_pago, cuota, periodicidad_comunidades, fecha_aprobacion_cuota, fecha_inicio_ejercicio, proceso_monitorio, contactos_comunidades, observaciones_comunidades, gestoria_id, estado, estat_formalitzacio, entrega_de_llaves, codtrn, idprov, cocldo, nudcom, nomcoc, nodcco, nodcad, nuccen, nuccof, nuccdi, nuccnt, cogrug, fipago, imcuco, faacta, ptpago, nomprc, nutprc, nomadc, nutadc, impcoo, inicio_periodo_voluntario, fin_periodo_voluntario, organo_recaudador, num_cartas, num_llamadas, num_visitas, burofax, codigos_ibi_id, codigos_comunidad_id, nuesac, nuregp, bilipo, fefoac, coesve, import_status, import_notes, ibis_periodicidad_id, comunidad_periodicidad_id, entitat_id, anejos, biarre, ffpago, coacci_cuotas, coacci_comunidad, expediente_id, fecha_venta, ascensor, dormitorios, banos, tipo_calefaccion, salida_humos, garaje, plazas, m2_terrazas, calidad_global, desc_anexos, particularidades, zonas_comunes, comentarios, coeficiente_participacion, puerta, id_rem, d_gestoria_id, d_tipo_activo_id, d_subtipo_activo_id, d_tipo_via_id, d_provincia_id, d_municipio_id, d_unidad_inferior_municipio_id, d_origen_activo_id, d_situacion_titulo_id, d_grado_propiedad_id, d_regimen_proteccion_id, d_tipo_titulo_posesorio_id, idufir_cru, poblacion_del_registro, folio, libro, tomo, nombre_del_propietario, nif_del_propietario, sup_construida_con_rec, vpo, descalificada, ocupado, con_titulo, tapiado, puerta_antiocupa, fecha_titulo, notario, num_protocolo, fecha_auto_adjudicacion, fecha_firmeza_auto_adjudicacion, tipo_juzgado, num_autos, id_asunto_recovery, procurador, letrado, fecha_inscripcion, fecha_emision_ch, fecha_toma_posesion_inicial, fecha_recepcion_llaves_por_haya, fecha_titulo_posesorio, fecha_vencimiento_titulo_posesorio, precio_venta, d_subtipo_titulo_id, nombre_propietario_anterior, nif_propietario_anterior, d_poblacion_del_registro_id, fecha_carta, fecha_encargo, comentarios_comunidades, fecha_burofax, log_data}');
And the list on the migration should contain, if I'm not wrong, just the columns to blacklist.
Does this help to illustrate the context?
Thanks!
from logidze.
Thanks for the report!
And the list on the migration should contain, if I'm not wrong, just the columns to blacklist.
Yes, you're right.
Could you, please, also provide an SQL dump to generate the table with all columns?
@charlie-wasp Any ideas?
from logidze.
@ribanez7 I am afraid, I can't figure out the problem at the moment. The dump of your table schema would be very helpful. By the way, will the blacklist instead of the whitelist in your case be shorter?
from logidze.
@ribanez7 Hi! Does the problem still exist? And if "yes", could you, please, take a look at the comment above and provide some information?
from logidze.
Closed as stale
from logidze.
Related Issues (20)
- Activerecord table_name_prefix or table_name_suffix are not honored HOT 3
- Tracking changes on JSONB column error
- How to list all versions of a record? HOT 4
- Association versioning with ignore_log_data and at(version: ) doesn't return expected results HOT 5
- Partition-friendly logging (triggers) HOT 3
- JSONB column and switch_to! with append: true HOT 2
- PG::UndefinedFunction: ERROR: function hstore(model_name) does not exist HOT 1
- Meta per request HOT 1
- Logidze.ignore_log_data_by_default causing db:migrate errors HOT 2
- Responsible from different sources HOT 3
- Associations versioning - accessing versions with `at(version: #)` HOT 2
- How to tell logidze about a new column HOT 8
- GlobalID support for metadata
- `responsible_id` is not updated on relation with `touch: true` HOT 6
- reload_log_data doesn't work when used with acts_as_paranoid and deleted records HOT 2
- docs: logdize cannot set session meta data when using a connection pool HOT 1
- How can I get the last 100 versions of a model? regardless of the record HOT 2
- Saving log with only metadata changes HOT 1
- Not possible to use latest logidze and anyway_config with Ruby 3.3.0 HOT 1
- Make Sequel support independent from ActiveRecord and ActiveSupport
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from logidze.