GithubHelp home page GithubHelp logo

Comments (7)

charlie-wasp avatar charlie-wasp commented on July 23, 2024 1

@palkan I'll take a look :)

from logidze.

palkan avatar palkan commented on July 23, 2024

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.

ribanez7 avatar ribanez7 commented on July 23, 2024

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.

palkan avatar palkan commented on July 23, 2024

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.

charlie-wasp avatar charlie-wasp commented on July 23, 2024

@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.

palkan avatar palkan commented on July 23, 2024

@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.

palkan avatar palkan commented on July 23, 2024

Closed as stale

from logidze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.