-
Notifications
You must be signed in to change notification settings - Fork 9
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
SIMSBIOHUB-647: Create Observations Page #1444
base: dev
Are you sure you want to change the base?
Conversation
Openshift URLs for the PR Deployment: |
app/src/features/surveys/observations/create/CreateObservationPage.tsx
Outdated
Show resolved
Hide resolved
I pushed up a few misc changes. Mostly just some component cleanup and addressing a few react dependency complaints, etc. |
a9ff7b5
to
def7139
Compare
wip wip: create location and date sections on form wip: style subcount form wip: adding measurements to subcounts add dual autocomplete subcount form subcount table on create observation page fix measurement search show measurement options in subcount table on create observation page wip: formik validation add subcount sign placeholder to create request wip: environments incorrectly formatted in handlesubmit fix incorrect key fix environments on create observations page fix measurement interfaces SIMSBIOHUB-659: Add Pagination to System Alerts on Admin Page (#1459) Add Pagination to System Alerts on Admin Page --------- Co-authored-by: Nick Phura <[email protected]> Update CSV Error Import Dialog Styling (#1456) - update csv import error dialog - replace failure snackbar & add frontend pagination to csv import errors BugFix: Fix Type for Capture Attachments (#1460) - modifying critter index file --------- Co-authored-by: Macgregor Aubertin-Young <[email protected]> Co-authored-by: Macgregor Aubertin-Young <[email protected]> BugFix: Method Attributes SQL (#1462) - fix sql Added DualAutocompleteUnitField.tsx to help reduce the size of the DualAutocompleteField.tsx. Renamed some of the dual autocomplete field props, just to make them more consistent/predictable. Fixed missing props in create/edit technique vantages (missing category data type prop). Add formik snackbar error component to observation form. Addressed a few react missing dependency warnings. Update missed jsdoc comments. Update missed jsdoc comments 2. WIP: Add create observation sampling fields. Working sampling fields. Enhancements to sampling fields
e0b3dde
to
4683f3f
Compare
- WIP: observation db migrations. - Add database-models.
Fix subcount types. Fix existing unit tests.
…nto SIMSBIOHUB-647b
if (pagination.sort && pagination.order) { | ||
if (pagination.sort === 'subcount') { | ||
const knex = getKnex(); | ||
query.orderByRaw(knex.raw(`(subcount->>?)::numeric ${pagination.order}`, [pagination.sort])); |
Check failure
Code scanning / CodeQL
Database query built from user-controlled sources High
user-provided value
api/src/repositories/observation-repository/observation-repository.ts
Dismissed
Show dismissed
Hide dismissed
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.
question: Do you think we should name this directory database-units
or something like database-types / database-enums
. I see in the database there is an additional type / enum for alert_severity
would this also be a database-unit
?
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.
Open to any name for the folder. Can't remember how I landed on unit
. Probably just trying to pick something generic that could cover database enums (but also any other enum-like concept, if there are others?), and which aren't specifically table models.
|
Links to Jira Tickets
Description of Changes
Testing Notes
TODO