Skip to content

Commit ef814a1

Browse files
authored
Merge pull request #167 from vimc/vimc-2929
VIMC-2929: Remove custom fields from main orderly table
2 parents 7b1f48c + 5b12ff9 commit ef814a1

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: orderly
22
Title: Lightweight Reproducible Reporting
3-
Version: 1.4.9
3+
Version: 1.4.10
44
Description: Order, create and store reports from R. By defining a
55
lightweight interface around the inputs and outputs of an
66
analysis, a lot of the repetitive work for reproducible research

R/db2.R

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
## namespace/module feature so that implementation details can be
99
## hidden away a bit further.
1010

11-
orderly_schema_version <- "1.2.39"
11+
orderly_schema_version <- "1.3.0"
1212
orderly_schema_table <- "orderly_schema"
1313
orderly_table_list <- "orderly_schema_tables"
1414

@@ -24,14 +24,6 @@ report_db_schema_read <- function(fields = NULL, dialect = "sqlite") {
2424

2525
d <- set_names(lapply(names(d), preprepare), names(d))
2626

27-
## Delete with VIMC-2929
28-
if (!is.null(fields)) {
29-
f <- set_names(Map(function(t, n) list(type = t, nullable = n),
30-
rep("character", nrow(fields)), !fields$required),
31-
fields$name)
32-
d[["report_version"]]$columns <- c(d[["report_version"]]$columns, f)
33-
}
34-
3527
prepare_table <- function(x) {
3628
prepare_col <- function(nm) {
3729
el <- x$columns[[nm]]
@@ -303,10 +295,7 @@ report_data_import <- function(con, dat_rds, config) {
303295
git_sha = dat_rds$git$sha %||% NA_character_,
304296
git_branch = dat_rds$git$branch %||% NA_character_,
305297
git_clean = git_clean)
306-
## TODO: Delete with VIMC-2929
307-
if (!is.null(dat_rds$meta$extra_fields)) {
308-
report_version <- cbind(report_version, dat_rds$meta$extra_fields)
309-
}
298+
310299
DBI::dbWriteTable(con, "report_version", report_version, append = TRUE)
311300

312301
if (!is.null(dat_rds$meta$extra_fields)) {

inst/database/schema.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ report_version:
3939
- git_sha: {type: TEXT, nullable: true}
4040
- git_branch: {type: TEXT, nullable: true}
4141
- git_clean: {type: BOOLEAN, nullable: true}
42-
# NOTE: fields listed in orderly_config.yml will also be
43-
# included here.
4442

4543
# Custom fields - all coerced into text.
4644
report_version_custom_fields:

0 commit comments

Comments
 (0)