Skip to content

Commit

Permalink
Stratigraphy quality (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr authored Feb 15, 2024
2 parents 85dbcee + 359c898 commit 4cd3115
Show file tree
Hide file tree
Showing 28 changed files with 2,915 additions and 241 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- Reusable form components.
- Quality attribute for stratigraphy.

### Changed

Expand Down
3 changes: 0 additions & 3 deletions src/api-legacy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
from bms.v1.borehole.identifier import IdentifierAdminHandler
from bms.v1.borehole.identifier import IdentifierViewerHandler

# Profiles's ACTION Handlers
from bms.v1.borehole.profile.viewer import ProfileViewerHandler

# Profiles layers's ACTION Handlers
from bms.v1.borehole.profile.layer.viewer import ProfileLayerViewerHandler
from bms.v1.borehole.profile.layer.producer import ProfileLayerProducerHandler
Expand Down
6 changes: 0 additions & 6 deletions src/api-legacy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ async def close(application):
LayerViewerHandler,
LayerProducerHandler,

# Profile handlers
ProfileViewerHandler,

# Layer handlers
ProfileLayerViewerHandler,

Expand Down Expand Up @@ -218,9 +215,6 @@ async def close(application):
(r'/api/v1/borehole/stratigraphy/layer', LayerViewerHandler),
(r'/api/v1/borehole/stratigraphy/layer/edit', LayerProducerHandler),

# Profile handlers
(r'/api/v1/borehole/profile', ProfileViewerHandler),

# Profile Layer handlers
(r'/api/v1/borehole/profile/layer', ProfileLayerViewerHandler),

Expand Down
2 changes: 0 additions & 2 deletions src/api-legacy/v1/borehole/profile/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

# Actions
from bms.v1.borehole.profile.list import ListProfiles
from bms.v1.borehole.profile.get import GetProfile
from bms.v1.borehole.profile.validate import ValidateProfile

1 change: 1 addition & 0 deletions src/api-legacy/v1/borehole/profile/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class GetProfile(Action):
stratigraphy.kind_id_cli as kind,
COALESCE(name_sty, '') as name,
primary_sty as primary,
quality_id as quality,
to_char(
date_sty,
'YYYY-MM-DD'
Expand Down
108 changes: 0 additions & 108 deletions src/api-legacy/v1/borehole/profile/list.py

This file was deleted.

37 changes: 0 additions & 37 deletions src/api-legacy/v1/borehole/profile/viewer.py

This file was deleted.

2 changes: 2 additions & 0 deletions src/api/BdmsContextExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ public static void SeedData(this BdmsContext context)
.RuleFor(o => o.Date, f => f.Date.Past().ToUniversalTime().OrNull(f, .05f))
.RuleFor(o => o.KindId, f => f.PickRandom(layerKindIds))
.RuleFor(o => o.Kind, _ => default!)
.RuleFor(o => o.QualityId, f => f.PickRandom(descriptionQualityIds).OrNull(f, .05f))
.RuleFor(o => o.Quality, _ => default!)
.RuleFor(o => o.Name, f => f.Name.FullName())
.RuleFor(o => o.Notes, f => f.Rant.Review())
.RuleFor(o => o.IsPrimary, f => f.Random.Bool())
Expand Down
Loading

0 comments on commit 4cd3115

Please sign in to comment.