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

chore: allow testing sync using docker-compose #19931

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

teleivo
Copy link
Contributor

@teleivo teleivo commented Feb 14, 2025

allowing to test

https://github.com/dhis2/wow-backend/blob/master/guides/testing/metadata_sync_testing.md

using docker-compose.

  • db: 5432
  • sync-db: 5434

sync-db looks as if its migrations are from a 41 instance while it is connected to a DHIS2 instance of this PRs commit just like db.

psql -U dhis dhis -h localhost -p 5432 -c 'select installed_rank, version, type, success, installed_on, script from flyway_schema_history order by installed_rank desc limit 4;'

installed_rank │ version │ type │ success │        installed_on        │                            script
════════════════╪═════════╪══════╪═════════╪════════════════════════════╪══════════════════════════════════════════════════════════════
            357 │ 2.42.35 │ SQL  │ t       │ 2025-02-14 13:42:51.425859 │ 2.42/V2_42_35__Remove_J2ME_parser_type.sql
            356 │ 2.42.34 │ SQL  │ t       │ 2025-02-14 13:42:51.425859 │ 2.42/V2_42_34__Create_sequence_for_note_table.sql
            355 │ 2.42.33 │ SQL  │ t       │ 2025-02-14 13:42:51.425859 │ 2.42/V2_42_33__Rename_event_change_log_property_to_field.sql
            354 │ 2.42.32 │ SQL  │ t       │ 2025-02-14 13:42:51.425859 │ 2.42/V2_42_32__User_name_as_generated_column.sql
(4 rows)

(4 rows)

psql -U dhis dhis -h localhost -p 5434 -c 'select installed_rank, version, type, success, installed_on, script from flyway_schema_history order by installed_rank desc limit 4;'

installed_rank │ version │ type │ success │        installed_on        │                                                 script
════════════════╪═════════╪══════╪═════════╪════════════════════════════╪═════════════════════════════════════════════════════════════════════════════════════════════════════════
            324 │ 2.41.52 │ JDBC │ t       │ 2025-01-29 12:30:41.626535 │ org.hisp.dhis.db.migration.v41.V2_41_52__Add_new_column_into_visualization_and_migrate_relative_periods
            323 │ 2.41.50 │ SQL  │ t       │ 2024-12-05 12:46:30.403455 │ 2.41/V2_41_50__Update_dataset_timliness_to_double.sql
            322 │ 2.41.49 │ SQL  │ t       │ 2024-12-05 12:46:30.403455 │ 2.41/V2_41_49__Update_api_token_tokentype.sql
            321 │ 2.41.48 │ SQL  │ t       │ 2024-10-10 07:32:37.6184   │ 2.41/V2_41_48__Alter_trackedentity_inactive_not_null.sql
(4 rows)

@teleivo teleivo marked this pull request as ready for review February 14, 2025 13:34
@teleivo teleivo requested review from a team as code owners February 14, 2025 13:34
@teleivo teleivo force-pushed the DHIS2-18991-docker-sync branch from 0513055 to f1e4de9 Compare February 14, 2025 13:35
@teleivo teleivo marked this pull request as draft February 17, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants