Giter Club home page Giter Club logo

compliance's Introduction

README

Install pre-requisites

  • Install RVM or rbenv
  • Setup a local mySQL server
  • Setup a local Redis
  • Install dependencies and setup development tools
      bundle install
    

Environment variables

  • Rename config/settings.example.yml file to config/settings.yml and set the following variables:

    • For Mysql

      • mysql.username: username of MySQL user
      • mysql.password: password of the MySQL password
      • mysql.host: your MySQL host
      • mysql.port: yout MySQL port or
      • mysql.socket: your MySQL unix socket
    • For Redis

      • redis.cache_url: redis url
      • redis.pool_size: connection pool size

Setup database

  • rails db:setup

Start the application

bundle exec rails -s

Testing

Running all the tests

rspec

In order to run the feature specs, the suite relies on geckodriver. You can run the following command to install it for the project:

RAILS_ENV=test rails webdrivers:geckodriver:update

Using Docker for Development

The docker-compose.yml contains the required configuration to launch both the Redis and MySQL instance.

Run:

docker-compose -f ./docker/docker-compose.yml -p compliance up -d

compliance's People

Contributors

dependabot[bot] avatar dev-yohan avatar fbravo-bitex avatar fpelliccioni avatar gallottohugo avatar matiasgarcia avatar mdallago avatar mkluck1 avatar nubis avatar smtx avatar tmsrjs avatar werner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

compliance's Issues

Handle Paperclip::AdapterRegistry::NoHandlerErrorOccured

Paperclip::AdapterRegistry::NoHandlerErrorOccured in Api::AttachmentsController#create on Compliance Bitex prod (production)

MESSAGENo handler found for "data:"
PATH/api/people/245863/issues/18581/identification_seeds/12086/attachments
IN FILEapp/controllers/api/issue_json_api_sync_controller.rb:57:in `get_mapper'
ON HOSTip-172-30-1-33

Download report - People solapa Pending

Como comentado en el issue #346 y una vez resuelto éste, se requiere a través del presente issue poder obtener un reporte desde la solapa de Pending en People para compartir con Comercial y que sirva para notificar masivaente a través de un mailing a los clientes cuyo análisis aún está pendiente acerca de esta situación.

La estructura del reporte (CSV) que se genera actualmente estaría bien, ya que cuenta con los campos necesarios, pero los trae vacíos, dado que justamente se trata de clientes que aún no fueron analizados y por eso no tienen info (frutos) en su legajo. Por este motivo es que el reporte debería traer la información de las issues pendientes de análisis (seeds) y en caso de que haya mas de un valor para un mismo dato, por ejemplo mas de un mail, debería mostrar todos los mails que se hubieran ingresado en diferentes seeds para una misma persona (puede ser en el mismo campo separados por punto y coma o generando tantas líneas como mails haya).

Cualquier duda, me avisan.

Gracias.

Calculate the inverse of the relationship

We want to know/display the inverse of a relationship between persons, for instance if I create a legal entity as payer of a natural person, we want to know easily that the natural person is payee of the company

Remove factory bot warnings in specs

Fix this warnings

DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic
attributes instead by wrapping the attribute value in a block:

add_all_attachments { true }

To automatically update from static attributes to dynamic ones,
install rubocop-rspec and run:

rubocop
--require rubocop-rspec
--only FactoryBot/AttributeDefinedStatically
--auto-correct

Add Issue and Seed events and event handlers.

Make it possible to configure 'handlers' for EventLog events.
The basic handler action would be to create a new issue for the person with one observation of a preconfigured type.
Then we can specify which class or specific instance to handle.

"Add a worldcheck observation when the docket changes"
"Add a 'risk review' observation when a new allowance is created"

Create table indexes for frequently used fields on seeds/fruits

Issues

  • aasm_state

Event Logs

  • entity_id / entity_type
  • verb_id

Natural Docket (including seeds)

  • first_name
  • last_name
  • nationality
  • gender_id
  • marital_status_id
  • politically_exposed

Legal Entity Docket

  • country
  • commercial_name
  • legal_name

Identifications

  • identification_kind_id
  • number
  • issuer

Argentina Invoicing details

  • vat_status_id
  • tax_id
  • replaces_id
  • tax_id_kind_id
  • receipt_kind_id
  • full_name
  • address
  • country

Chile Invoicing details

  • tax_id
  • giro
  • ciudad
  • comuna
  • replaces_id
  • vat_status_id

Domicile

  • country
  • state
  • city
  • street_address
  • street_number
  • street_address / street_number
  • postal_code

Email

  • address
  • email_kind_id

Phone

  • number
  • phone_kind_id
  • country

Note

  • title
  • body

Observation Reason

  • subject_en
  • scope
  • subject_es
    -subject_pt

Observation

  • scope
  • aasm_state
  • note
  • body

State machine for people

We need to express this states of a person in a generic way using AASM:

new_customer: Initial state
must_reply: is not enable and has open client client observations
must_wait: is not enabled and zero open client scope observations
can_reply: is enabled and has open client scope observations
all_clear: is enabled and does not have open issues

Validate that affinities cannot be repeated

Add a model validation to ensure that I can create a duplicate affinity (considered as two people related with same kind), this validation error must be forwardable as a JSON API error

Update mySQL column types for job_description and other text columns

Add a rails migration to avoid this kind of errors

Mysql2::Error: Data too long for column 'job_description' at row 1: UPDATE natural_docket_seeds SET job_title = 'Ingeniero de Sistemas', job_description = 'Diseñador Web y Desarrollador Web. Freelancer y actualmente laborando en una empresa de estacionamientos inteligentes, pero aun esperando estar en blanco, pero con ansias de tener estabilidad para crear mi propia empresa y fuente de desarrollo para otras personas.', updated_at = '2018-09-18 19:44:41' WHERE natural_docket_seeds.id = 17436

Ajustes solapa Pending (People)

Según me transmite el equipo de Compliance, la solapa Pending debería ser de utilidad para poder identificar claramente las personas que están en condiciones de ser analizadas para su posterior aprobación, rechazo o deshabilitación; así como para poder obtener un reporte que puedan compartir con Comercial y que sirva para notificar vía mailing a los clientes cuyo análisis aún está pendiente.

El primer punto mencionado es el que se abordará en este issue. La segunda cuestión, será tratada en un issue separado.

A continuación las condiciones que deben cumplirse para que una Persona aparezca en la solapa Pending:

Personas cuyo State sea new Y que por lo menos tengan un issue en alguno de los siguientes States: new, answered u observed

Quedo atento ante cualquier duda.

How do i change language?

Hello I am trying to create a version of the program in Spanish I have managed to translate some words but some others I have not yet succeeded as for example: Draft Fruits Person among several others since I have not managed to find the necessary code to change it I would like to know where is the majority of these words or if they are hidden or if it connects with external api to be able to create the version in Spanish.

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.