Skip to content

Queries with "binds" cause NoMethodError #17

@charlesobrien

Description

@charlesobrien

I was playing around with Signalman -- specifically to log and visualize queries in development. Unfortunately, noticed that some queries weren't being logged; in my particular case, I first noticed it with UPDATES.

After some fiddling, it appears that "binds" are not being serialized to JSON when the event is being created.

My interim solution was to update the process method in QueryHandler to:

def process
    create_event event.payload.except(:binds, :connection)
end

Happy to submit a pull request to make this change (and remove binds from the UI) -- but I honestly wasn't sure if this was just the brute force solution to the problem (rather than the right solution).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions