Skip to content

Historic contact data used in contactfilter is broken in the UI #15

Open
@franz-josef-kaiser

Description

@franz-josef-kaiser

So it seems, with what was announced in #13 , the UI seems to be broken in multiple places when the segmentation by /contacthistorydata was deactivated.

How to reproduce

Add a new Contact Filter:

curl -s -X POST --user "$KEY:$SECRET" \
     https://api.mailjet.com/v3/REST/contactfilter \
    -H "Content-Type: application/json" \
    -d '{"Name":"purchase_history_above_50","Description":"Contacts have purchased items where one is valued above 50","Expression":"purchase>50","Status":"used"}'

Add a new Campaign Draft and use the new Contact Filter:

Request

curl -s -X POST --user "$KEY:$SECRET" \
    https://api.mailjet.com/v3/REST/campaigndraft \
    -H "Content-Type: application/json" \
    -d '{"Locale":"en_US","Sender":"NÖKU Backstage","SenderEmail":"[email protected]","Subject":"Hello, Buyers valued above 50!","Title":"50 and above newsletter","ContactsListID":"20070","SegmentationID":"365"}'

Response

{ "Count" : 1, "Data" : [{ "AXFraction" : 0, "AXFractionName" : "", "ContactsListID" : 20070, "CreatedAt" : "2018-08-23T06:36:17Z", "Current" : 0, "DeliveredAt" : "", "EditMode" : "tool2", "ID" : 14842, "IsStarred" : false, "IsTextPartIncluded" : false, "Locale" : "en_US", "ModifiedAt" : "", "Preset" : "", "SegmentationID" : 365, "Sender" : "Random Person", "SenderEmail" : "[email protected]", "SenderName" : "", "Status" : 0, "Subject" : "Hello, Buyers valued above 50!", "Title" : "50 and above newsletter", "Url" : "", "Used" : false }], "Total" : 1 }

Result (in the UI)

Last Step: Review – Filter is attached

https://app.mailjet.com/campaigns/summary2/$ID

bildschirmfoto 2018-08-23 um 08 41 26

Last Step: Review – Warning, that there are no users (while there are)

https://app.mailjet.com/campaigns/summary2/$ID

bildschirmfoto 2018-08-23 um 08 50 18

Edit Segment > Calculate Number of Contacts – Error

bildschirmfoto 2018-08-23 um 08 39 44

Expected Outcome

Honestly, I would expect to either work like it used to, or not be present in the UI at all. I would assume that it be easier to just fix the stability issues, than searching every fail in the UI, updating the docs (which do not tell about you deactivating this feature at all), etc. This feature is bundled that deeply with your product, that deactivating it just causes bugs and misinformation all over the place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions