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

Stratigraphic names and intervals API results doubled #239

Open
davenquinn opened this issue Sep 29, 2024 · 2 comments
Open

Stratigraphic names and intervals API results doubled #239

davenquinn opened this issue Sep 29, 2024 · 2 comments
Assignees
Labels

Comments

@davenquinn
Copy link
Member

image

This can be traced to duplicate results in this API call.

@davenquinn
Copy link
Member Author

@amyfromandi we should get this one solved since it has user-facing effects

@amyfromandi
Copy link
Contributor

amyfromandi commented Nov 18, 2024

@amyfromandi we should get this one solved since it has user-facing effects

@davenquinn I found that the macrostrat.autocomplete table has many duplicate rows that came over to PostgreSQL after we migrated the MariaDb data over. The name, type and category columns are duplicated. Our goal is to delete all of the duplicate rows in PostgreSQL and add this new code to our post migration scripts.

Example of duplicate data in macrostrat.autocomplete:

name,type,category,duplicate_count
Column B,columns,column,12
Column A,columns,column,11
Column C,columns,column,9
"",groups,group,9
"Site 504, Hole B",columns,column,7
V19,columns,column,5
Column D,columns,column,5
Column E,columns,column,4
Yard Coal (Bashkirian),strat_name_concepts,strat_name,3
Thompson,strat_name_concepts,strat_name,3
Rockland (Middle Ordovician),strat_name_concepts,strat_name,3
Main Coal (Serpukhovian),strat_name_concepts,strat_name,3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants