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

Update exclude checkmark action to change behavior based on inclusion status #1167

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

Kirandawadi
Copy link
Collaborator

Changes made:

Enhanced get_queryset() in DeltaURLViewSet inside views.py with new annotations:

  • Added exclude_pattern_type: Indicates type of exclude pattern affecting the URL
  • Added include_pattern_id: Stores ID of any include pattern affecting the URL

Modified handleExcludeIndividualUrlClick() in delta_url_list.js:

  • Now checks if URL is affected by multi-URL exclude pattern using new exclude_pattern_type annotation
  • For multi-URL patterns: Creates/deletes individual include pattern to override exclusion
  • For individual URL patterns: Toggles individual exclude pattern directly
  • Uses include_pattern_id annotation to delete override patterns when needed

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.

Update Exclude Checkmark Action to Change Behavior Based on Inclusion Status
1 participant