-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1313 from bigomics/dev-log-report-downloads
feat: log report downloads
- Loading branch information
Showing
6 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## | ||
## This file is part of the Omics Playground project. | ||
## Copyright (c) 2018-2024 BigOmics Analytics SA. All rights reserved. | ||
## | ||
|
||
|
||
record_report_download <- function(reportName) { | ||
if (reportName %in% names(REPORT_DOWNLOAD_LOGGER$log)) { | ||
REPORT_DOWNLOAD_LOGGER$log[[reportName]] <- REPORT_DOWNLOAD_LOGGER$log[[reportName]] + 1 | ||
} else { | ||
REPORT_DOWNLOAD_LOGGER$log[[reportName]] <- 1 | ||
} | ||
# Convert the log to a string format | ||
REPORT_DOWNLOAD_LOGGERStr <- paste(names(REPORT_DOWNLOAD_LOGGER$log), REPORT_DOWNLOAD_LOGGER$log, sep = " = ", collapse = "; ") | ||
REPORT_DOWNLOAD_LOGGER$str <- REPORT_DOWNLOAD_LOGGERStr # Update the log with the string representation | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters