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

[FX-4737] Do not pass enableResetSearch property #4089

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

sashuk
Copy link
Contributor

@sashuk sashuk commented Jan 11, 2024

FX-4737

Description

This pull request fixes the bug with passed enableResetSearch prop, introduced in #4075.

Reason – spread operator is not type safe in this case (packages/picasso/src/NativeSelect/NativeSelect.tsx)

No type check using spread operator (no error detected)

Screenshot 2024-01-11 at 17 58 33

Normal typescheck when passing prop directly (error is detected)

Screenshot 2024-01-11 at 17 58 59

How to test

Development checks

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

  • @toptal-bot run package:alpha-release - Release alpha version
  • @toptal-anvil ping reviewers - Ping FX team for review
PR Review Guidelines

When to approve? ✅

You are OK with merging this PR and

  1. You have no extra requests.
  2. You have optional requests.
    1. Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌

You are not OK with merging this PR because

  1. Something is broken after the changes.
  2. Acceptance criteria is not reached.
  3. Code is dirty.

When to comment (neither ✅ nor ❌)

You want your comments to be addressed before merging this PR in cases like:

  1. There are leftovers like unnecessary logs, comments, etc.
  2. You have an opinionated comment regarding the code that requires a discussion.
  3. You have questions.

How to handle the comments?

  1. An owner of a comment is the only one who can resolve it.
  2. An owner of a comment must resolve it when it's addressed.
  3. A PR owner must reply with ✅ when a comment is addressed.

@sashuk sashuk self-assigned this Jan 11, 2024
Copy link

changeset-bot bot commented Jan 11, 2024

🦋 Changeset detected

Latest commit: 0ee49b5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@toptal/picasso Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sashuk
Copy link
Contributor Author

sashuk commented Jan 11, 2024

@toptal-bot run package:alpha-release

@toptal-devbot
Copy link
Collaborator

Your alpha package is ready 🎉
yarn add @topkit/analytics-charts@53.0.1-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.41+e1f0cf25f
yarn add @toptal/[email protected]+e1f0cf25f
yarn add @toptal/picasso-charts@56.0.2-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.5+e1f0cf25f
yarn add @toptal/picasso-codemod@5.6.4-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.91+e1f0cf25f
yarn add @toptal/picasso-forms@66.1.3-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.5+e1f0cf25f
yarn add @toptal/picasso-pictograms@2.0.1-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.161+e1f0cf25f
yarn add @toptal/picasso-provider@3.4.3-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.33+e1f0cf25f
yarn add @toptal/picasso-query-builder@1.3.1-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.7+e1f0cf25f
yarn add @toptal/picasso-rich-text-editor@10.0.1-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.41+e1f0cf25f
yarn add @toptal/picasso-shared@13.1.3-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.14+e1f0cf25f
yarn add @toptal/picasso-tailwind@1.0.2-alpha-FX-NULL-fix-passing-of-property-e1f0cf25f.21+e1f0cf25f

@sashuk sashuk changed the title [FX-NULL] Do not pass enableResetSearch property [FX-4737] Do not pass enableResetSearch property Jan 11, 2024
@sashuk sashuk marked this pull request as ready for review January 11, 2024 17:01
@sashuk
Copy link
Contributor Author

sashuk commented Jan 11, 2024

@toptal-anvil ping reviewers

Copy link
Contributor

@rasitozcan rasitozcan left a comment

Choose a reason for hiding this comment

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

Is that normal that it passed CI checks, when enableResetSearch prop is added?

@sashuk sashuk force-pushed the FX-NULL-fix-passing-of-property branch from 23f0a97 to 0ee49b5 Compare January 12, 2024 09:46
@sashuk
Copy link
Contributor Author

sashuk commented Jan 12, 2024

@rasitozcan I think there is a problem somewhere in types of MUINativeSelect or the way Typescript handles types of spread operator, so for now we fix the problem in master and then should be a proper research as we might have other places with this problem.

@sashuk sashuk merged commit 9b60dd2 into master Jan 12, 2024
19 checks passed
@sashuk sashuk deleted the FX-NULL-fix-passing-of-property branch January 12, 2024 10:02
@toptal-build toptal-build mentioned this pull request Jan 12, 2024
1 task
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