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

fix: set :last_ife_exit_deleted_eth_height on deplyment if it's not set yet #1720

Merged
merged 14 commits into from
Sep 16, 2020

Conversation

pgebal
Copy link
Contributor

@pgebal pgebal commented Sep 2, 2020

Brings back #1714 and adds a release task to update rocksdb for deployments that do not start from a clean state.

@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch 3 times, most recently from 8233387 to 617a1f3 Compare September 2, 2020 16:33
@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch from 617a1f3 to 1e59cbd Compare September 2, 2020 16:56
@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch 2 times, most recently from 3d3dec7 to b39108b Compare September 8, 2020 16:41
@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch from b39108b to e4450ac Compare September 9, 2020 13:03
# See the License for the specific language governing permissions and
# limitations under the License.

defmodule OMG.DB.ReleaseTasks.InitKeysWithValues do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@InoMurko what do you think about this solution?
It uses a release task to set a value if it's not already set.
I am not sure we should use a config provider here as this does not change config at all.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not take the same approach as OMG.WatcherInfo.ReleaseTasks.InitPostgresqlDB? Why use https://github.com/omgnetwork/elixir-omg/pull/1720/files#diff-3cc6d83c8ce1f76e93166823f0298352R19 a config provider?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's exactly what I needed.

@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch from 19ab623 to c5be9f1 Compare September 10, 2020 10:08
@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch from c5be9f1 to 918e0f3 Compare September 10, 2020 13:09
@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch from 5e23fd4 to 42bf5de Compare September 10, 2020 14:30
@pgebal pgebal added bug Something isn't working and removed bug Something isn't working labels Sep 11, 2020
@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch from 334c391 to ea8bf5f Compare September 14, 2020 13:15
@pgebal pgebal marked this pull request as ready for review September 14, 2020 13:51
Copy link
Contributor

@pnowosie pnowosie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor remarks. Great work ❗

@pgebal pgebal force-pushed the pgebal/fix_event_listeners_update_key_not_initialized branch from 6fb4d73 to f40b642 Compare September 16, 2020 09:07
@pgebal pgebal merged commit 6227b79 into master Sep 16, 2020
@pgebal pgebal deleted the pgebal/fix_event_listeners_update_key_not_initialized branch September 16, 2020 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working watcher watcher-info
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants