Skip to content

Commit

Permalink
misc docs / terraform tweaks (#826)
Browse files Browse the repository at this point in the history
* bump time in MSFT api call example

* ignore some msft app listing changes

* reactions in example from slack API

* Update infra/modules/worklytics-connector-specs/main.tf

Co-authored-by: aperez-worklytics <[email protected]>

* syntax fix

---------

Co-authored-by: aperez-worklytics <[email protected]>
  • Loading branch information
eschultink and aperez-worklytics committed Dec 4, 2024
1 parent c35889c commit eacef4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions infra/modules/azuread-connection/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ resource "azuread_application" "connector" {
}
}
}

lifecycle {
# see https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/application#argument-reference
ignore_changes = [
# '(Optional) References application context information from a Service or Asset Management database.' --> have seen customers manage this outside our provided Terraform
service_management_reference,
# internal notes; have seen customers manage this outside our provided Terraform
notes
]
}
}

output "connector" {
Expand Down
4 changes: 2 additions & 2 deletions infra/modules/worklytics-connector-specs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ locals {
example_api_calls : [
"/v1.0/users",
"/v1.0/users/${var.example_msft_user_guid}/events",
"/v1.0/users/${var.example_msft_user_guid}/calendarView?startDateTime=2022-10-01T00:00:00Z&endDateTime=${time_static.deployment.id}",
"/v1.0/users/${var.example_msft_user_guid}/calendarView?startDateTime=${timeadd(time_static.deployment.id, "-4320h")}&endDateTime=${time_static.deployment.id}",
"/v1.0/users/${var.example_msft_user_guid}/mailboxSettings",
"/v1.0/groups",
"/v1.0/groups/{group-id}/members"
Expand Down Expand Up @@ -902,7 +902,7 @@ EOT
"/api/discovery.conversations.list?limit=10",
"/api/discovery.conversations.info?team={WORKSPACE_ID}&channel={CHANNEL_ID}",
"/api/discovery.conversations.recent?limit=10",
"/api/discovery.conversations.history?team={WORKSPACE_ID}&channel={CHANNEL_ID}&limit=10",
"/api/discovery.conversations.history?reactions=1&team={WORKSPACE_ID}&channel={CHANNEL_ID}&limit=10",
"/api/discovery.users.list?limit=5",
]
external_token_todo : <<EOT
Expand Down

0 comments on commit eacef4b

Please sign in to comment.