Giter Club home page Giter Club logo

Comments (6)

fatkodima avatar fatkodima commented on July 22, 2024 1

Ok, I will look then into it. If you would like to work on a PR by yourself, please let me know.

from columns_trace.

fatkodima avatar fatkodima commented on July 22, 2024

Hi, I'm happy you find it useful!

I wanted to improve the management of reported issues (like resolving, skipping, UI)

Can you give more details about your use case?

from columns_trace.

andriy-baran avatar andriy-baran commented on July 22, 2024

In development mode I want to build an UI with following features

  • ability to list distinct issues
  • ability to sort / filter issues
  • mark issue as resolved or ignored

Based on your work I created the following model

  create_table :column_trace_records do |t|
      t.string :action
      t.integer :count
      t.string :model
      t.text :used
      t.text :unused
      t.text :backtrace
      t.boolean :resolved
      t.index [:model, :used, :backtrace], name: 'issue_idx', unique: true
    end

And ability to subscribe to events stream and create / update these records would simplify my implementation

from columns_trace.

fatkodima avatar fatkodima commented on July 22, 2024

I think, ActiveSupport::Notifications is not necessarily needed in this case. I can create something like "reporters", where you can specify your custom reporter. It will be passed all the details like backtrace, used/unused columns etc. With the logger reporter as a default one, to mimic the current behaviour.

I did something similar in my other gem - https://github.com/fatkodima/data_checks/tree/master/lib/data_checks/notifiers. In that case it is named "notifiers", but the concept is the same.

Wdyt?

from columns_trace.

andriy-baran avatar andriy-baran commented on July 22, 2024

I like this concept.

from columns_trace.

fatkodima avatar fatkodima commented on July 22, 2024

Released a new version with this change.

from columns_trace.

Related Issues (1)

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.