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

Views Rework #189

Open
wants to merge 57 commits into
base: staging
Choose a base branch
from
Open

Views Rework #189

wants to merge 57 commits into from

Conversation

AliRKat
Copy link
Member

@AliRKat AliRKat commented Dec 15, 2023

No description provided.

Copy link
Member

@ArtursKadikis ArtursKadikis left a 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

@AliRKat
Copy link
Member Author

AliRKat commented Dec 25, 2023

Copy link
Member

@ArtursKadikis ArtursKadikis left a 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

Copy link
Member

@ArtursKadikis ArtursKadikis left a 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

Copy link
Member

@arifBurakDemiray arifBurakDemiray left a 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.

@arifBurakDemiray arifBurakDemiray self-requested a review May 14, 2024 07:24
CHANGELOG.md Outdated Show resolved Hide resolved
}

_utils.TruncateSegmentationValues(customViewSegmentation, _configuration.MaxSegmentationValues, "[ViewCountlyService] StartViewInternal, ", Log);
_utils.RemoveReservedKeysFromSegmentation(customViewSegmentation, reservedSegmentationKeysViews, "[ViewCountlyService] AutoCloseRequiredViews, ", Log);
Copy link
Contributor

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()) + "]");
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why these removed?

Copy link
Member Author

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

@AliRKat AliRKat requested a review from turtledreams May 23, 2024 18:21
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.

None yet

4 participants