Skip to content

Commit

Permalink
Added urls parameterization
Browse files Browse the repository at this point in the history
  • Loading branch information
fazpiazu committed Dec 3, 2024
1 parent 32d93e7 commit 0a3cea4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@ class ConfigParserService(implicit region: Regions) extends Logging {
""
}

// TODO - Remove hardcoded URLs and replace with a configuration
fileUrl.replace(".sql", s".$urlType").replace("s3://factorial-metabolic/data-lake-confs/production", "https://github.com/factorialco/data-lake/tree/main")
val mappings_bucket = System.getProperty("dp.mappings_bucket").replace("/mappings", "")
val github_repo_url = System.getProperty("dp.github_repo_url")

fileUrl.replace(".sql", s".$urlType").replace(mappings_bucket, github_repo_url)
}

private def parseOwner(config: HoconConfig): String = {
Expand Down

0 comments on commit 0a3cea4

Please sign in to comment.