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

[Experiment] Testing codemod behavior #7728

Closed
wants to merge 1 commit into from

Conversation

alexfauquette
Copy link
Member

@alexfauquette alexfauquette commented Jan 27, 2023

Experience made to discuss in hypermod-io/hypermod-community#141

@mui-bot
Copy link

mui-bot commented Jan 27, 2023

Messages
📖 Netlify deploy preview: https://deploy-preview-7728--material-ui-x.netlify.app/

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 654.8 1,253.1 654.8 922.52 226.879
Sort 100k rows ms 670.5 1,273.5 670.5 976.92 205.711
Select 100k rows ms 214.1 314 287.5 280.2 34.911
Deselect 100k rows ms 145.7 308.5 205.6 225.8 58.451

Generated by 🚫 dangerJS against eaf33ae

@@ -0,0 +1,9 @@
import React from 'react';

Choose a reason for hiding this comment

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

Hey @alexfauquette, do you have any examples of how your pickers change between versions? Maybe a diff? I can see if I can quickly mock something up for you 😊

Copy link
Member Author

Choose a reason for hiding this comment

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

Most of the modifications have already been done:

The modification I proposed in codeshift comunity comes from migrate-to-components-componentsProps
which work well with self-closing elements

But I realized it was a problem when adding the transformation to our preset-safe

That's why I'm proposing to add a filtering condition on the parent

componentNames.includes(attributeParent.value.name.name)

@oliviertassinari oliviertassinari added the package: codemod Specific to @mui/codemod label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: codemod Specific to @mui/codemod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants