This pull request introduces several changes to the app/backend/app.py, app/enrichment/app.py, and infrastructure files to enhance logging, add new configuration variables, and update dependencies. The changes are grouped into improvements to logging, configuration updates, and dependency updates.
Improvements to logging:
Added multiple debug log statements in the poll_queue function to provide more detailed information about the processing stages and potential errors. (app/enrichment/app.py) [1][2][3]
Configuration updates:
Added AZURE_SEARCH_AUDIENCE to environment variables and updated its usage in StatusResponse and index_sections functions to include the new audience parameter. (app/backend/app.py, app/enrichment/app.py) [1][2][3][4]
Updated Terraform configuration to include AZURE_SEARCH_AUDIENCE and modified the module "enrichmentApp" and module "webapp" to use the new variable. (infra/main.tf) [1][2]
Added a new variable azure_search_scope in Terraform variables file. (infra/variables.tf)
Dependency updates:
Updated azure.search.documents from version 11.4.0b11 to 11.5.1 in the requirements.txt file to ensure compatibility with the new audience parameter. (app/enrichment/requirements.txt)…louds
This pull request introduces several changes to the
app/backend/app.py
,app/enrichment/app.py
, and infrastructure files to enhance logging, add new configuration variables, and update dependencies. The changes are grouped into improvements to logging, configuration updates, and dependency updates.Improvements to logging:
poll_queue
function to provide more detailed information about the processing stages and potential errors. (app/enrichment/app.py
) [1] [2] [3]Configuration updates:
AZURE_SEARCH_AUDIENCE
to environment variables and updated its usage inStatusResponse
andindex_sections
functions to include the new audience parameter. (app/backend/app.py
,app/enrichment/app.py
) [1] [2] [3] [4]AZURE_SEARCH_AUDIENCE
and modified themodule "enrichmentApp"
andmodule "webapp"
to use the new variable. (infra/main.tf
) [1] [2]azure_search_scope
in Terraform variables file. (infra/variables.tf
)Dependency updates:
azure.search.documents
from version11.4.0b11
to11.5.1
in therequirements.txt
file to ensure compatibility with the new audience parameter. (app/enrichment/requirements.txt
)…louds