* remove limits we do not listen to anymore
* add back boards property for focalboard project compatibility
* remove boards cards as paid feature
* remove lingering unlimited integrations paid feature
Этот коммит содержится в:
Nathaniel Allred
2023-01-20 15:43:05 -06:00
коммит произвёл GitHub
родитель 5d0fdb9dff
Коммит 305fbb17cf
3 изменённых файлов: 14 добавлений и 75 удалений

Просмотреть файл

@@ -268,6 +268,11 @@ type SubscriptionChange struct {
DowngradeFeedback *DowngradeFeedback `json:"downgrade_feedback"`
}
// TODO remove BoardsLimits.
// It is not used for real.
// Focalboard has some lingering code using this struct
// https://github.com/mattermost/focalboard/blob/fd4cf95f8ac9ba616864b25bf91bb1e4ec21335a/server/app/cloud.go#L86
// we should remove this struct once that code is removed.
type BoardsLimits struct {
Cards *int `json:"cards"`
Views *int `json:"views"`
@@ -277,10 +282,6 @@ type FilesLimits struct {
TotalStorage *int64 `json:"total_storage"`
}
type IntegrationsLimits struct {
Enabled *int `json:"enabled"`
}
type MessagesLimits struct {
History *int `json:"history"`
}
@@ -290,11 +291,15 @@ type TeamsLimits struct {
}
type ProductLimits struct {
Boards *BoardsLimits `json:"boards,omitempty"`
Files *FilesLimits `json:"files,omitempty"`
Integrations *IntegrationsLimits `json:"integrations,omitempty"`
Messages *MessagesLimits `json:"messages,omitempty"`
Teams *TeamsLimits `json:"teams,omitempty"`
// TODO remove Boards property.
// It is not used for real.
// Focalboard has some lingering code using this property
// https://github.com/mattermost/focalboard/blob/fd4cf95f8ac9ba616864b25bf91bb1e4ec21335a/server/app/cloud.go#L86
// we should remove this property once that code is removed.
Boards *BoardsLimits `json:"boards,omitempty"`
Files *FilesLimits `json:"files,omitempty"`
Messages *MessagesLimits `json:"messages,omitempty"`
Teams *TeamsLimits `json:"teams,omitempty"`
}
// CreateSubscriptionRequest is the parameters for the API request to create a subscription.