Skip to content

Conversation

@Rylan12
Copy link
Member

@Rylan12 Rylan12 commented Dec 11, 2025

Follow-up to #21214

This PR modifies FormulaStruct to load deprecate/disable info from the new deprecate_args and disable_args API elements. These elements contain the raw arguments that were passed to deprecate! and disable!, even if they ended up not causing a deprecation/disablement. This ensures that we are syncing the API data with the formula files correctly.

This PR is marked as a draft since it cannot be merged until #21214 is merged and has its changes propagated into the API

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Base automatically changed from include-all-deprecate-disable-args-in-api to main December 11, 2025 15:31
@Rylan12 Rylan12 force-pushed the create-formula-struct-from-deprecate-disable-args branch from 3e9b378 to 42eb599 Compare December 11, 2025 18:08
@Rylan12 Rylan12 marked this pull request as ready for review December 11, 2025 18:40
Copilot AI review requested due to automatic review settings December 11, 2025 18:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the FormulaStruct generation logic to directly use deprecate_args and disable_args from the API instead of reconstructing them from individual fields. The change aligns with the new API format introduced in #21214 that provides the raw arguments originally passed to deprecate! and disable! methods.

Key Changes:

  • Replaced manual hash construction from separate date/reason/replacement fields with direct usage of deprecate_args and disable_args from API data
  • Simplified the code by eliminating field-by-field mapping logic
  • Maintained proper reason formatting by converting string reasons to symbols for predefined reason codes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Rylan12 Rylan12 added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit 4f78576 Dec 11, 2025
43 checks passed
@Rylan12 Rylan12 deleted the create-formula-struct-from-deprecate-disable-args branch December 11, 2025 19:16
@Bo98 Bo98 mentioned this pull request Dec 18, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants