Skip to content

Propagate subrequest stats#257

Open
drio18 wants to merge 4 commits intomasterfrom
drr_embed_stats
Open

Propagate subrequest stats#257
drio18 wants to merge 4 commits intomasterfrom
drr_embed_stats

Conversation

@drio18
Copy link
Copy Markdown
Contributor

@drio18 drio18 commented May 17, 2023

Here, we make a small update to functions involved in request.embed() to propagate the parent requests stats to the subrequest and do some minor refactoring.

Hit this bug when refactoring spreadsheet download code in cgap-portal previously written by Alex B. (see his comments here).

Note: wrapped propagation of the new attribute in a try/except clause to be conservative here given how central the function involved is.

Copy link
Copy Markdown
Member

@willronchetti willronchetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So long as this passes tests/deploys the change should be fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants