Closed Mbrownshoes closed 5 years ago
@ll911 If you run these db scripts, that will fix the environment.
UPDATE resource_revision SET format = LOWER(format);
UPDATE resource SET format = LOWER(format);
This requires solr to be re-indexed. I'm not sure how these formats were entered into the database with different cases. The data entry point for format information is from a dropdown.
Has this recently been changed? Is there another way to add format information into the database?
they were added via api, not sql insert
@garrettH3S this is marked as Code Complete it is fixed?
@ll911 Have you ran that script in cad?
@dkelsey yes, you can see the config file to get the cad disqus id
@garrettH3S your group have full access in CAD.
@ll911 when I navigate to the disqus url for CAD I get Whoops, you're not allowed on that page.
i'm confused about the disqus comments. why are they here? @dkelsey Because I made a comment about the disqus api before, and we started responding here. I must have forgotten to remove your comment.
I re-indexed in CAD and it didn't make a difference.
I used the API to update the metadata for resources that had the wrong case, setting all to lower case.
I re-indexed. This resolved the 'duplicate formats' issue.
This exposed another issue #478.
In addition, I encountered a dataset that had an incomplete schema. Because of this Solr failed to updated the index correctly for this record. I added the missing schema elements, through the API, which resolved this issue. I suspect the other issue is due to an issue Solr has with the schema.
I looked in PROD and I see that there are resources with incorrect formats. We can update those at any time.
Ran the script in PROD. I think a re-index is required @ll911
There are still 2 groupings of CSV
facets.
@jachurchill can you look into why the two CSV facets are showing up ... both are in lowercase, however, seems to be separated. Please identify what the reason is.
This can probably be closed as it will be resolved with #524
Resource format type should be lowercase, but the OFI auto resource creation is making them ALL CAPS https://catalogue.data.gov.bc.ca/api/3/action/package_show?id=6aa12006-5c23-4e3a-9145-29454b9ed493 This leads to duplicate formats (there are two 'csv's visible in the format search
@dkelsey