-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Les autoreport fra db som tabell #192
Conversation
Fremdeles en del jobb som gjenstår...
Satser på at den kun skal lese tabellen. Ikke oppdatere tabellen.
Tabell som vises i autoreport-fanen
Jeg tror ikke den fungerer enda
1a4849b
to
3939ad6
Compare
Ble veldig mye støy under testing, blant annet
acebfd3
to
f6abf85
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #192 +/- ##
==========================================
- Coverage 92.64% 89.85% -2.79%
==========================================
Files 17 17
Lines 1794 1903 +109
==========================================
+ Hits 1662 1710 +48
- Misses 132 193 +61 ☔ View full report in Codecov by Sentry. |
ccc41ce
to
06e0101
Compare
dplyr::mutate(dplyr::across(dplyr::everything(), as.character)) | ||
for (element in config) { | ||
for (email in element$email) { | ||
dataframe <- dataframe |> tibble::add_row( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bytt til dplyr::bind_row
?
rd <- rd[!ind] | ||
writeAutoReportData(config = rd) | ||
} else if (target == "db") { | ||
query <- paste0('DELETE FROM autoreport WHERE id = "', autoReportId, '";') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hardkodet tabell-navn?
writeAutoReportData(config = rd) | ||
} else if (target == "db") { | ||
query <- paste0('DELETE FROM autoreport WHERE id = "', autoReportId, '";') | ||
dbConnect <- rapOpenDbConnection("autoreport") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardkodet verdi
Har fått den til å fungere sammen med nordicscir og ablanor.