refactor: Remove deprecated Service Token field

The deprecated Service Token field in the TelemetryService model and related components was removed. This improves code cleanliness and removes unnecessary dependencies.

Files modified:
- Dashboard/src/Pages/Telemetry/Services/View/Index.tsx
- Dashboard/src/Pages/Telemetry/Services/View/Settings.tsx
- Model/Models/TelemetryService.ts
This commit is contained in:
Simon Larsen
2024-08-01 15:46:14 -06:00
parent 5cf1a7f675
commit 6fbca4b6cb
3 changed files with 1 additions and 10 deletions

View File

@@ -112,13 +112,6 @@ const ServiceDelete: FunctionComponent<
},
title: "Description",
},
{
field: {
telemetryServiceToken: true,
},
title: "Service Token",
fieldType: FieldType.HiddenText,
},
],
modelId: modelId,
}}

View File

@@ -90,7 +90,6 @@ const ServiceDelete: FunctionComponent<
modelId: modelId,
}}
/>
</Fragment>
);
};

View File

@@ -416,8 +416,7 @@ export default class TelemetryService extends BaseModel {
})
public labels?: Array<Label> = undefined;
// This field is deprecared and is no longer used.
// This field is deprecared and is no longer used.
@ColumnAccessControl({
create: [
Permission.ProjectOwner,