Giter Site home page Giter Site logo

Comments (4)

djezzzl avatar djezzzl commented on May 20, 2024

Hi @mockdeep, thank you for using the gem!

Could you please show by examples what do you mean as I'm not sure I understood the issue?

from database_consistency.

mockdeep avatar mockdeep commented on May 20, 2024

@djezzzl I'm hoping to set up database_consistency to run on CI, but there are almost 100 violations currently. I would like to disable the checks that are failing for now and then we can gradually re-enable them. For example, here's a handful of messages:

fail Organization slugs associated model should have proper index in the database
fail Organization approver_lists associated model key (organization_id) with type (bigint) mismatches key (id) with type (integer)
fail Campaign user_id column should be required in the database
fail Group name column should be required in the database
fail User email column is required but there is possible null value insert
fail Doc fields_version column should be required in the database
fail Form user_id column should be required in the database
fail Form subject_id column should be required in the database

I would like to disable the checks associated with these failures, but I don't know the names. It would be nice if the output instead looked something like:

fail Organization slugs associated model should have proper index in the database (checker: MissingIndexChecker)
fail Organization approver_lists associated model key (organization_id) with type (bigint) mismatches key (id) with type (integer) (checker: ForeignKeyTypeChecker)
fail Campaign user_id column should be required in the database (checker: ColumnPresenceChecker)
fail Group name column should be required in the database (checker: ColumnPresenceChecker)
fail User email column is required but there is possible null value insert (checker: ColumnPresenceChecker)
fail Doc fields_version column should be required in the database (checker: ColumnPresenceChecker)
fail Form user_id column should be required in the database (checker: ColumnPresenceChecker)
fail Form subject_id column should be required in the database (checker: ColumnPresenceChecker)

That way I know which checker to disable. I know DEBUG provides this, but it also adds a lot more output that makes it hard to find on a larger schema.

from database_consistency.

djezzzl avatar djezzzl commented on May 20, 2024

I see. I think we can change that πŸ‘

from database_consistency.

djezzzl avatar djezzzl commented on May 20, 2024

Hey πŸ‘‹ ,

I've just released 1.1.2. Could you please try it out and say if that helps you? Feel free to reopen the issue if necessary.

from database_consistency.

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.