-
Notifications
You must be signed in to change notification settings - Fork 0
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
Review by records instead of subject_id
& form_id
"rv_row"
#137
base: dev
Are you sure you want to change the base?
Conversation
Merge branch 'jt-113-simplify_review_process' into jt-99-review_by_row # Conflicts: # R/fct_SQLite.R # man/db_save_review.Rd # tests/testthat/test-fct_SQLite.R # tests/testthat/test-mod_review_forms.R
Merge branch 'dev' into jt-99-review_by_row # Conflicts: # R/mod_review_forms.R # tests/testthat/test-mod_review_forms.R
Merge branch 'dev' into jt-99-review_by_row # Conflicts: # DESCRIPTION # inst/golem-config.yml
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.
Some minor remarks. One change confuses me a bit though, see comments
… be coerced to a data frame
…view in in a shinytest2 test
@jthompson-arcus I wanted to make some minor changes and then merge this branch, but I realized that bug #108 was reintroduced in this PR when testing interactively, and our tests did not capture it properly. I updated the tests so that they would now fail as expected, and have a look at it at a later moment. |
"export": { | ||
|
||
"test-review_save_error": false | ||
} |
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.
This test is failing but I changed the snapshot manually to what it should show, for now
# Within a form, only items with a changed review state are updated and | ||
# contain the new (current) time stamp. | ||
dplyr::filter(timestamp == review_records$timestamp[1]) | ||
if(isTRUE(all.equal(review_records_db, review_records, check.attributes = FALSE))){ |
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.
The issue is that this statement now fails: the data frame review_records
contains all possible item updates, but in the database only records with a changed review status will be updated. Thus, this statement does not always return TRUE
Still lead up to addressing #99. Review process needs to depend on records being reviewed, not the
review_row
it currently does.