Skip to content

Question - children_count = -1 #521

@stevieing

Description

@stevieing

Thanks for the gem. We have been using it for a while now successfully.

I am asking this as a question as I am not sure if this is a bug, known issue or application dependent and how to test it.

During the past nine months usage of our application has exploded and recently we have had reports of records with a children_count of -1.

I originally disputed that this was an issue at all but have found a couple today. I have a few strategies for mitigation but was wondering if this was something that people have encountered and if so what they did about it?

The users are visiting a page within our application to remove all of the child records at once and there is a method to do that.

If I do discover it as a bug with the gem I will happily open an issue with tests etc.

Looking through the repo I have noticed a few comments with regard to changes made in Rails 6. Would it be worth upgrading to Rails 6 first (we are running 5.2)?

Thanks in advance.

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