issues Search Results · repo:ClosureTree/closure_tree language:Ruby
Filter by
266 results
(107 ms)266 results
inClosureTree/closure_tree (press backspace or delete to remove)Hi,
Thanks for all the work maintaining this library, your work is very much appreciated.
Is there a way (or plans to add) a way to depth limit the _preordered queries?
mereghost
- Opened on Nov 8, 2024
- #443
Hey! First of all - big apologies if such issue was already created at some point. I m having a hard time trying to even
google for it as i m unsure how to form my search query properly for this one. Anyway, ...
mbajur
- 1
- Opened on Jul 12, 2024
- #438
I have tried with PostgreSQL 11 as well as MariaDB 11, both seem to never pass this test case. Example logs attached.
I have tried to debug it with psql and to me it looks like it s more an issue with ...
jkraemer
- 2
- Opened on Nov 21, 2023
- #427
In rails test, the following test code causes an error: SystemStackError: stack level too deep.
node = nodes(:one)
node.update(parent_id: node.id)
Node (class of the node) has closure tree as ...
wakairo
- 1
- Opened on Sep 28, 2023
- #424
# Gemfile.lock
…
closure_tree (7.4.0)
…
I managed to save the namespace (Admin::) for the parent method with the following code:
# app/models/catalog.rb
class Catalog ApplicationRecord
has_closure_tree ...
Zlatov
- 1
- Opened on Jun 3, 2023
- #422
I wonder why there is no way to include the ancestors in the with_ancestor scope (see code below). It is a really common
use case for my project, so I started to ask myself if I am too stupid and don t ...
beatgutzwiller
- Opened on Apr 17, 2023
- #417
Say I have a model with numeric_order option:
class Category ApplicationRecord
has_closure_tree order: position , numeric_order: true
end
With this setting we lose dirty tracking after setting the ...
ryanb
- 1
- Opened on Jan 23, 2023
- #414
This is a proposal for the hierarchies_table template.
https://github.com/ClosureTree/closure_tree/blob/8550ddab5671a0d3b002e954796de44826585728/lib/generators/closure_tree/templates/create_hierarchies_table.rb.erb ...
fkmy
- 4
- Opened on Dec 29, 2022
- #410
# lib/closure_tree/finders.rb
def with_ancestor(*ancestors)
ancestor_ids = ancestors.map { |ea| ea.is_a?(ActiveRecord::Base) ? ea._ct_id : ea }
scope = ancestor_ids.blank? ? all : joins(:ancestor_hierarchies). ...
ggLee6352
- 2
- Opened on Sep 14, 2022
- #408
- Gem Version: 7.4.0
- Ruby: 2.4.10
- Rails: 5.0.7.2
- Database: ActiveRecord/Postgresql
I am trying to make sure that dependent nodes are destroyed as the files need to be cleared from AWS. My ...
TruRooms
- Opened on Aug 8, 2022
- #405

Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.
Learn how you can use GitHub Issues to plan and track your work.
Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub IssuesProTip!
Restrict your search to the title by using the in:title qualifier.