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

Refactoring models. #510

Merged
merged 6 commits into from
Jun 28, 2023
Merged

Refactoring models. #510

merged 6 commits into from
Jun 28, 2023

Conversation

terjekv
Copy link
Collaborator

@terjekv terjekv commented Jun 15, 2023

  • Splits mreg/models.py into five distinct files in its own mreg/models/ package.
  • More or less a conceptual split along purposes:
    • base.py: Core models with no dependecies (plus ForwardZoneMember)
    • network.py: Network related models
    • zone.py: Forward- and reverse-related models.
    • host.py: Host-related models, excluding RRs.
    • resource_records.py: Models for resource records.

Note that this also updates the inital migration due to ZoneHelpers being moved.

Fixes #512.

@coveralls
Copy link
Collaborator

coveralls commented Jun 15, 2023

Coverage Status

coverage: 99.212% (+0.009%) from 99.203% when pulling d660a3e on terjekv:refactor_models into d013edd on unioslo:master.

@terjekv terjekv marked this pull request as ready for review June 15, 2023 23:19
@terjekv terjekv self-assigned this Jun 16, 2023
  - Splits mreg/models.py into five distinct files in its own mreg/models/ package.
  - More or less a conceptual split along purposes:
    - base.py: Core models with no dependecies (plus ForwardZoneMember)
    - network.py: Network related models
    - zone.py: Forward- and reverse-related models.
    - host.py: Host-related models, excluding RRs.
    - resource_records.py: Models for resource records.

Note that this also updates the inital migration due to ZoneHelpers being moved.
  - Note that this was only picked up by the mreg-cli tests. This `WARNING: : GET "http://127.0.0.1:8000/api/v1/permissions/netgroupregex/": 500: Internal Server Error` with the state from https://github.com/unioslo/mreg/actions/runs/5314501630/jobs/9621884141?pr=510#step:7:4680 is not picked up by any other tests we currently have.
@terjekv terjekv merged commit 3f4ae0a into unioslo:master Jun 28, 2023
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.

Refactor models into multiple files.
3 participants