Skip to content

BYOC_ID: 46016 - Refactor SPARRA#1336

Open
Jennit07 wants to merge 10 commits into
developmentfrom
refactor-sparra
Open

BYOC_ID: 46016 - Refactor SPARRA#1336
Jennit07 wants to merge 10 commits into
developmentfrom
refactor-sparra

Conversation

@Jennit07

@Jennit07 Jennit07 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Split out content from #1321

SPARRA refactoring - risk date must be calculated from 1st April for the financial year. This is a projection score. e.g. 01/04/2025 would be included in the 2025/26 financial year.

Comment thread R/get_sparra_hhg_paths.R
Comment on lines +64 to +76
get_sparra_data <- function(year,
denodo_connect = get_denodo_connection(BYOC_MODE = BYOC_MODE),
BYOC_MODE) {
if (isTRUE(BYOC_MODE)) {
extract_sparra <- dplyr::tbl(
denodo_connect,
dbplyr::in_schema("sdl", "sdl_sparra_source")
) %>%
## TODO: Check filters/sparra risk year ##
collect()
} else {
extract_sparra <- read_file(get_sparra_path(year))
}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Discussed with LB: Should we always read from Denodo if BYOC_MODE is TRUE/FALSE

@Jennit07

Copy link
Copy Markdown
Collaborator Author

Summary:

TODO:

  • re-test data from changes in UAT

PR is ready for checking/PHS testing

@Jennit07 Jennit07 added the On hold Waiting for something / someone outside of our control label Jun 10, 2026
@Jennit07 Jennit07 marked this pull request as ready for review June 10, 2026 15:44
@lizihao-anu lizihao-anu self-requested a review June 16, 2026 09:01
@Jennit07 Jennit07 changed the title Refactor SPARRA BYOC_ID: 46016 - Refactor SPARRA Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant