Skip to content

Bug fixes for birthdate changes and acquisition date selection#361

Merged
spamhurts merged 15 commits intodevelopfrom
fb_newAnimalWizard
Apr 23, 2021
Merged

Bug fixes for birthdate changes and acquisition date selection#361
spamhurts merged 15 commits intodevelopfrom
fb_newAnimalWizard

Conversation

@spamhurts
Copy link
Copy Markdown
Collaborator

Rationale

Fixed error with reloading lists of sires and dams when birthdate changes

Related Pull Requests

none

Changes

  1. don't allow future acquisition dates
  2. fixed parameter passing bug in HandleBirthDateChange
  3. code clean up
  4. updated jest tests
  5. updated snapshots

spamhurts and others added 14 commits March 5, 2021 16:06
2. Closed AcqCodes that haven't been used in the past five years (in tsv file)
3. Added missing acquisition codes to tsv file
4. Filtered acq code 97 from fetchAcquisitionTypes API
5. Removed the join on the v_demographics view from arrivals and departures ETL source queries - if animal is removed from the colony
     before the ETL runs, then the deletion will be missed
6. Started refactoring retrieval of dams and sires to use a birthdate parameter
…dOptionParm

 parameter to account for differences in how potential sires and dams are handled
 depending on whether a birth or other acquisition is being recorded
2. fetchLocations.js API updated to filter based on acquisiton codes for offsite acquisitions
3. fetchPotentialDams.js and fetchPotentialSires.js APIs updated to handle SQL parameters
4. Changes to AccountPanel.jsx to allow non-birth acquisitions to have null accounts
5. Changes to AcquisitionPanel.js to reload location codes when acquisition type changes
6. Changes made to DemographicsPanel.js to reload dams and sires after birth date is entered
7. Added new constant offSiteAcqCodes to track acquisition of animals not being added to the colony
8. Updated request API to handle parameters
9. UpdateAnimalData.js to allow null animal accounts
10. Updated ANPRC_EHRValidator.java to permit null accounts in certain conditions
11. Updated Jest tests
2. changed how ehr_lookups.source is being populated - went from TSV
   file to ETL
3. added source query for source locations -
   labkey_etl.v_sourceLocations
4. added location description to lookup list
5. added sourceLocation to the updateAnimalData.js API
6. added sourceLocation to SummaryPanel.jsx - also tweaked hover text
   locations
7. added sourceLocation to default state - NewAnimalState.js
8. added sourceLocation jest tests, test data, mock API
9. updated snapshots
10. many lint fixes including files outside the scope of this feature
    branch
…g in HandleBirthDateChange 3. code clean up 4. updated jest tests 5. updated snapshots
Copy link
Copy Markdown
Contributor

@srouseTxbiomed srouseTxbiomed left a comment

Choose a reason for hiding this comment

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

Looks good

@spamhurts spamhurts merged commit ede2c47 into develop Apr 23, 2021
@spamhurts spamhurts deleted the fb_newAnimalWizard branch April 23, 2021 22:44
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.

2 participants