Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide automated migration scripts for v12 feature flags #15972

Open
5 tasks
Tracked by #15803
tay1orjones opened this issue Mar 14, 2024 · 0 comments
Open
5 tasks
Tracked by #15803

Provide automated migration scripts for v12 feature flags #15972

tay1orjones opened this issue Mar 14, 2024 · 0 comments
Labels
package: upgrade @carbon/upgrade planning: umbrella Umbrella issues, surfaced in Projects views role: dev 🤖 version: 12 Issues pertaining to a future major release of Carbon
Milestone

Comments

@tay1orjones
Copy link
Member

tay1orjones commented Mar 14, 2024

Background

For each enable-v12-* flag, an automated migration script (codemod) needs to be written to accompany the changes. Ideally these should be written and provided at (or shortly after) the time of the flag creation, but we already had some v12 flags in the codebase before that was defined in #15964

Solution

For each flag, the codemod should be written in and provided through the upgrade package/cli. The contents of the codemod should assist consumers in making the necessary changes associated with the flag in their codebase. These aren't for our codebase (though we could technically run them on our codebase for testing)

There are already a few codemods written that can be used as guideposts for this work. One thing we should consider is supporting typescript in addition to javascript and including both .js and .ts test fixtures. In some cases we might just need to opening up the filetypes to include .ts and .tsx. Right now most of them only run on .js and .jsx files:

: await glob(['**/*.js', '**/*.jsx'], {

List of flags that need codemods

Preview Give feedback
  1. component: tile role: dev 🤖
    riddhybansal
  2. component: overflow-menu package: upgrade
    riddhybansal
  3. riddhybansal
  4. 2nikhiltom
  5. riddhybansal
@tay1orjones tay1orjones added role: dev 🤖 package: upgrade @carbon/upgrade version: 12 Issues pertaining to a future major release of Carbon labels Mar 14, 2024
@tay1orjones tay1orjones moved this to ⏱ Backlog in Design System Mar 14, 2024
@github-project-automation github-project-automation bot moved this to Triage in Roadmap Mar 18, 2024
@sstrubberg sstrubberg moved this from Triage to Next in Roadmap Mar 18, 2024
@sstrubberg sstrubberg added this to the 2024 Q2 milestone Mar 18, 2024
@sstrubberg sstrubberg added the planning: umbrella Umbrella issues, surfaced in Projects views label Mar 19, 2024
@sstrubberg sstrubberg modified the milestone: 2024 Q2 Mar 19, 2024
@sstrubberg sstrubberg moved this from ⏱ Backlog to 🪆 Needs Refined in Design System Mar 19, 2024
@tay1orjones tay1orjones moved this from Next to Now in Roadmap May 2, 2024
@tay1orjones tay1orjones moved this from 🪆 Needs Refined to ⏱ Backlog in Design System May 15, 2024
@sstrubberg sstrubberg moved this from ⏱ Backlog to 🪆 Needs Refined in Design System Jun 27, 2024
@sstrubberg sstrubberg modified the milestones: 2024 Q2, 2024 Q3 Jun 28, 2024
@sstrubberg sstrubberg modified the milestones: 2024 Q3, 2024 Q4 Sep 14, 2024
@sstrubberg sstrubberg moved this from Now 💫 to Next ➡ in Roadmap Sep 14, 2024
@tay1orjones tay1orjones modified the milestones: 2024 Q4, 2025 Q1 Jan 2, 2025
@sstrubberg sstrubberg modified the milestones: 2025 Q1, 2025 1H Jan 22, 2025
@sstrubberg sstrubberg moved this from Next ➡ to Now 💫 in Roadmap Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: upgrade @carbon/upgrade planning: umbrella Umbrella issues, surfaced in Projects views role: dev 🤖 version: 12 Issues pertaining to a future major release of Carbon
Projects
Status: 🪆 Needs Refined
Status: Now 💫
Development

No branches or pull requests

2 participants