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

Variant field autocomplete + remove item bug fix #28

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

Zales0123
Copy link
Collaborator

Based on #26
Fixes #27

Nagranie.z.ekranu.2024-06-27.o.12.49.26.mov

@Zales0123 Zales0123 added bug Something isn't working enhancement New feature or request labels Jun 27, 2024
@Zales0123 Zales0123 force-pushed the 27-variant-field-autocomplete branch from 0259e08 to bdbe858 Compare June 27, 2024 10:56
->add('variant', EntityType::class, [
'class' => ProductVariant::class,
'choice_label' => 'code',
->add('variant', ResourceAutocompleteChoiceType::class, [
Copy link
Member

Choose a reason for hiding this comment

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

Does this search in id, code, and name as stated in the issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It searches by descriptor, which is code or name, as far as I know. Is the ID search a hard requirement? 😅 It's of course possible, but it would require from us to create a new repository function + new repository configuration and trait to implement it in the final application + new route. It's just easier this way and (I believe, correct me if I'm wrong) searching by name or code is much more useful than by id 🖖

Copy link
Member

Choose a reason for hiding this comment

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

Okay. Let's just keep it this way for now :D

@Zales0123 Zales0123 force-pushed the 27-variant-field-autocomplete branch from bdbe858 to 1a3d954 Compare June 27, 2024 10:57
Copy link

codecov bot commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.31%. Comparing base (9e4e68f) to head (2609a96).

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #28      +/-   ##
============================================
+ Coverage     74.10%   74.31%   +0.21%     
  Complexity       71       71              
============================================
  Files            28       28              
  Lines           363      366       +3     
============================================
+ Hits            269      272       +3     
  Misses           94       94              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Zales0123 Zales0123 force-pushed the 27-variant-field-autocomplete branch from 1a3d954 to 1a98ece Compare June 27, 2024 11:06
@Zales0123 Zales0123 force-pushed the 27-variant-field-autocomplete branch from 1a98ece to 2609a96 Compare June 27, 2024 11:20
@Zales0123 Zales0123 merged commit da68874 into master Jun 27, 2024
33 of 34 checks passed
@Zales0123 Zales0123 deleted the 27-variant-field-autocomplete branch June 27, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request]: Autocomplete for the product variant field
2 participants