@atlaskit/link-create 6.5.0 → 6.5.1
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 +14 -0
- package/analytics.spec.yaml +0 -6
- package/dist/cjs/common/constants.js +1 -1
- package/dist/cjs/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/cjs/controllers/callback-context/main.js +3 -4
- package/dist/es2019/common/constants.js +1 -1
- package/dist/es2019/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/es2019/controllers/callback-context/main.js +2 -4
- package/dist/esm/common/constants.js +1 -1
- package/dist/esm/common/utils/analytics/analytics.codegen.js +1 -1
- package/dist/esm/controllers/callback-context/main.js +3 -4
- package/dist/types/common/utils/analytics/analytics.codegen.d.ts +1 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-create
|
|
2
2
|
|
|
3
|
+
## 6.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`df73ee5ebb31c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df73ee5ebb31c) -
|
|
8
|
+
Removed the `traceId` attribute from the `object createFailed (linkCreate)` analytics event.
|
|
9
|
+
|
|
10
|
+
The event continues to record `operation` and `status` behind the
|
|
11
|
+
`platform_link_create_event_tracking` feature gate, which together identify which request failed
|
|
12
|
+
and how. `traceId` was unique per event and therefore could not be aggregated, making it
|
|
13
|
+
unsuitable for a product analytics event.
|
|
14
|
+
|
|
15
|
+
The `linkCreateExperience failed` operational event is unchanged and still records `traceId`.
|
|
16
|
+
|
|
3
17
|
## 6.5.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/analytics.spec.yaml
CHANGED
|
@@ -143,12 +143,6 @@ events:
|
|
|
143
143
|
description:
|
|
144
144
|
the HTTP status code, when the failure originated from a non-OK network response.
|
|
145
145
|
Absent otherwise
|
|
146
|
-
traceId:
|
|
147
|
-
type: string
|
|
148
|
-
required: false
|
|
149
|
-
description:
|
|
150
|
-
the trace id of the failed request, used to correlate with server-side logs. Absent
|
|
151
|
-
when the failure did not originate from a network response
|
|
152
146
|
|
|
153
147
|
- linkCreateExperience failed:
|
|
154
148
|
type: operational
|
|
@@ -16,7 +16,7 @@ var CREATE_FORM_MIN_HEIGHT_IN_PX = exports.CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
16
16
|
var LINK_CREATE_FORM_POST_CREATE_FIELD = exports.LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
17
17
|
var PACKAGE_DATA = exports.PACKAGE_DATA = {
|
|
18
18
|
packageName: "@atlaskit/link-create" || '',
|
|
19
|
-
packageVersion: "6.
|
|
19
|
+
packageVersion: "6.5.0" || '',
|
|
20
20
|
component: COMPONENT_NAME,
|
|
21
21
|
componentName: COMPONENT_NAME
|
|
22
22
|
};
|
|
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
*
|
|
12
12
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
13
13
|
*
|
|
14
|
-
* @codegen <<SignedSource::
|
|
14
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
15
15
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
16
16
|
*/
|
|
17
17
|
|
|
@@ -76,17 +76,16 @@ var LinkCreateCallbackProvider = exports.LinkCreateCallbackProvider = function L
|
|
|
76
76
|
onFailure: function () {
|
|
77
77
|
var _onFailure2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(error, context) {
|
|
78
78
|
var _context$operation;
|
|
79
|
-
var _getNetworkFields, status
|
|
79
|
+
var _getNetworkFields, status;
|
|
80
80
|
return _regenerator.default.wrap(function (_context2) {
|
|
81
81
|
while (1) switch (_context2.prev = _context2.next) {
|
|
82
82
|
case 0:
|
|
83
|
-
_getNetworkFields = (0, _errors.getNetworkFields)(error), status = _getNetworkFields.status
|
|
83
|
+
_getNetworkFields = (0, _errors.getNetworkFields)(error), status = _getNetworkFields.status;
|
|
84
84
|
createAnalyticsEvent((0, _analytics.default)('track.object.createFailed.linkCreate', _objectSpread({
|
|
85
85
|
failureType: (0, _errors.getErrorType)(error)
|
|
86
86
|
}, (0, _fg.fg)('platform_link_create_event_tracking') ? {
|
|
87
87
|
operation: (_context$operation = context === null || context === void 0 ? void 0 : context.operation) !== null && _context$operation !== void 0 ? _context$operation : null,
|
|
88
|
-
status: status
|
|
89
|
-
traceId: traceId
|
|
88
|
+
status: status
|
|
90
89
|
} : {}))).fire(_constants.ANALYTICS_CHANNEL);
|
|
91
90
|
experience === null || experience === void 0 || experience.failure(error);
|
|
92
91
|
_onFailure && _onFailure(error);
|
|
@@ -10,7 +10,7 @@ export const CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export const LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "6.
|
|
13
|
+
packageVersion: "6.5.0" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -47,15 +47,13 @@ const LinkCreateCallbackProvider = ({
|
|
|
47
47
|
onFailure: async (error, context) => {
|
|
48
48
|
var _context$operation;
|
|
49
49
|
const {
|
|
50
|
-
status
|
|
51
|
-
traceId
|
|
50
|
+
status
|
|
52
51
|
} = getNetworkFields(error);
|
|
53
52
|
createAnalyticsEvent(createEventPayload('track.object.createFailed.linkCreate', {
|
|
54
53
|
failureType: getErrorType(error),
|
|
55
54
|
...(fg('platform_link_create_event_tracking') ? {
|
|
56
55
|
operation: (_context$operation = context === null || context === void 0 ? void 0 : context.operation) !== null && _context$operation !== void 0 ? _context$operation : null,
|
|
57
|
-
status
|
|
58
|
-
traceId
|
|
56
|
+
status
|
|
59
57
|
} : {})
|
|
60
58
|
})).fire(ANALYTICS_CHANNEL);
|
|
61
59
|
experience === null || experience === void 0 ? void 0 : experience.failure(error);
|
|
@@ -10,7 +10,7 @@ export var CREATE_FORM_MIN_HEIGHT_IN_PX = '200';
|
|
|
10
10
|
export var LINK_CREATE_FORM_POST_CREATE_FIELD = '__post_create__';
|
|
11
11
|
export var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/link-create" || '',
|
|
13
|
-
packageVersion: "6.
|
|
13
|
+
packageVersion: "6.5.0" || '',
|
|
14
14
|
component: COMPONENT_NAME,
|
|
15
15
|
componentName: COMPONENT_NAME
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
*
|
|
5
5
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
6
6
|
*
|
|
7
|
-
* @codegen <<SignedSource::
|
|
7
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
8
8
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -68,17 +68,16 @@ var LinkCreateCallbackProvider = function LinkCreateCallbackProvider(_ref) {
|
|
|
68
68
|
onFailure: function () {
|
|
69
69
|
var _onFailure2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(error, context) {
|
|
70
70
|
var _context$operation;
|
|
71
|
-
var _getNetworkFields, status
|
|
71
|
+
var _getNetworkFields, status;
|
|
72
72
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
73
73
|
while (1) switch (_context2.prev = _context2.next) {
|
|
74
74
|
case 0:
|
|
75
|
-
_getNetworkFields = getNetworkFields(error), status = _getNetworkFields.status
|
|
75
|
+
_getNetworkFields = getNetworkFields(error), status = _getNetworkFields.status;
|
|
76
76
|
createAnalyticsEvent(createEventPayload('track.object.createFailed.linkCreate', _objectSpread({
|
|
77
77
|
failureType: getErrorType(error)
|
|
78
78
|
}, fg('platform_link_create_event_tracking') ? {
|
|
79
79
|
operation: (_context$operation = context === null || context === void 0 ? void 0 : context.operation) !== null && _context$operation !== void 0 ? _context$operation : null,
|
|
80
|
-
status: status
|
|
81
|
-
traceId: traceId
|
|
80
|
+
status: status
|
|
82
81
|
} : {}))).fire(ANALYTICS_CHANNEL);
|
|
83
82
|
experience === null || experience === void 0 || experience.failure(error);
|
|
84
83
|
_onFailure && _onFailure(error);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::3d0d3651f4ee8999c785e29eda73533b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/link-create run codegen-analytics
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -39,7 +39,6 @@ export type ObjectCreateFailedLinkCreateAttributesType = {
|
|
|
39
39
|
failureType: string;
|
|
40
40
|
operation?: string | null;
|
|
41
41
|
status?: number | null;
|
|
42
|
-
traceId?: string | null;
|
|
43
42
|
};
|
|
44
43
|
export type LinkCreateExperienceFailedAttributesType = {
|
|
45
44
|
errorType?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-create",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.1",
|
|
4
4
|
"description": "The driver component of meta creation flow",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@atlaskit/link-picker": "^6.5.0",
|
|
74
74
|
"@atlaskit/link-test-helpers": "^11.1.0",
|
|
75
75
|
"@atlaskit/popup": "^6.2.0",
|
|
76
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
76
|
+
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
77
77
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
78
78
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
79
79
|
"@testing-library/react": "^16.3.0",
|