@atlaskit/react-ufo 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#191244](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/191244)
|
|
8
|
+
[`2d701ec4a7166`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2d701ec4a7166) -
|
|
9
|
+
fix name values used for post-interaction-log rate limiting
|
|
10
|
+
|
|
3
11
|
## 4.1.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -734,10 +734,8 @@ function abort(interactionId, abortReason) {
|
|
|
734
734
|
callCancelCallbacks(interaction);
|
|
735
735
|
interaction.abortReason = abortReason;
|
|
736
736
|
finishInteraction(interactionId, interaction);
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
postInteractionLog.stopVCObserver();
|
|
740
|
-
}
|
|
737
|
+
postInteractionLog.reset();
|
|
738
|
+
postInteractionLog.stopVCObserver();
|
|
741
739
|
if ((0, _coinflip.default)((0, _config.getExperimentalInteractionRate)(interaction.ufoName, interaction.type))) {
|
|
742
740
|
(0, _createExperimentalInteractionMetricsPayload.onExperimentalInteractionComplete)(interactionId, interaction);
|
|
743
741
|
remove(interactionId);
|
|
@@ -751,10 +749,8 @@ function abortByNewInteraction(interactionId, interactionName) {
|
|
|
751
749
|
interaction.abortReason = 'new_interaction';
|
|
752
750
|
interaction.abortedByInteractionName = interactionName;
|
|
753
751
|
finishInteraction(interactionId, interaction);
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
postInteractionLog.stopVCObserver();
|
|
757
|
-
}
|
|
752
|
+
postInteractionLog.reset();
|
|
753
|
+
postInteractionLog.stopVCObserver();
|
|
758
754
|
if ((0, _coinflip.default)((0, _config.getExperimentalInteractionRate)(interaction.ufoName, interaction.type))) {
|
|
759
755
|
(0, _createExperimentalInteractionMetricsPayload.onExperimentalInteractionComplete)(interactionId, interaction);
|
|
760
756
|
remove(interactionId);
|
|
@@ -772,10 +768,8 @@ function abortAll(abortReason, abortedByInteractionName) {
|
|
|
772
768
|
}
|
|
773
769
|
}
|
|
774
770
|
finishInteraction(interactionId, interaction);
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
postInteractionLog.stopVCObserver();
|
|
778
|
-
}
|
|
771
|
+
postInteractionLog.reset();
|
|
772
|
+
postInteractionLog.stopVCObserver();
|
|
779
773
|
if ((0, _coinflip.default)((0, _config.getExperimentalInteractionRate)(interaction.ufoName, interaction.type))) {
|
|
780
774
|
(0, _createExperimentalInteractionMetricsPayload.onExperimentalInteractionComplete)(interactionId, interaction);
|
|
781
775
|
remove(interactionId);
|
|
@@ -788,7 +782,7 @@ function addOnCancelCallback(id, cancelCallback) {
|
|
|
788
782
|
}
|
|
789
783
|
function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelStack, routeName) {
|
|
790
784
|
var trace = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null;
|
|
791
|
-
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(ufoName, type))) {
|
|
785
|
+
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(routeName || ufoName, type))) {
|
|
792
786
|
postInteractionLog.reset();
|
|
793
787
|
}
|
|
794
788
|
var vcObserver;
|
|
@@ -907,7 +901,7 @@ function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelS
|
|
|
907
901
|
experienceKey: ufoName
|
|
908
902
|
});
|
|
909
903
|
if (type === 'transition' || (0, _platformFeatureFlags.fg)('platform_ufo_enable_vc_observer_per_interaction')) {
|
|
910
|
-
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(ufoName, type))) {
|
|
904
|
+
if ((0, _coinflip.default)((0, _config.getPostInteractionRate)(routeName || ufoName, type))) {
|
|
911
905
|
postInteractionLog.startVCObserver({
|
|
912
906
|
startTime: startTime
|
|
913
907
|
});
|
|
@@ -610,10 +610,8 @@ export function abort(interactionId, abortReason) {
|
|
|
610
610
|
callCancelCallbacks(interaction);
|
|
611
611
|
interaction.abortReason = abortReason;
|
|
612
612
|
finishInteraction(interactionId, interaction);
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
postInteractionLog.stopVCObserver();
|
|
616
|
-
}
|
|
613
|
+
postInteractionLog.reset();
|
|
614
|
+
postInteractionLog.stopVCObserver();
|
|
617
615
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
618
616
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
619
617
|
remove(interactionId);
|
|
@@ -627,10 +625,8 @@ export function abortByNewInteraction(interactionId, interactionName) {
|
|
|
627
625
|
interaction.abortReason = 'new_interaction';
|
|
628
626
|
interaction.abortedByInteractionName = interactionName;
|
|
629
627
|
finishInteraction(interactionId, interaction);
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
postInteractionLog.stopVCObserver();
|
|
633
|
-
}
|
|
628
|
+
postInteractionLog.reset();
|
|
629
|
+
postInteractionLog.stopVCObserver();
|
|
634
630
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
635
631
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
636
632
|
remove(interactionId);
|
|
@@ -648,10 +644,8 @@ export function abortAll(abortReason, abortedByInteractionName) {
|
|
|
648
644
|
}
|
|
649
645
|
}
|
|
650
646
|
finishInteraction(interactionId, interaction);
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
postInteractionLog.stopVCObserver();
|
|
654
|
-
}
|
|
647
|
+
postInteractionLog.reset();
|
|
648
|
+
postInteractionLog.stopVCObserver();
|
|
655
649
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
656
650
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
657
651
|
remove(interactionId);
|
|
@@ -663,7 +657,7 @@ export function addOnCancelCallback(id, cancelCallback) {
|
|
|
663
657
|
interaction === null || interaction === void 0 ? void 0 : interaction.cancelCallbacks.push(cancelCallback);
|
|
664
658
|
}
|
|
665
659
|
export function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelStack, routeName, trace = null) {
|
|
666
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
660
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
667
661
|
postInteractionLog.reset();
|
|
668
662
|
}
|
|
669
663
|
let vcObserver;
|
|
@@ -782,7 +776,7 @@ export function addNewInteraction(interactionId, ufoName, type, startTime, rate,
|
|
|
782
776
|
experienceKey: ufoName
|
|
783
777
|
});
|
|
784
778
|
if (type === 'transition' || fg('platform_ufo_enable_vc_observer_per_interaction')) {
|
|
785
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
779
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
786
780
|
postInteractionLog.startVCObserver({
|
|
787
781
|
startTime
|
|
788
782
|
});
|
|
@@ -688,10 +688,8 @@ export function abort(interactionId, abortReason) {
|
|
|
688
688
|
callCancelCallbacks(interaction);
|
|
689
689
|
interaction.abortReason = abortReason;
|
|
690
690
|
finishInteraction(interactionId, interaction);
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
postInteractionLog.stopVCObserver();
|
|
694
|
-
}
|
|
691
|
+
postInteractionLog.reset();
|
|
692
|
+
postInteractionLog.stopVCObserver();
|
|
695
693
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
696
694
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
697
695
|
remove(interactionId);
|
|
@@ -705,10 +703,8 @@ export function abortByNewInteraction(interactionId, interactionName) {
|
|
|
705
703
|
interaction.abortReason = 'new_interaction';
|
|
706
704
|
interaction.abortedByInteractionName = interactionName;
|
|
707
705
|
finishInteraction(interactionId, interaction);
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
postInteractionLog.stopVCObserver();
|
|
711
|
-
}
|
|
706
|
+
postInteractionLog.reset();
|
|
707
|
+
postInteractionLog.stopVCObserver();
|
|
712
708
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
713
709
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
714
710
|
remove(interactionId);
|
|
@@ -726,10 +722,8 @@ export function abortAll(abortReason, abortedByInteractionName) {
|
|
|
726
722
|
}
|
|
727
723
|
}
|
|
728
724
|
finishInteraction(interactionId, interaction);
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
postInteractionLog.stopVCObserver();
|
|
732
|
-
}
|
|
725
|
+
postInteractionLog.reset();
|
|
726
|
+
postInteractionLog.stopVCObserver();
|
|
733
727
|
if (coinflip(getExperimentalInteractionRate(interaction.ufoName, interaction.type))) {
|
|
734
728
|
onExperimentalInteractionComplete(interactionId, interaction);
|
|
735
729
|
remove(interactionId);
|
|
@@ -742,7 +736,7 @@ export function addOnCancelCallback(id, cancelCallback) {
|
|
|
742
736
|
}
|
|
743
737
|
export function addNewInteraction(interactionId, ufoName, type, startTime, rate, labelStack, routeName) {
|
|
744
738
|
var trace = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null;
|
|
745
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
739
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
746
740
|
postInteractionLog.reset();
|
|
747
741
|
}
|
|
748
742
|
var vcObserver;
|
|
@@ -861,7 +855,7 @@ export function addNewInteraction(interactionId, ufoName, type, startTime, rate,
|
|
|
861
855
|
experienceKey: ufoName
|
|
862
856
|
});
|
|
863
857
|
if (type === 'transition' || fg('platform_ufo_enable_vc_observer_per_interaction')) {
|
|
864
|
-
if (coinflip(getPostInteractionRate(ufoName, type))) {
|
|
858
|
+
if (coinflip(getPostInteractionRate(routeName || ufoName, type))) {
|
|
865
859
|
postInteractionLog.startVCObserver({
|
|
866
860
|
startTime: startTime
|
|
867
861
|
});
|