question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

search.data.gov.au migrators are going to collide with normal migrators

See original GitHub issue

Problem description

With all this content stuff we’ve been doing, we’ve been writing Flyway migrators that we build into our migrator images, and also writing manual scripts for data.gov.au, with the idea being that when the upgrade for data.gov.au happens, we can run the manual scripts then the migrators.

However because in some cases both scripts are running an INSERT for the same content item id, this is going to break when we run the migrator. Which is annoying.

So we need to modify the migrators we’ve done to have ON CONFLICT DO NOTHING on the INSERT statements.

This will be fine in all our prod deployments because we haven’t released the migrators yet, but it’s going to make dev.magda.io very very unhappy. So we’ll have to manually fix that with flyway repair when the change gets merged. But that’s OK.

Acceptance Criteria

  • All the migrations for v0.0.50 can successfully run after all the search.data.gov.au-specific sql scripts for v0.0.50 have run.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
t83714commented, Nov 21, 2018

I think 3 would be fair estimate~

0reactions
aneesha09commented, Nov 21, 2018

Guys - please add an estimate to this one, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

data.gov.au - beta
Search data.gov.au - beta, use arrow keys to browse search history. Search icon submit search. Recent developments. To find out the latest on...
Read more >
Overseas Arrivals and Departures | Datasets | data.gov.au - beta
International Visitors · Migration · Movements · Permanent Arrivals · Permanent Departures · Settlers. Themes: Immigration · Tourism. Contact ...
Read more >
Find and use public data - Data.gov.au
Find, access and reuse Australian government public data. Visit data.gov.au to try our new search. About data.gov.au. Our team works across government agencies ......
Read more >
Datasets search: population | Page 1 | data.gov.au - beta
Contains projections (based on different assumptions of future fertility, mortality and migration) of the resident population of Australia ...
Read more >
Search & Browse | Page 1 of 450 | HealthData.gov
cash assistance program for immigrants cash assistance program for immigrants ... Data presented here is representative of diagnostic specimens being tested ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found