Skip to content

Commit ad0308c

Browse files
chore: Comments and cleanup
1 parent 1028159 commit ad0308c

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

utils/lib/Alert.ts

+5
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ class Alert extends Component<
166166
return { [this.identifier]: alertPolicy };
167167
}
168168

169+
/**
170+
* Method creates mutation variables for a given Alert.
171+
*
172+
* @deprecated This function should be removed once we have finished our new build publishing pipeline
173+
*/
169174
getMutationVariables() {
170175
if (!this.isValid) {
171176
console.error(

utils/lib/DataSource.ts

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ class DataSource extends Component<
109109
/**
110110
* Get the variables for the **Quickstart** mutation.
111111
*
112+
* @deprecated This function should be removed once we have finished our new build publishing pipeline
113+
*
112114
* @returns The ID for this data source
113115
*/
114116
getMutationVariables(): DataSourceConfig['id'] {

utils/lib/Quickstart.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ class Quickstart {
135135

136136
/**
137137
* Get mutation variables from quickstart config
138+
*
139+
* @deprecated This function should be removed once we have finished our new build publishing pipeline
140+
*
138141
* @returns - Promised mutation variables for quickstart
142+
*
139143
*/
140144
async getMutationVariables(
141145
dryRun: boolean
@@ -241,8 +245,8 @@ class Quickstart {
241245
summary: summary && summary.trim(),
242246
supportLevel: SUPPORT_LEVEL_ENUMS[level],
243247
dataSourceIds: dataSourceIds,
244-
dashboards,
245248
alertConditions: alertPolicies,
249+
dashboards,
246250
};
247251

248252
return metadata;

utils/types/Artifact.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* -- Data source -- */
2+
23
export interface ArtifactDataSourceConfig {
34
id: string;
45
displayName: string;

0 commit comments

Comments
 (0)