Skip to content

Conversation

@christinerogers
Copy link
Contributor

@christinerogers christinerogers commented Nov 1, 2016

This PR cleans up all instances of dates using addGroupRule, and registerRule() deprecated function calls in the codebase.

Updated sample Radiology Review instrument in docs/ :

  • replaced addGroupRule() with addRule() since dates in LorisForm are now one element (string) not a group of elements (array)
  • removed registerRule() call (now deprecated in LorisForm)

NDB_Reliability update:

  • removed registerRule() call (now deprecated in LorisForm)

@christinerogers christinerogers added Category: Bug PR or issue that aims to report or fix a bug Category: Cleanup PR or issue introducing/requiring at least one clean-up operation Release: Breaking changes PR that contains changes that might impact the code or accepted practices of active projects labels Nov 1, 2016
@christinerogers christinerogers added this to the 17.0 milestone Nov 1, 2016
$this->form->addGroupRule('Date_taken', 'Date of Administration is required', 'required');
$this->form->addRule('Date_taken', 'Date of Administration is required', 'required');

$this->form->registerRule('checkdate', 'callback', '_checkDate');
Copy link
Contributor

Choose a reason for hiding this comment

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

this function is deprecated, just remove the call

@jstirling91 jstirling91 added State: Needs work PR awaiting additional work by the author to proceed and removed Request Code Review labels Nov 1, 2016
@christinerogers christinerogers added Request Code Review and removed State: Needs work PR awaiting additional work by the author to proceed labels Nov 2, 2016
@christinerogers christinerogers changed the title Update to Sample Instrument : LorisForm Dates LorisForm updates: Dates (addGroupRule) and deprecated registerRule() Nov 2, 2016
@driusan driusan dismissed jstirling91’s stale review November 2, 2016 14:16

Jordan says these changes have been done

Copy link
Collaborator

@driusan driusan left a comment

Choose a reason for hiding this comment

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

Jordan says "this is fine"

@driusan driusan merged commit ea945e4 into aces:17.0-dev Nov 2, 2016
@driusan driusan removed Release: Breaking changes PR that contains changes that might impact the code or accepted practices of active projects Request Code Review labels Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category: Bug PR or issue that aims to report or fix a bug Category: Cleanup PR or issue introducing/requiring at least one clean-up operation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants