Skip to content

Update dependency ancestry to v5 - #23769

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

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

Conversation

@renovate

@renovate renovate Bot commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

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: (UTC)

  • 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
@kbrock

kbrock commented Mar 20, 2026

Copy link
Copy Markdown
Member

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.

@renovate
renovate Bot force-pushed the renovate/ancestry-5.x branch from b4eda2b to 93d9395 Compare May 18, 2026 13:50
@renovate
renovate Bot force-pushed the renovate/ancestry-5.x branch 2 times, most recently from 00f7061 to d0b8dc3 Compare July 20, 2026 20:28
@renovate
renovate Bot force-pushed the renovate/ancestry-5.x branch from d0b8dc3 to e87de74 Compare August 12, 2026 02:42
@renovate
renovate Bot force-pushed the renovate/ancestry-5.x branch 2 times, most recently from c68243f to 00d6846 Compare September 2, 2026 18:37
@renovate
renovate Bot force-pushed the renovate/ancestry-5.x branch from 00d6846 to 2e6bf2f Compare September 3, 2026 17:59
@miq-bot

miq-bot commented Sep 3, 2026

Copy link
Copy Markdown
Member

Checked commit 2e6bf2f with ruby 3.3.12, rubocop 1.89.0, haml-lint 0.78.0, and yamllint 1.37.1
1 file checked, 0 offenses detected
Everything looks fine. 🍪

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants