Skip to content
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

Improve display of assertions on records pages #372

Closed
5 of 7 tasks
nickdos opened this issue May 25, 2021 · 25 comments
Closed
5 of 7 tasks

Improve display of assertions on records pages #372

nickdos opened this issue May 25, 2021 · 25 comments
Assignees
Labels
biocache-hub Issues related to Biocache Hub bug Something isn't working documentation Improvements or additions to documentation

Comments

@nickdos
Copy link

nickdos commented May 25, 2021

Fixes required in biocache-hub:

  • add i18n codes for all assertions to so lowercase values are shown
  • remove the links and icons in ToC to missing and unchecked assertions
  • Change code to use new sheet in Google sheet for the help popups (via config var dataQualityChecksUrl)
  • Ensure help popups are working and at least showing a description and the raw code (uppercase version)
  • ~~Add hide/show JS option and hide all assertions by default, as list is very long and not useful to most users. ~~

Fixes required in biocache-service:

  • sort alphabetically within each section (warnings, passed)
  • fix assertions appearing in both warnings and passed sections (duplicates)
@nickdos nickdos added bug Something isn't working documentation Improvements or additions to documentation labels May 25, 2021
@javier-molina javier-molina added the biocache-hub Issues related to Biocache Hub label May 25, 2021
djtfmartin added a commit to AtlasOfLivingAustralia/biocache-service that referenced this issue May 25, 2021
@djtfmartin
Copy link
Member

thanks to the i18n work @vjrj did, we can actually override i18n properties by putting updated messages_en.properties in any of the following paths:

        messageSource.setBasenames(
                "file:https:///var/opt/atlas/i18n/downloads-plugin/messages",
                "file:https:///opt/atlas/i18n/downloads-plugin/messages",
                "file:https:///var/opt/atlas/i18n/biocache-hubs/messages",
                "file:https:///opt/atlas/i18n/biocache-hubs/messages",
                "WEB-INF/grails-app/i18n/messages",
                "classpath:messages",
                "${application.config.biocache.baseUrl}/facets/i18n"
        )

@djtfmartin
Copy link
Member

djtfmartin commented May 25, 2021

Fixed the majority this in 3.0.6 of biocache-service @nickdos i was able to change the i18n of the assertions without making any changes to ala-hub/biocache-hub .
I’ve fixed the case of all the assertion names.I made some changes to allow counts for:

  • missing fields
  • unchecked tests - using the related terms field on the OccurrenceIssue and ALAOccurrenceIssue.

I don't think we need to tackle any changes in biocache-hubs for pipelines v1.

@djtfmartin
Copy link
Member

i think this has been verified by @peggynewman - moving to Done

@javier-molina
Copy link

? Help shows still errors to I think we need to keep this open while the spreadsheet placeholders are updated. I think we need to confirm the expand collapse requirement to hide all assertions.

@brucehyslop
Copy link

I've updated all the assertions codes to map to previous names where available and added the new assertions to the google sheet. biocache-test is configured to use the second sheet in the "Data Quality Checks with Pipelines", the first sheet is used by prod with the legacy assertion codes.

