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

Initial Schema Creation for Age & Stratigraphy #5274

Draft
wants to merge 53 commits into
base: production
Choose a base branch
from

Conversation

acwhite211
Copy link
Member

Fixes #5178

TODO

Checklist

  • Self-review the PR after opening it to make sure the changes look good
    and self-explanatory (or properly documented)
  • Add automated tests
  • Add relevant issue to release milestone

Testing instructions

TODO

fields=[
('id', models.AutoField(db_column='AbsoluteAgeID', primary_key=True, serialize=False)),
('absoluteage', models.DecimalField(blank=True, db_column='AbsoluteAge', decimal_places=10, max_digits=22, null=True)),
('agetype', models.CharField(blank=True, db_column='AgeType', max_length=64, null=True)),
Copy link
Contributor

@CarolineDenis CarolineDenis Sep 16, 2024

Choose a reason for hiding this comment

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

does this need to be handled like cotype and need for list creation in the migration?

Copy link
Contributor

Choose a reason for hiding this comment

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

from control vocab (sedimentation, metamorphic, inclusion, original, fall,...)

@CarolineDenis CarolineDenis modified the milestone: 7.9.8 Sep 19, 2024
Copy link
Member

@grantfitzsimmons grantfitzsimmons left a comment

Choose a reason for hiding this comment

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

👍 Looks good based on the code changes.

One question– the ranks in the tectonic tree are not included in this PR, what is the plan for creating the tree defaults? Presumably this tree will only be necessary for paleo/geo collections.

Copy link
Member

@grantfitzsimmons grantfitzsimmons left a comment

Choose a reason for hiding this comment

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

I'd like to test this again by running the migration

Copy link
Member

@grantfitzsimmons grantfitzsimmons left a comment

Choose a reason for hiding this comment

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

  1. I think we should have the tree table names follow the convention the other tree tables follow.

    Current:
    tectonictreedef
    tectonictreedefitem
    tectonicunit

    Desired:
    tectonicunittreedef
    tectonicunittreedefitem
    tectonicunit

    This better follows our existing convention.

  2. The tables exist (yay) but the schema records do not (boo)

image image

@@ -18,23 +18,36 @@
('AbsoluteAgeAttachment', None),
]
PICKLIST_NAME = 'AgeType'
DEFAULT_AGE_TYPES = [
Copy link
Contributor

Choose a reason for hiding this comment

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

@grantfitzsimmons, can you let me know which types you would like here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Dev Attention Needed
Development

Successfully merging this pull request may close these issues.

Database Schema Changes for Age & Stratigraphy
3 participants