Skip to content
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

Merged
merged 30 commits into from
Dec 18, 2024
Merged

Les autoreport fra db som tabell #192

merged 30 commits into from
Dec 18, 2024

Conversation

arnfinn
Copy link
Contributor

@arnfinn arnfinn commented Nov 29, 2024

Har fått den til å fungere sammen med nordicscir og ablanor.

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
@arnfinn arnfinn marked this pull request as ready for review December 12, 2024 14:44
@arnfinn arnfinn requested a review from kevinthon December 12, 2024 14:46
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 68.96552% with 63 lines in your changes missing coverage. Please review.

Project coverage is 89.85%. Comparing base (9c9100c) to head (4568c9d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
R/autoReport.R 67.41% 58 Missing ⚠️
R/moduleAutoReport.R 80.00% 5 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@arnfinn arnfinn linked an issue Dec 18, 2024 that may be closed by this pull request
dplyr::mutate(dplyr::across(dplyr::everything(), as.character))
for (element in config) {
for (email in element$email) {
dataframe <- dataframe |> tibble::add_row(
Copy link
Contributor Author

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, '";')
Copy link
Contributor Author

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")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hardkodet verdi

@arnfinn arnfinn merged commit 90ae621 into main Dec 18, 2024
8 of 10 checks passed
@arnfinn arnfinn deleted the autoreport_db branch December 18, 2024 12:07
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.

autoreport: finn db-struktur
1 participant