Note: the assertions names displayed as labels are still configured with the legacy names because biocache-hub uses the assertions name to generate the wiki link (eg. https://github.com/AtlasOfLivingAustralia/ala-dataquality/wiki/{assertion.name}). The wiki pages need to be renamed.

@javier-molina
Copy link

@brucehyslop I was under the impression help, even if it was only placeholders was going to be fixed. Is that fix still not in this release? see image below

Screen Shot 2021-05-31 at 3 17 24 pm

Also related to the screenshot above, we still have both "Coordinate precision invalid" and "Coordinate precision not valid" probably one is ALA and the other GBIF. I was under the impression we are not checking this so the assertion didn't have to be there otherwise it would be passed for all records regardless. Happy to be corrected.

@brucehyslop
Copy link

@javier-molina what was this image captured?

There was a commit on Mon 26th May that resolved the duplicate "Coordinate precision invalid" assertion. This was merged on Tue 27th and should have been deployed shortly afterwards.

As for the help tooltips, I tested all of them last week and didn't find any that where missing. My only thought is that the cache of the google sheet that contains the data may not have been refreshed on every ala-hub node and the load balancer was directing me to an updated node when I test.
Maybe we need to do a restart of all nodes to ensure the caches are flushed.

Screen Shot 2021-06-02 at 11 52 41 am

@javier-molina
Copy link

Hi @brucehyslop

I just tested now. Help is showing properly now.

Duplicate precision invalid/not valid still showing though.

Screen Shot 2021-06-02 at 2 42 38 pm

@brucehyslop
Copy link

@javier-molina I can't seem replicate this. Can you provide the occurrence record id

@javier-molina
Copy link

@javier-molina
Copy link

And "Missing coordinate precision " has to go too please.

brucehyslop added a commit to AtlasOfLivingAustralia/biocache-service that referenced this issue Jun 10, 2021
@brucehyslop
Copy link

Removing the MISSING_COORDINATEPRECISION ALAOccurrenceIssue has re-indexed all the Assertion codes. Which requires an update to the "Data Quality Checks" google sheet.

The update has been made however the until the deployment of the latest biocache-service snapshot release and flushing of the biocache-hubs caches there may be an issue with the tooltips being out of sync with the assertion. Note: this will only effect ALAOccurrenceIssues

brucehyslop added a commit to AtlasOfLivingAustralia/biocache-service that referenced this issue Jun 11, 2021
…LIKELY from ALAOccurrenceIssue (duplicate of GBIF OccurrenceIssue)
@brucehyslop
Copy link

Also removed duplicate assertion GEOREFERENCED_DATE_UNLIKELY that was defined in both the GBIF OccurrenceIssue and ALAOccurrenceIssue

@alexhuang091
Copy link

brucehyslop added a commit to AtlasOfLivingAustralia/biocache-service that referenced this issue Jul 2, 2021
…COORDINATE_PRECISION_UNCERTAINTY_MISMATCH assertion
@brucehyslop
Copy link

changed label for the assertion COORDINATE_PRECISION_UNCERTAINTY_MISMATCH previously use the label of the deprecated assertion coordinatePrecisionMismatch

brucehyslop added a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Jul 8, 2021
…nes-#372-show-hide-passed-assertions

AtlasOfLivingAustralia/la-pipelines#372 hide passed assertions by default
brucehyslop added a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Jul 9, 2021
@RobinaSanderson
Copy link

RobinaSanderson commented Jul 14, 2021

Tested by

  1. search for all records
  2. select optio to display records with spatial issues
  3. view a record in the search results
  4. scroll to the Data quality checks
  5. Click on the Info icon next to the data quality issues found

Currently displays an error
Error: info not found
image

@brucehyslop
Copy link

The cause broken tooltips is biocache-hub is returning the old assertions codes (https://biocache-dq-test.ala.org.au/dataQuality/allCodes) however the assertions codes are retrieved from biocache-service (https://nci3-biocache-service.ala.org.au/ws/assertions/codes) which has the correct codes.

Possible a cache issue however the cache should not contain pre-pipeline assertion codes, a rebuild and deployment to NCI3 should not have maintained the cache.

@brucehyslop
Copy link

Has there been a change to the deployment or config? This was working last week (Friday).

@brucehyslop
Copy link

Found the issue.
The https://biocache-dq-test.ala.org.au/dataQuality/allCodes uses the Data Quality checks google sheet. The ansible config was was not pushed to the repo and was clobbered with the last deployment to test.

https://github.com/AtlasOfLivingAustralia/ansible-inventories/commit/f7b2641122e08b27aa107b56cf4e8b58af3f8659

@RobinaSanderson
Copy link

RobinaSanderson commented Jul 17, 2021

There was an issue where all assertions appeared to have wiki links whether there was actual pages created for the assertions with that name or not. This meant, if a page hadn't been created, any user clicking on the link would be presented with a wiki creation page and asked to create their own.

To fix this I edited the data quality checks google doc spreadsheet on the "Data Quality Checks - Pipelines" tab to remove the text "wiki" in the wiki link column for all those assertions that don't yet have a page. I then refreshed the cache at https://biocache-dq-test.ala.org.au/admin

This should have resulted in the info for assertions with a page displaying a link, and the info for pages without links not displaying a link. See this image from Prod.
image

Actual result is an error message on all links whether a page exists or not. I will recheck on Monday morning, but it looks like something else is broken.
image

@javier-molina
Copy link

@nickdos I remember you fixed the inventory for AVH in #455 that had the same issue.

Could you please check if the same issue is going on in test (biocache-dq-test)?

@nickdos
Copy link
Author

nickdos commented Jul 20, 2021

@javier-molina Yes, biocache-dq-test is missing the added param that was also missing in AVH. I'll check ansible and make sure its saved there before fixing the dq-test site.

@nickdos
Copy link
Author

nickdos commented Jul 20, 2021

Fixed in dq-test:

image

@RobinaSanderson
Copy link

Tested by:

  1. opening https://biocache-dq-test.ala.org.au/occurrences/d4d76e97-4eaa-424b-9e8e-e57937454b32
  2. Opening Show/Hide passed properties
  3. clicking on the info symbol next to the check

Expected results

  1. Where a github wiki page doesn't exist no link will be shown
  2. Where a wiki page does exist a link will show and clicking it will take you to the page
  3. Where a n assertion has been renamed the link will be to the wiki page for the new name

Actual results

  1. is OK - example is MULTIMEDIA_DATE_INVALID
  2. Assertions in biocache pre pipelines with pages display links. Assertions new in pipelines don't display links even where they exist example is CONTINENT_COUNTRY_MISMATCH
  3. Assertions with new names are linked to the old assertion pages, even is a new page exists - BADLY_FORMED_BASIS_OF_RECORD

Wondering if the code is referencing the right worksheet in the DataQuality Checks google doc? The correct sheet with all new assertion names is https://docs.google.com/spreadsheets/d/1tAfQUsIzUNfa6Tn5Ezq2cfbMVB0QeXIyp7N0We2lBAY/edit?hl=en&hl=en&hl=en#gid=820855861 Data Quality Checks - Pipelines

@RobinaSanderson
Copy link

RobinaSanderson commented Jul 20, 2021

Retested
I can confirm results are now as expected.
@javier-molina I think this can be moved to done.

alexhuang091 added a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Sep 7, 2021
* #379 Records from DigiVol don't show "Flag an issue" button

* updated version to 3.0.3-SNAPSHOT for next iteration

* Feature/duplicate record (#429)

Add duplicate assertion type to flag an issue

* enhanced duplicate record flag (#431)

* release 3.0.3 (#432)

* version to 3.0.4-SNAPSHOT

* #434 fix duplicate record facet labels

Code formatting

* Feature my annotation (#435)

* allow user to subscribe to 'my annotation' alert when flagging an issue

* Fix jquery.i18n load errors

* $.param() doesn't format object correctly (#438)

* Release/3.0.4 (#442)

* 3.0.5-SNAPSHOT

* #443 fixes for flash.message exposing apiKey

* Revert "Fix jquery.i18n load errors"

* Translation of Map legend button and pagination next and previous button

* release 3.0.5 (#449)

* 3.0.6-SNAPSHOT

* AtlasOfLivingAustralia/la-pipelines#372 hide passed assertions by default

* i18n en differentiate between duplicate_status and duplicate_type

* Bugfix/la pipelines 445 dq profile category dialog display (#456)

* AtlasOfLivingAustralia/la-pipelines#445 process array of filters rather then combined filter

* AtlasOfLivingAustralia/la-pipelines#445 increase width of DQ profile modal

* AtlasOfLivingAustralia/la-pipelines#372 removed test for data quality assertion code `1`

* Fix for AtlasOfLivingAustralia/la-pipelines/issues/467

Fix for incorrect sort param for subsequent (paginated) calls for the species list column in EYA.

* update biocache-hubs since backend now returns 404 when no record found.

* Update README.md

* fixed an issue in reading local json files

* border-radius for active filters (#462)

* wrap taxon name with ""

* removed log code

* clean log

* AtlasOfLivingAustralia/la-pipelines#419 (#465)

pass filters and descriptions as JSON array
standardise display of filters for DQ profile and category

* Release/3.0.6 (#468)

* 3.0.7-SNAPSHOT

* no strip . in taxon (#469)

* handle the case where taxa query returns empty JSON object (404) (#472)

* make 'disableAll' and 'expand' configurable (#473)

* make 'disableAll' and 'expand' configurable

* when 'quality profile' is changed, update drop-down immediately (#474)

* use 'fa' for font-awesome 4.x

* Issue 470 refine state selection (#476)

advanced search UI refine: state list be populated per country selected

* style changes to admin page for dq admin link (#477)

* fixed a type in flag an issue error message (#478)

* added sound file metadata and sound file link to record detail page. (#479)

* explicitly set 'user_facets' as String in cookie (#480)

* updated css style for #occurrenceSounds

* updated message.properties

* location display logic updated (#485)

* Avh issue120 avh styling (#487)

* remove some inline styles

* updated left side panel dq filters display

* fix the 'view excluded records' on left side panel doesn't work issue.

* fix the 'filter details' not shown on left side panel issue

* style change, left side panel dq spin

* Issue 334 update ehcache (#488)

updated to ehcache 3.0

* updated getJsonElements to handle JSON error better (#490)

* removed persistence settings

* release 3.0.7

Co-authored-by: Rita Chen <[email protected]>
Co-authored-by: Nick dos Remedios <[email protected]>
Co-authored-by: vjrj <[email protected]>
Co-authored-by: alice.ainsa <[email protected]>
Co-authored-by: Dave Martin <[email protected]>
Co-authored-by: Bruce Hyslop <[email protected]>
Co-authored-by: adam-collins <[email protected]>
alexhuang091 added a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Sep 8, 2021
* #379 Records from DigiVol don't show "Flag an issue" button

* updated version to 3.0.3-SNAPSHOT for next iteration

* Feature/duplicate record (#429)

Add duplicate assertion type to flag an issue

* enhanced duplicate record flag (#431)

* release 3.0.3 (#432)

* version to 3.0.4-SNAPSHOT

* #434 fix duplicate record facet labels

Code formatting

* Feature my annotation (#435)

* allow user to subscribe to 'my annotation' alert when flagging an issue

* Fix jquery.i18n load errors

* $.param() doesn't format object correctly (#438)

* Release/3.0.4 (#442)

* 3.0.5-SNAPSHOT

* #443 fixes for flash.message exposing apiKey

* Revert "Fix jquery.i18n load errors"

* Translation of Map legend button and pagination next and previous button

* release 3.0.5 (#449)

* 3.0.6-SNAPSHOT

* AtlasOfLivingAustralia/la-pipelines#372 hide passed assertions by default

* i18n en differentiate between duplicate_status and duplicate_type

* Bugfix/la pipelines 445 dq profile category dialog display (#456)

* AtlasOfLivingAustralia/la-pipelines#445 process array of filters rather then combined filter

* AtlasOfLivingAustralia/la-pipelines#445 increase width of DQ profile modal

* AtlasOfLivingAustralia/la-pipelines#372 removed test for data quality assertion code `1`

* Fix for AtlasOfLivingAustralia/la-pipelines/issues/467

Fix for incorrect sort param for subsequent (paginated) calls for the species list column in EYA.

* update biocache-hubs since backend now returns 404 when no record found.

* Update README.md

* fixed an issue in reading local json files

* border-radius for active filters (#462)

* wrap taxon name with ""

* removed log code

* clean log

* AtlasOfLivingAustralia/la-pipelines#419 (#465)

pass filters and descriptions as JSON array
standardise display of filters for DQ profile and category

* Release/3.0.6 (#468)

* 3.0.7-SNAPSHOT

* no strip . in taxon (#469)

* handle the case where taxa query returns empty JSON object (404) (#472)

* make 'disableAll' and 'expand' configurable (#473)

* make 'disableAll' and 'expand' configurable

* when 'quality profile' is changed, update drop-down immediately (#474)

* use 'fa' for font-awesome 4.x

* Issue 470 refine state selection (#476)

advanced search UI refine: state list be populated per country selected

* style changes to admin page for dq admin link (#477)

* fixed a type in flag an issue error message (#478)

* added sound file metadata and sound file link to record detail page. (#479)

* explicitly set 'user_facets' as String in cookie (#480)

* updated css style for #occurrenceSounds

* updated message.properties

* location display logic updated (#485)

* Avh issue120 avh styling (#487)

* remove some inline styles

* updated left side panel dq filters display

* fix the 'view excluded records' on left side panel doesn't work issue.

* fix the 'filter details' not shown on left side panel issue

* style change, left side panel dq spin

* Issue 334 update ehcache (#488)

updated to ehcache 3.0

* updated getJsonElements to handle JSON error better (#490)

* removed persistence settings

* release 3.0.7 (#493)

* 3.0.8-SNAPSHOT

* the converted value should be put back to map to be used somewhere else

* updated 'exclude count' font style

* release 3.0.8

Co-authored-by: Rita Chen <[email protected]>
Co-authored-by: Nick dos Remedios <[email protected]>
Co-authored-by: vjrj <[email protected]>
Co-authored-by: alice.ainsa <[email protected]>
Co-authored-by: Dave Martin <[email protected]>
Co-authored-by: Bruce Hyslop <[email protected]>
Co-authored-by: adam-collins <[email protected]>
djtfmartin pushed a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Dec 9, 2021
djtfmartin pushed a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Dec 9, 2021
djtfmartin pushed a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Dec 9, 2021
djtfmartin pushed a commit to AtlasOfLivingAustralia/biocache-hubs that referenced this issue Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
biocache-hub Issues related to Biocache Hub bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

6 participants