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

Migration mechanism development #416

Merged
merged 2 commits into from
Dec 28, 2018
Merged

Migration mechanism development #416

merged 2 commits into from
Dec 28, 2018

Conversation

bdmbdsm
Copy link

@bdmbdsm bdmbdsm commented Dec 20, 2018

  • Extract create_app_meta to the utils to reuse it.
  • Migration runner stub
  • Add filename arg to create_app_meta func
  • Stubs for run_migrations & related tests
  • Remove unneeded MigrationProcessRunner
  • Fix mock path in the tests.base
  • Remove obsolete info from the docstring
  • Add migrate entrypoint
  • app_meta constructing refactor
    • Optimize read_yaml
    • Use only app_meta filepath as param for create_app_meta
  • Comment on argparse usage
  • create_app_meta test
  • Introduce dump_dict_to_tempfile
  • Rename entrypoint
  • run_migrations -> run_migrations_console_entrypoint
  • run_migrations_console_entrypoint + test
  • Add missing whitespaces after columns
  • path_to_kv util
  • collect_packages_for_migration util
  • path_to_kv test for no results
  • Define scheme for the DB URL
  • Migration entrypoints logic

This change is Reviewable

- Extract `create_app_meta` to the utils to reuse it.
- Migration runner stub
- Add filename arg to `create_app_meta` func
- Stubs for run_migrations & related tests
- Remove unneeded MigrationProcessRunner
- Fix mock path in the tests.base
- Remove obsolete info from the docstring
- Add migrate entrypoint
- app_meta constructing refactor
    - Optimize `read_yaml`
    - Use only app_meta filepath as param for `create_app_meta`
- Comment on argparse usage
- create_app_meta test
- Introduce `dump_dict_to_tempfile`
- Rename entrypoint
- run_migrations -> run_migrations_console_entrypoint
- run_migrations_console_entrypoint + test
- Add missing whitespaces after columns
- path_to_kv util
- collect_packages_for_migration util
- path_to_kv test for no results
- Define scheme for the DB URL
- Migration entrypoints logic
@bdmbdsm bdmbdsm self-assigned this Dec 20, 2018
@coveralls
Copy link

coveralls commented Dec 20, 2018

Pull Request Test Coverage Report for Build 2852

  • 59 of 76 (77.63%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 71.402%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/openprocurement/api/utils.py 54 71 76.06%
Totals Coverage Status
Change from base Build 2845: 0.3%
Covered Lines: 1935
Relevant Lines: 2710

💛 - Coveralls

@@ -14,30 +16,38 @@

from openprocurement.api.utils import (
apply_data_patch,
calculate_business_date,
Copy link
Author

Choose a reason for hiding this comment

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

не зміг втриматись, посортував імпорти)

@bdmbdsm
Copy link
Author

bdmbdsm commented Dec 27, 2018

Jenkins - OK

@leits leits merged commit a21706c into openprocurement:ea_core_master Dec 28, 2018
@bdmbdsm bdmbdsm deleted the migration-dev branch January 23, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants