Add filter functionality in export job for category and product expor…#326
Open
ranjan-webkul wants to merge 1 commit into
Open
Add filter functionality in export job for category and product expor…#326ranjan-webkul wants to merge 1 commit into
ranjan-webkul wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Reference
Feature: Conditional Filter Visibility for Export Profiles (Categories vs Products)
Description
This PR enhances the Export Profile creation and edit forms by adding conditional logic to the filter settings. The goal is to streamline the UI by hiding irrelevant filters based on the selected entity type.
Key Changes:
1- Conditional Visibility: The Channel filter is now hidden when the "Categories" entity type is selected, as categories are typically global or not channel-specific in this context.
2- Persistent Filters: The Locale filter remains visible for all entity types (Categories, Products, etc.) to allow multi-language data exports.
3- State Preservation: Updated the entityType watcher and form reset logic to ensure the entity_type value is preserved during UI updates, preventing the dropdown from clearing.
4- Robust Detection: Improved the isCategory() and parseValue() methods to correctly identify the selected entity, whether the data is passed as a raw string or a JSON object.
How to Check (Testing Steps for Reviewer):
1- Create Export Profile:
2- Edit Export Profile:
3- Data Integrity:
Expected Export Result:
When the user runs the export, the generated CSV file will now be correctly filtered based on these settings: