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

Allowing search by 'Specification attribute name' in specification attributes page (Admin area) #7546

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

qasas145
Copy link

@qasas145 qasas145 commented Feb 2, 2025

#7545 i have added this feature by these steps

  • update GetSpecificationAttributeGroupsAsync in the ISpecificationAttributeService.cs file to have this signature GetSpecificationAttributeGroupsAsync(int pageIndex = 0, int pageSize = int.MaxValue, string specificationName = "") and this is to enable search by group name which contains this specification attribute
  • update GetSpecificationAttributesByGroupIdAsync to GetSpecificationAttributesByGroupIdAsync(int? specificationAttributeGroupId = null, string name = "") to enable searching by attribute name in the group
  • update PrepareSpecificationAttributeGroupListModelAsync in the SpecificationAttributeModelFactory
  • update List.cshtml to include search box
  • update SpecificationAttributeSearchModel.cs to include add searchName property
  • update SpecificationAttributeGroupSearchModel.cs to include specification attribute search property

So this will be the page
1

You can type the attribute name and it will fetch the attribute and the group of it , and if it has no group then it appear in the default group

And you don't have to click on the control icon to display the result attributes , but the child table of specification attributes will open auto, so that you will see the attribute result directly

See images below
2
3
4

@qasas145 qasas145 force-pushed the feature-allow-search-by-name-admin-specification-attribute branch from e3652dc to 65fb1a1 Compare February 3, 2025 13:50
@qasas145 qasas145 changed the title Allowing search by group name and specification name in specification attributes page (Admin) Allowing search by 'Specification attribute name' in specification attributes page (Admin area) Feb 3, 2025
@qasas145
Copy link
Author

qasas145 commented Feb 3, 2025

@RomanovM ,I Have updated this is PR , so we can search only by specification attribute name

@qasas145 qasas145 force-pushed the feature-allow-search-by-name-admin-specification-attribute branch from 65fb1a1 to 603d0d3 Compare February 3, 2025 14:11
@exileDev exileDev self-requested a review February 4, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants