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: depth interval default methods #1188

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

shrouxm
Copy link
Member

@shrouxm shrouxm commented Mar 6, 2024

Description

Some small changes to the data model to handle subtle cases of depth interval default methods. Previously we were only storing true/false for whether an input method was enabled, now we also allow the input method to be unset. This is because there are actually three possible states for input methods being enabled: explicit yes, explicit no, and unspecified. I think there may be some even longer tail UX edge cases to consider, but this data model lets us handle more situations with less complexity created by manual data chasing.

Checklist

  • Corresponding issue has been opened

Related Issues

Related to techmatters/terraso-mobile-client#502

@@ -25,6 +25,7 @@
from apps.project_management.graphql.projects import ProjectNode
from apps.project_management.models import Project, Site, sites
from apps.soil_id.models import SoilData
from apps.soil_id.models.project_soil_settings import ProjectSoilSettings
Copy link
Member

Choose a reason for hiding this comment

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

issue: this import causes a linter error. should we remove it, or do we need to make a change to use it?

@shrouxm shrouxm merged commit a6eddfc into main Mar 6, 2024
7 checks passed
@shrouxm shrouxm deleted the feat/depth-interval-default-methods branch March 6, 2024 18:45
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