Skip to content

Commit

Permalink
MOB 8960 (#415)
Browse files Browse the repository at this point in the history
* Fixed single item matches code

* Fixed comments

* added more unit tests, bug fixes

* Not combinator implemented

* evaluateEvent added not combinator

* minMatch changes revert

* minMatch implemented

* complex criteria tests, not combinator, evaluateFieldLogic fix

---------

Co-authored-by: hardikmashru <[email protected]>
  • Loading branch information
hardikmashru and hardikmashru authored Jul 11, 2024
1 parent 6d50998 commit 41ffd79
Show file tree
Hide file tree
Showing 4 changed files with 1,262 additions and 147 deletions.
3 changes: 0 additions & 3 deletions src/anonymousUserTracking/anonymousUserEventManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
ENDPOINT_TRACK_ANON_SESSION,
WEB_PLATFORM,
KEY_PREFER_USERID,
SHARED_PREF_MATCHED_CRITERIAS,
ENDPOINTS
} from 'src/constants';
import { baseIterableRequest } from 'src/request';
Expand Down Expand Up @@ -221,7 +220,6 @@ export class AnonymousUserEventManager {
if (trackEventList.length) {
trackEventList.forEach((event: any) => {

Check warning on line 221 in src/anonymousUserTracking/anonymousUserEventManager.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected any. Specify a different type
const eventType = event[SHARED_PREFS_EVENT_TYPE];
delete event.criteriaId;
delete event.eventType;
switch (eventType) {
case TRACK_EVENT: {
Expand Down Expand Up @@ -251,7 +249,6 @@ export class AnonymousUserEventManager {
removeAnonSessionCriteriaData() {
localStorage.removeItem(SHARED_PREFS_ANON_SESSIONS);
localStorage.removeItem(SHARED_PREFS_EVENT_LIST_KEY);
localStorage.removeItem(SHARED_PREF_MATCHED_CRITERIAS);
}

private async storeEventListToLocalStorage(
Expand Down
Loading

0 comments on commit 41ffd79

Please sign in to comment.