Skip to content

Refactor repeated object property access to destructuring across repo - #5747

Merged
Ian Clanton-Thuon (iclanton) merged 8 commits into
mainfrom
copilot/refactor-repeated-property-references
Apr 6, 2026
Merged

Refactor repeated object property access to destructuring across repo#5747
Ian Clanton-Thuon (iclanton) merged 8 commits into
mainfrom
copilot/refactor-repeated-property-references

Conversation

Copilot AI commented Apr 5, 2026

Copy link
Copy Markdown
Contributor
  • Refactor constructors to use destructuring across repo
  • Add rush change files (bump-type none)
  • Move default values into destructuring (PhaseAction.ts - watch, phase.phaseName)
  • Move default values into destructuring (Operation.ts - weight, metadata)
  • Move default values into destructuring (PhasedScriptAction.ts - watchDebounceMs)
  • Move default values into destructuring (RushAlerts.ts - rushAlertsState)
  • Move default values into destructuring (TextRewriterTransform.ts - textRewriters)
  • Move default values into destructuring (AliasCommandLineAction.ts - defaultParameters)
  • Move default values into destructuring (TypingsGenerator.ts - readFile, globsToIgnore, terminal)
  • Move default values into destructuring (AzureAuthenticationBase.ts - loginFlowFailover)
  • Move default values into destructuring (HttpBuildCacheProvider.ts - uploadMethod, headers, cacheKeyPrefix, minHttpRetryDelayMs)
  • Move default values into destructuring (RushServePlugin.ts - globalRouting)
  • Build all changed projects ✅
  • Code review + CodeQL ✅

@iclanton

Copy link
Copy Markdown
Member

Copilot - this change needs changefiles. Run rush change --bulk --bump-type none and commit and push the created files.

None of this should affect package consumers, right?

Copilot AI commented Apr 5, 2026

Copy link
Copy Markdown
Contributor Author

Copilot - this change needs changefiles. Run rush change --bulk --bump-type none and commit and push the created files.

None of this should affect package consumers, right?

Correct, none of this affects package consumers — purely mechanical destructuring with no behavioral changes. Added change files with rush change --bulk --bump-type none in e1a7891.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot These changes are incomplete. Defaulting should also be handles as part of migrating to destructuring.

Comment thread apps/heft/src/cli/actions/PhaseAction.ts Outdated
Comment thread libraries/operation-graph/src/Operation.ts Outdated
Comment thread libraries/operation-graph/src/Operation.ts Outdated
Comment thread libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts Outdated
Comment thread libraries/rush-lib/src/utilities/RushAlerts.ts Outdated
Comment thread libraries/typings-generator/src/TypingsGenerator.ts Outdated
Comment thread libraries/typings-generator/src/TypingsGenerator.ts Outdated
Comment thread rush-plugins/rush-azure-storage-build-cache-plugin/src/AzureAuthenticationBase.ts Outdated
Comment thread rush-plugins/rush-http-build-cache-plugin/src/HttpBuildCacheProvider.ts Outdated
Comment thread rush-plugins/rush-serve-plugin/src/RushServePlugin.ts Outdated

Copilot AI commented Apr 5, 2026

Copy link
Copy Markdown
Contributor Author

Copilot These changes are incomplete. Defaulting should also be handles as part of migrating to destructuring.

All defaulting has been moved into the destructuring assignments across all affected files in 08f561f.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just one minor adjustment left, otherwise looks good

Comment thread libraries/terminal/src/ProblemCollector.ts Outdated
@iclanton
Ian Clanton-Thuon (iclanton) merged commit f7eebd6 into main Apr 6, 2026
9 checks passed
@iclanton
Ian Clanton-Thuon (iclanton) deleted the copilot/refactor-repeated-property-references branch April 6, 2026 22:09
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants