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
Views Rework #189
base: staging
Are you sure you want to change the base?
Views Rework #189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let us move view to a interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract utility things into separate PR
expose the interface
remove nullable from interface
remove the id calls from interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Assert.IsTrue(result.Segmentation.ContainsValue(viewName));"
is not a strong enough assert
validate all the things and also internal segmentation keys for different circumstances
be more aggressive on the test scenarios
Assets/Countly/Plugins/CountlySDK/Services/EventCountlyService.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test changes are lower then logic changes.
ViewService - 938 lines
Tests - 610
However, we did merge a test PR right?
Also please add some bad values test cases for those missing.
} | ||
|
||
_utils.TruncateSegmentationValues(customViewSegmentation, _configuration.MaxSegmentationValues, "[ViewCountlyService] StartViewInternal, ", Log); | ||
_utils.RemoveReservedKeysFromSegmentation(customViewSegmentation, reservedSegmentationKeysViews, "[ViewCountlyService] AutoCloseRequiredViews, ", Log); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AutoCloseRequiredViews
} | ||
|
||
lock (LockObj) { | ||
Log.Info("[ViewCountlyService] Calling SetGlobalViewSegmentation sg[" + (viewSegmentation == null ? "null" : viewSegmentation.Count.ToString()) + "]"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of count lets print the stingified version of the segmentation provided
TestUtility.TestCleanup(); | ||
Object.DestroyImmediate(Countly.Instance); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why these removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static void TestCleanup(){
Countly.Instance.ClearStorage();
UnityEngine.Object.DestroyImmediate(Countly.Instance);
}
this is the function that we want to standardize for each test, which also does this exact same thing. So no need to keep these
No description provided.