[DPMMA-2187] Segment date filter and "equals" operator #13620
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.
Description:
This PR extends the validation of data fields using the equals/not equal operators. Using these operators for dates causes the segment to not rebuild properly. This is due to the fact that date-related data is stored in the form of datetime and comparing it with only the date or incomplete datetime in the query does not return the expected results. The value to be compared must be accurate to the second, comparison with only the day in the YYYY-MM-DD format or with the day and partial time does not return all relevant contacts. This PR does not remove operators for data fields so that segments that have already been saved with them can be opened for editing.
Steps to test this PR: