aodn / nrmn-application

A web application for collation, validation, and storage of all data obtained during surveys conducted by the NRMN
GNU General Public License v3.0
4 stars 3 forks source link

Improve Species Correction #1216

Closed nspool closed 1 year ago

nspool commented 1 year ago

This is a significant rework of the Species Correction feature.

Workflow is broken up into 3 steps: Search, Correcting and Corrected, displayed as tabs at the top of the screen.

Start from the Search page on the first tab. Choose the species to correct using the filters. Click the row of the species to correct within that filter range to move to the second tab.

The second tab will display all sites matching the filtered region for this species, grouped by location. Click the x to remove a specific site or location from the correction. Choose the new species name from the dropdown at the top. And click Submit Correction.

On a successful correction the job view will be displayed as the third time. This lists the correction information including all the surveys updated. Either click the Return to Search button or the Search tab to correct another species.

utas-raymondng commented 1 year ago
  1. Goto Species Correction page,
  2. Type paste "Micromelo undatus" into the Species box, keep everything un-touch and then click search
  3. The backend keep looping with messages

Hibernate: SELECT FROM nrmn.observable_item_ref oi LEFT JOIN nrmn.lengthweight_ref lw ON (lw.observable_item_id = oi.observable_item_id) WHERE (? = TRUE OR oi.superseded_by IS NULL) AND observable_item_name ILIKE '%' || ? || '%' ORDER BY lower(observable_item_name) DESC limit ? Hibernate: SELECT FROM nrmn.observable_item_ref oi LEFT JOIN nrmn.lengthweight_ref lw ON (lw.observable_item_id = oi.observable_item_id) WHERE (? = TRUE OR oi.superseded_by IS NULL) AND observable_item_name ILIKE '%' || ? || '%' ORDER BY lower(observable_itemname) DESC limit ? Hibernate: select secuser0.id as id1_240, secuser0_.email_address as email_ad2_240, secuser0_.expires as expires3_240, secuser0_.full_name as full_nam4_240, secuser0_.hashed_password as hashed_p5_240, secuser0_.status as status6_240, secuser0_.version as version7_240, roles1_.sec_user_id as sec_user1_261, secrole2_.name as sec_role2_261, secrole2_.name as name1_232, secrole2_.version as version2_232 from nrmn.secuser secuser0 left outer join nrmn.sec_userroles roles1 on secuser0.id=roles1.sec_user_id left outer join nrmn.secrole secrole2 on roles1_.sec_roleid=secrole2.name where secuser0.id=? Hibernate: select secuser0.id as id1_240, secuser0_.email_address as email_ad2_240, secuser0_.expires as expires3_240, secuser0_.full_name as full_nam4_240, secuser0_.hashed_password as hashed_p5_240, secuser0_.status as status6_240, secuser0_.version as version7_240, roles1_.sec_user_id as sec_user1_261, secrole2_.name as sec_role2_261, secrole2_.name as name1_232, secrole2_.version as version2_232 from nrmn.secuser secuser0 left outer join nrmn.sec_userroles roles1 on secuser0.id=roles1.sec_user_id left outer join nrmn.secrole secrole2 on roles1_.sec_roleid=secrole2.name where secuser0_.id=? Hibernate: SELECT FROM nrmn.observable_item_ref oi LEFT JOIN nrmn.lengthweight_ref lw ON (lw.observable_item_id = oi.observable_item_id) WHERE (? = TRUE OR oi.superseded_by IS NULL) AND observable_item_name ILIKE '%' || ? || '%' ORDER BY lower(observable_item_name) DESC limit ? Hibernate: SELECT FROM nrmn.observable_item_ref oi LEFT JOIN nrmn.lengthweight_ref lw ON (lw.observable_item_id = oi.observable_item_id) WHERE (? = TRUE OR oi.superseded_by IS NULL) AND observable_item_name ILIKE '%' || ? || '%' ORDER BY lower(observable_item_name) DESC limit ?

  1. Then choose Aitutaki in Area/State
  2. Click search again and no result return and keep searching
nspool commented 1 year ago

@utas-raymondng should be fixed now.

utas-raymondng commented 1 year ago
  1. OK after you enter the above info on the first screen , "Micromelo undatus" and "Aitutaki", then click the "Aitutaki" text box again, you see the drop-down list value seems not correct.
  2. If you continue to click search and select the "Micromelo undatus" below and go to next screen
  3. Type something that exist in the drop down (the correct to)
  4. Then click on any area outside of the text box, the text gone and cannot click submit
  5. If you select it from the drop down then you cannot un-select and choose other value.
nspool commented 1 year ago

CustomInputSearch component doesn't appear to work correctly in FireFox.

nspool commented 1 year ago

@utas-raymondng fixed autocomplete for FireFox. Ready for review again. Stack available at http://nrmn-aodnstack-nsp.dev.aodn.org.au/data/species