Revert "Revert "Updating categories when resolving tickets""#604
Open
willwatters wants to merge 1 commit into
Open
Revert "Revert "Updating categories when resolving tickets""#604willwatters wants to merge 1 commit into
willwatters wants to merge 1 commit into
Conversation
Plan Result (448: cftptl - Job)
Change Result (Click me) # azapi_resource.AIServices will be updated in-place
~ resource "azapi_resource" "AIServices" {
id = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.CognitiveServices/accounts/platops-slack-help-bot-ptl"
name = "platops-slack-help-bot-ptl"
~ output = jsonencode(
{
- etag = "\"06014eec-0000-1100-0000-6835b65d0000\""
- id = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.CognitiveServices/accounts/platops-slack-help-bot-ptl"
- identity = {
- principalId = "4585f7f7-f363-4eb9-95a7-78c43e2de5ab"
- tenantId = "531ff96d-0ae9-462a-8d2d-bec7c0b42082"
- type = "SystemAssigned"
}
- kind = "AIServices"
- location = "uksouth"
- name = "platops-slack-help-bot-ptl"
- properties = {
- armFeatures = [
- "Microsoft.CognitiveServices/OpenAIPreview",
- "Microsoft.CognitiveServices/OpenAIFineTune",
]
- callRateLimit = {
- rules = [
- {
- count = 20
- key = "documentTranslation.post"
- matchPatterns = [
- {
- method = "POST"
- path = "translator/text/batch/*"
},
]
- renewalPeriod = 1
},
- {
- count = 20
- key = "documentTranslation.get"
- matchPatterns = [
- {
- method = "GET"
- path = "translator/text/batch/*"
},
]
- renewalPeriod = 1
},
- {
- count = 20
- key = "documentTranslation.default"
- matchPatterns = [
- {
- method = "*"
- path = "translator/text/batch/*"
},
]
- renewalPeriod = 1
},
- {
- count = 100
- key = "textTranslation"
- matchPatterns = [
- {
- method = "*"
- path = "translator/text/*"
},
]
- renewalPeriod = 1
},
- {
- count = 20
- key = "singledocumentTranslation.default"
- matchPatterns = [
- {
- method = "*"
- path = "translator/document:translate"
},
]
- renewalPeriod = 1
},
- {
- count = 20
- key = "batchDocumentTranslation.post"
- matchPatterns = [
- {
- method = "POST"
- path = "translator/document/*"
},
]
- renewalPeriod = 1
},
- {
- count = 20
- key = "batchDocumentTranslation.get"
- matchPatterns = [
- {
- method = "GET"
- path = "translator/document/*"
},
]
- renewalPeriod = 1
},
- {
- count = 20
- key = "batchDocumentTranslation.default"
- matchPatterns = [
- {
- method = "*"
- path = "translator/document/*"
},
]
- renewalPeriod = 1
},
- {
- count = 1000
- key = "workflow.endpoint.postcalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/:analyze-conversations"
},
]
- renewalPeriod = 60
},
- {
- count = 1000
- key = "textAnalytics.conversations.jobs.getcalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/analyze-conversations/jobs/*"
},
]
- renewalPeriod = 60
},
- {
- count = 1000
- key = "textAnalytics.conversations.jobs.postcalls"
- matchPatterns = [
- {
- method = "POST"
- path = "language/analyze-conversations/jobs"
},
]
- renewalPeriod = 60
},
- {
- count = 1000
- key = "textAnalytics.analyzetext.postcalls"
- matchPatterns = [
- {
- method = "POST"
- path = "language/:analyze-text"
},
]
- renewalPeriod = 60
},
- {
- count = 1000
- key = "textAnalytics.analyzetext.jobs.getcalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/analyze-text/jobs/*"
},
]
- renewalPeriod = 60
},
- {
- count = 300
- key = "textAnalytics.analyzetext.jobs.postcalls"
- matchPatterns = [
- {
- method = "POST"
- path = "language/analyze-text/jobs"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.analyzedocuments.jobs.getcalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/analyze-documents/jobs/*"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.analyzedocuments.jobs.postcalls"
- matchPatterns = [
- {
- method = "POST"
- path = "language/analyze-documents/jobs"
},
]
- renewalPeriod = 60
},
- {
- count = 1000
- key = "textAnalytics.generate.postcalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/:generate"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.authoring.customtext.getcalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/analyze-text/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 10
- key = "textAnalytics.unifiedAuthoring.updatecalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/analyze-text/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.authoring.customtext.march.getcalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/authoring/analyze-text/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 10
- key = "textAnalytics.unifiedAuthoring.march.updatecalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/authoring/analyze-text/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.authoring.customtext.internal.getcalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/analyze-text/internal/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 10
- key = "textAnalytics.unifiedAuthoring.internal.updatecalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/analyze-text/internal/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.unifiedAuthoring.clu.getCalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/analyze-conversations/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 10
- key = "textAnalytics.unifiedAuthoring.clu.updateCalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/analyze-conversations/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.unifiedAuthoring.clu.march.getCalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/authoring/analyze-conversations/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 10
- key = "textAnalytics.unifiedAuthoring.clu.march.updateCalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/authoring/analyze-conversations/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.unifiedAuthoring.clu.internal.getCalls"
- matchPatterns = [
- {
- method = "GET"
- path = "language/analyze-conversations/internal/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 10
- key = "textAnalytics.unifiedAuthoring.clu.internal.updateCalls"
- matchPatterns = [
- {
- method = "*"
- path = "language/analyze-conversations/internal/projects/*"
},
]
- renewalPeriod = 60
},
- {
- count = 100
- key = "textAnalytics.customText"
- matchPatterns = [
- {
- method = "*"
- path = "text/analytics/v3.1-preview.ct.1/analyze/*"
},
]
- renewalPeriod = 60
},
- {
- count = 300
- dynamicThrottlingEnabled = true
- key = "textAnalytics.analyze"
- matchPatterns = [
- {
- method = "*"
- path = "text/analytics/v3.1/analyze/*"
},
- {
- method = "*"
- path = "text/analytics/v3.2-preview.1/analyze/*"
},
- {
- method = "*"
- path = "text/analytics/v3.2-preview.2/analyze/*"
},
]
- renewalPeriod = 60
},
- {
- count = 300
- key = "textAnalytics.healthcare"
- matchPatterns = [
- {
- method = "*"
- path = "text/analytics/v3.1/entities/health"
},
- {
- method = "*"
- path = "text/analytics/v3.2-preview.1/health"
},
- {
- method = "*"
- path = "text/analytics/v3.2-preview.2/health"
},
# ...
# ... The maximum length of GitHub Comment is 65536, so the content is omitted by tfcmt.
# ...
= "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.MachineLearningServices/workspaces/platops-slack-help-bot-ptl"
name = "platops-slack-help-bot-ptl"
~ output = jsonencode({}) -> (known after apply)
~ tags = {
"application" = "core"
"builtFrom" = "hmcts/slack-help-bot"
"businessArea" = "CFT"
"criticality" = "High"
"environment" = "production"
~ "startupMode" = "always" -> ""
}
# (8 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# azurerm_cognitive_deployment.model will be created
+ resource "azurerm_cognitive_deployment" "model" {
+ cognitive_account_id = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.CognitiveServices/accounts/platops-slack-help-bot-ptl"
+ id = (known after apply)
+ name = "gpt-4"
+ rai_policy_name = "Microsoft.DefaultV2"
+ version_upgrade_option = "OnceNewDefaultVersionAvailable"
+ model {
+ format = "OpenAI"
+ name = "gpt-4"
+ version = "0125-Preview"
}
+ scale {
+ capacity = 36
+ type = "Standard"
}
}
# restapi_object.cosmos_datasource will be updated in-place
~ resource "restapi_object" "cosmos_datasource" {
~ data = jsonencode(
~ {
- "@odata.context" = "https://platops-slack-help-bot-ptl.search.windows.net/$metadata#datasources/$entity"
- "@odata.etag" = "\"0x8DD9D1DD294EF1D\""
~ credentials = {
~ connectionString = null -> "ResourceId=/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.DocumentDB/databaseAccounts/platops-slack-help-bot-ptl;Database=help-requests;IdentityAuthType=AccessToken"
}
- dataDeletionDetectionPolicy = null
- encryptionKey = null
- identity = null
name = "help-requests"
- subtype = null
# (4 unchanged attributes hidden)
}
)
id = "help-requests"
# (7 unchanged attributes hidden)
}
# restapi_object.help_request_index will be updated in-place
~ resource "restapi_object" "help_request_index" {
~ data = jsonencode(
~ {
- "@odata.context" = "https://platops-slack-help-bot-ptl.search.windows.net/$metadata#indexes/$entity"
- "@odata.etag" = "\"0x8DCBC4B5B8C24AD\""
- analyzers = []
- charFilters = []
- corsOptions = null
- defaultScoringProfile = null
- encryptionKey = null
~ fields = [
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "id"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "created_at"
- normalizer = null
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (5 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
name = "key"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (5 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "status"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "area"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "title"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "description"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "analysis"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "rid"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- facetable = true
- indexAnalyzer = null
- key = false
name = "url"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
]
name = "help-requests"
- normalizers = []
- scoringProfiles = []
~ semantic = {
- defaultConfiguration = null
# (1 unchanged attribute hidden)
}
- similarity = {
- "@odata.type" = "#Microsoft.Azure.Search.BM25Similarity"
- b = null
- k1 = null
}
- suggesters = []
- tokenFilters = []
- tokenizers = []
- vectorSearch = null
}
)
id = "help-requests"
# (7 unchanged attributes hidden)
}
# restapi_object.help_request_indexer will be updated in-place
~ resource "restapi_object" "help_request_indexer" {
~ data = jsonencode(
~ {
- "@odata.context" = "https://platops-slack-help-bot-ptl.search.windows.net/$metadata#indexers/$entity"
- "@odata.etag" = "\"0x8DD9D1DD2DF1236\""
- cache = null
- description = null
- disabled = null
- encryptionKey = null
- fieldMappings = []
name = "help-requests-indexer"
- outputFieldMappings = []
- parameters = null
- skillsetName = null
# (3 unchanged attributes hidden)
}
)
id = "help-requests-indexer"
# (7 unchanged attributes hidden)
}
# restapi_object.hmcts_way_index will be updated in-place
~ resource "restapi_object" "hmcts_way_index" {
~ data = jsonencode(
~ {
- "@odata.context" = "https://platops-slack-help-bot-ptl.search.windows.net/$metadata#indexes/$entity"
- "@odata.etag" = "\"0x8DCBABD0CA10101\""
- analyzers = []
- charFilters = []
- corsOptions = null
- defaultScoringProfile = null
- encryptionKey = null
~ fields = [
~ {
- analyzer = null
- dimensions = null
- indexAnalyzer = null
name = "id"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (6 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- indexAnalyzer = null
- key = false
name = "metadata_storage_last_modified"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (5 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- indexAnalyzer = null
- key = false
name = "title"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (5 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- indexAnalyzer = null
- key = false
name = "metadata_storage_name"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (5 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- indexAnalyzer = null
- key = false
name = "metadata_storage_path"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (5 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- indexAnalyzer = null
- key = false
name = "metadata_storage_content_md5"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- searchable = true
- synonymMaps = []
- vectorSearchProfile = null
# (4 unchanged attributes hidden)
},
~ {
- analyzer = null
- dimensions = null
- indexAnalyzer = null
- key = false
name = "content"
- normalizer = null
- retrievable = true
- searchAnalyzer = null
- synonymMaps = []
- vectorSearchProfile = null
# (5 unchanged attributes hidden)
},
]
name = "the-hmcts-way"
- normalizers = []
- scoringProfiles = []
~ semantic = {
- defaultConfiguration = null
# (1 unchanged attribute hidden)
}
- similarity = {
- "@odata.type" = "#Microsoft.Azure.Search.BM25Similarity"
- b = null
- k1 = null
}
- suggesters = []
- tokenFilters = []
- tokenizers = []
- vectorSearch = null
}
)
id = "the-hmcts-way"
# (7 unchanged attributes hidden)
}
# restapi_object.hmcts_way_indexer will be updated in-place
~ resource "restapi_object" "hmcts_way_indexer" {
~ data = jsonencode(
~ {
- "@odata.context" = "https://platops-slack-help-bot-ptl.search.windows.net/$metadata#indexers/$entity"
- "@odata.etag" = "\"0x8DD9D1DDB5BFD1A\""
- cache = null
- description = null
- disabled = null
- encryptionKey = null
- fieldMappings = []
name = "the-hmcts-way"
- outputFieldMappings = []
~ parameters = {
- base64EncodeKeys = null
- batchSize = null
- maxFailedItems = null
- maxFailedItemsPerBatch = null
# (1 unchanged attribute hidden)
}
- schedule = null
- skillsetName = null
# (2 unchanged attributes hidden)
}
)
id = "the-hmcts-way"
# (7 unchanged attributes hidden)
}
# restapi_object.storage_account_datasource will be updated in-place
~ resource "restapi_object" "storage_account_datasource" {
~ data = jsonencode(
~ {
- "@odata.context" = "https://platops-slack-help-bot-ptl.search.windows.net/$metadata#datasources/$entity"
- "@odata.etag" = "\"0x8DD9D1DD2A13D59\""
~ container = {
name = "the-hmcts-way"
- query = null
}
~ credentials = {
~ connectionString = null -> "ResourceId=/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.Storage/storageAccounts/platopslackhelpbotai;"
}
- dataChangeDetectionPolicy = null
- encryptionKey = null
- identity = null
name = "the-hmcts-way"
- subtype = null
# (3 unchanged attributes hidden)
}
)
id = "the-hmcts-way"
# (7 unchanged attributes hidden)
}
Plan: 1 to add, 9 to change, 0 to destroy.ℹ️ Objects have changed outside of TerraformThis feature was introduced from Terraform v0.15.4. Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:
# azapi_resource.AIServices has changed
~ resource "azapi_resource" "AIServices" {
id = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.CognitiveServices/accounts/platops-slack-help-bot-ptl"
name = "platops-slack-help-bot-ptl"
~ output = jsonencode(
~ {
~ etag = "\"02015a59-0000-1100-0000-6835b2690000\"" -> "\"06014eec-0000-1100-0000-6835b65d0000\""
id = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/slack-help-bot-cftptl-intsvc-rg/providers/Microsoft.CognitiveServices/accounts/platops-slack-help-bot-ptl"
name = "platops-slack-help-bot-ptl"
tags = {
application = "core"
builtFrom = "hmcts/slack-help-bot"
businessArea = "CFT"
criticality = "High"
environment = "production"
startupMode = "always"
}
# (7 unchanged attributes hidden)
}
)
tags = {
"application" = "core"
"builtFrom" = "hmcts/slack-help-bot"
"businessArea" = "CFT"
"criticality" = "High"
"environment" = "production"
"startupMode" = "always"
}
# (9 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Unless you have made equivalent changes to your configuration, or ignored the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #603