Skip to content

Update dependency ancestry to v5#23769

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/ancestry-5.x
Open

Update dependency ancestry to v5#23769
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/ancestry-5.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 19, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ancestry (changelog) "~>4.1.0""~>5.1.0" age adoption passing confidence

Release Notes

stefankroes/ancestry (ancestry)

v5.1.0

Compare Source

Deprecations

These class-level accessors still work but are being phased out.
We are moving configuration into baked method bodies and away from class variables.
If you depend on reading these at runtime, now is a good time to find alternatives:

  • ancestry_column, ancestry_delimiter, depth_cache_column, counter_cache_column, touch_ancestors
Breaking Changes
  • sort_by_ancestry and check_ancestry_integrity! now delegate to _sort_by_ancestry and
    _check_ancestry_integrity! with an explicit column parameter. The public API is unchanged.

v5.0.0

Compare Source

Notable features

Depth scopes now work without cache_depth. But please only use this in background
jobs. If you need to do this in the ui, please use cache_depth.

build_cache_depth_sql! is quicker than build_cache_depth! (1 query instead of N+1 queries).

Deprecations
  • Option :depth_cache_column is going away.
    Please use a single key instead: cache_depth: :depth_cach_column_name.
    cache_depth: true still defaults to ancestry_depth.
Breaking Changes
  • siblings no longer returns self. This is a bug fix, but does change behavior.
  • Dropped support for Rails < 6.1
  • Renamed internal methods to follow Rails conventions: *_before_save methods renamed to *_before_last_save
    (e.g., child_ancestry_before_save => child_ancestry_before_last_save)
  • Options are no longer set via class methods. Using has_ancestry is now the only way to enable these features.
    These are all not part of the public API.
    • These are now class level read only accessors
      • ancestry_base_class (introduced 1.1, removed by #​633)
      • ancestry_column (introduced 1.2, removed by #​633)
      • ancestry_delimiter (introduced 4.3.0, removed by #​633)
      • depth_cache_column (introduced 4.3.0, removed by #​654)
    • These no longer have any accessors
      • ancestry_format (introduced 4.3.0, removed by #​654)
      • orphan_strategy (introduced 1.1, removed by #​617)
      • ancestry_primary_key_format (introduced 4.3.0, removed by #​649)
      • touch_ancestors (introduced 2.1, removed by TODO)
  • These are seen as internal and may go away:
    • apply_orphan_strategy Please use orphan_strategy: :none and a custom before_destory instead.

v4.3.3

Compare Source

v4.3.2

Compare Source

v4.3.1

Compare Source

  • Fix: added back fields that were removed in #​589 #​637 (thx @​znz)
    • ancestor_ids_in_database
    • parent_id_in_database

v4.3.0

Compare Source

Notable features

Depth scopes now work without cache_depth. But please only use this in background
jobs. If you need to do this in the ui, please use cache_depth.

build_cache_depth_sql! is quicker than build_cache_depth! (1 query instead of N+1 queries).

Deprecations
  • Option :depth_cache_column is going away.
    Please use a single key instead: cache_depth: :depth_cach_column_name.
    cache_depth: true still defaults to ancestry_depth.
Breaking Changes
  • siblings no longer returns self. This is a bug fix, but does change behavior.
  • Dropped support for Rails < 6.1
  • Renamed internal methods to follow Rails conventions: *_before_save methods renamed to *_before_last_save
    (e.g., child_ancestry_before_save => child_ancestry_before_last_save)
  • Options are no longer set via class methods. Using has_ancestry is now the only way to enable these features.
    These are all not part of the public API.
    • These are now class level read only accessors
      • ancestry_base_class (introduced 1.1, removed by #​633)
      • ancestry_column (introduced 1.2, removed by #​633)
      • ancestry_delimiter (introduced 4.3.0, removed by #​633)
      • depth_cache_column (introduced 4.3.0, removed by #​654)
    • These no longer have any accessors
      • ancestry_format (introduced 4.3.0, removed by #​654)
      • orphan_strategy (introduced 1.1, removed by #​617)
      • ancestry_primary_key_format (introduced 4.3.0, removed by #​649)
      • touch_ancestors (introduced 2.1, removed by TODO)
  • These are seen as internal and may go away:
    • apply_orphan_strategy Please use orphan_strategy: :none and a custom before_destory instead.

v4.2.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from Fryguy as a code owner March 19, 2026 15:27
@miq-bot
Copy link
Member

miq-bot commented Mar 19, 2026

Checked commit b4eda2b with ruby 3.3.10, rubocop 1.56.3, haml-lint 0.72.0, and yamllint 1.37.1
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@kbrock
Copy link
Member

kbrock commented Mar 20, 2026

Curious why it tried to searialize a UserProvidedDefault (standard active record/active model value) to the database.

Sounds like the yaml serialization has a potential bug in here.
This happend for a while with automate request serialization and the queue. was a big mess trying to fix... so may want to take a peek here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants