@rh-support/troubleshoot 2.4.5-beta.20 → 2.4.5-beta.21-user-agent-hotfix
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAiBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SessionRestore.d.ts","sourceRoot":"","sources":["../../../../src/components/SessionRestore/SessionRestore.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EAGH,eAAe,EAElB,MAAM,iCAAiC,CAAC;AAiBzC,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,qBA8V3C"}
|
|
@@ -91,7 +91,7 @@ export function SessionRestore(props) {
|
|
|
91
91
|
const needsNewSessionId = hasProductVersionOrSummary && isEmpty(relevantSession);
|
|
92
92
|
if (needsNewSessionId) {
|
|
93
93
|
const userAgent = getUserAgentForCaseMode(isCaseCreate);
|
|
94
|
-
const userAgentAB = userAgent + (ABTestVariation ? '-A-1' : '-B-1');
|
|
94
|
+
const userAgentAB = userAgent + (isEqual(ABTestVariation, 'A') ? '-A-1' : '-B-1');
|
|
95
95
|
let session = {
|
|
96
96
|
userAgent: userAgentAB,
|
|
97
97
|
originatingSystem: userAgent,
|
|
@@ -142,13 +142,14 @@ export function SessionRestore(props) {
|
|
|
142
142
|
const existingOriginatingSystem = (_b = relevantSession === null || relevantSession === void 0 ? void 0 : relevantSession.session) === null || _b === void 0 ? void 0 : _b.originatingSystem;
|
|
143
143
|
const userAgent = getUserAgentForCaseMode(isCaseCreate);
|
|
144
144
|
// existingOriginatingSystem or If useragents are different then existingUserAgent or userAgent
|
|
145
|
+
const userAgentAB = userAgent + (isEqual(ABTestVariation, 'A') ? '-A-1' : '-B-1');
|
|
145
146
|
const originatingSystem = !isEmpty(existingOriginatingSystem)
|
|
146
147
|
? existingOriginatingSystem
|
|
147
148
|
: !isEmpty(existingUserAgent) && existingUserAgent !== userAgent
|
|
148
149
|
? existingUserAgent
|
|
149
150
|
: userAgent;
|
|
150
151
|
let session = {
|
|
151
|
-
userAgent,
|
|
152
|
+
userAgent: userAgentAB,
|
|
152
153
|
originatingSystem: originatingSystem,
|
|
153
154
|
caseCreationError: caseCreation500ErrorStatus,
|
|
154
155
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.4.5-beta.
|
|
3
|
+
"version": "2.4.5-beta.21-user-agent-hotfix",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"lib/**/*"
|
|
26
26
|
],
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@cee-eng/hydrajs": "4.17.
|
|
28
|
+
"@cee-eng/hydrajs": "4.17.36",
|
|
29
29
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
30
30
|
"@patternfly/patternfly": "5.4.0",
|
|
31
31
|
"@patternfly/react-core": "5.4.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react-virtualized": "^9.22.5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@cee-eng/hydrajs": "4.17.
|
|
54
|
+
"@cee-eng/hydrajs": "4.17.36",
|
|
55
55
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
56
56
|
"@patternfly/patternfly": "5.4.0",
|
|
57
57
|
"@patternfly/react-core": "5.4.0",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"@progress/kendo-licensing": "1.3.5",
|
|
61
61
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
62
62
|
"@redux-devtools/extension": "^3.3.0",
|
|
63
|
-
"@rh-support/components": "2.4.3-beta.
|
|
64
|
-
"@rh-support/react-context": "2.4.3-beta.
|
|
63
|
+
"@rh-support/components": "2.4.3-beta.5",
|
|
64
|
+
"@rh-support/react-context": "2.4.3-beta.5",
|
|
65
65
|
"@rh-support/types": "2.0.5",
|
|
66
|
-
"@rh-support/user-permissions": "2.4.3-beta.
|
|
67
|
-
"@rh-support/utils": "2.4.3-beta.
|
|
66
|
+
"@rh-support/user-permissions": "2.4.3-beta.5",
|
|
67
|
+
"@rh-support/utils": "2.4.3-beta.5",
|
|
68
68
|
"@types/react-redux": "^7.1.33",
|
|
69
69
|
"@types/redux": "^3.6.0",
|
|
70
70
|
"date-fns": "3.6.0",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"defaults and supports es6-module",
|
|
136
136
|
"maintained node versions"
|
|
137
137
|
],
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "7be36a960f4732483745f6216ff2bdc682b30b0c"
|
|
139
139
|
}
|