From 866a3136e53d889a96374035b490f5f09bbaf93b Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Tue, 13 Jan 2026 12:31:32 -0800 Subject: [PATCH 1/2] feat: sample info and major minor chem admin features --- .../admin/chemistry_minor_trace_admin.feature | 33 ++++++++++++++++ .../admin/chemistry_sampleinfo_admin.feature | 38 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 features/admin/chemistry_minor_trace_admin.feature create mode 100644 features/admin/chemistry_sampleinfo_admin.feature diff --git a/features/admin/chemistry_minor_trace_admin.feature b/features/admin/chemistry_minor_trace_admin.feature new file mode 100644 index 000000000..ee46ca29e --- /dev/null +++ b/features/admin/chemistry_minor_trace_admin.feature @@ -0,0 +1,33 @@ +@admin @minor-trace-chemistry +Feature: Minor and Trace Chemistry Admin View + As a data manager who needs legacy chemistry details + I need to view minor and trace chemistry records in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View minor and trace chemistry list with all columns + Given the following minor and trace chemistry records exist: + | sample_pt_id | sample_point_id | analyte | sample_value | units | analysis_date | + | 1001 | NM-0001 | As | 0.004 | mg/L | 2020-06-20 | + When I navigate to "/admin/minortracechemistry" + Then I should see the minor and trace chemistry list page + And I should see the following columns: + | Column Name | + | GlobalID | + | ObjectID | + | SamplePtID | + | SamplePointID | + | Analyte | + | Symbol | + | SampleValue | + | Units | + | Uncertainty | + | AnalysisMethod | + | AnalysisDate | + | Notes | + | Volume | + | VolumeUnit | diff --git a/features/admin/chemistry_sampleinfo_admin.feature b/features/admin/chemistry_sampleinfo_admin.feature new file mode 100644 index 000000000..6b002311d --- /dev/null +++ b/features/admin/chemistry_sampleinfo_admin.feature @@ -0,0 +1,38 @@ +@admin @chemistry-sample-info +Feature: Chemistry Sample Info Admin View + As a data manager who needs legacy chemistry records + I need to view chemistry sample info in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View chemistry sample info list with all columns + Given the following chemistry sample info records exist: + | sample_point_id | sample_pt_id | wclab_id | collection_date | sample_type | data_source | + | NM-0001 | SP-0001 | WC-1001 | 2020-06-15 | groundwater | AMPAPI | + When I navigate to "/admin/chemistrysampleinfo" + Then I should see the chemistry sample info list page + And I should see the following columns: + | Column Name | + | OBJECTID | + | Thing ID | + | SamplePointID | + | SamplePtID | + | WCLab ID | + | Collection Date | + | Collection Method | + | Collected By | + | Analyses Agency | + | Sample Type | + | Sample Material Not H2O | + | Water Type | + | Study Sample | + | Data Source | + | Data Quality | + | Public Release | + | Added Day to Date | + | Added Month Day to Date | + | Sample Notes | From 853a51251263617f390006d77fe0f32149cb144d Mon Sep 17 00:00:00 2001 From: Chase Martin Date: Thu, 15 Jan 2026 09:53:46 -0800 Subject: [PATCH 2/2] feat: add simple admin list (view) feature files for nma legacy tables --- ...> nma_chemistry_minor_trace_admin.feature} | 0 ...=> nma_chemistry_sampleinfo_admin.feature} | 0 .../admin/nma_hydraulics_data_admin.feature | 31 +++++++++++++++ .../admin/nma_major_chemistry_admin.feature | 35 +++++++++++++++++ .../admin/nma_ngwmn_lithology_admin.feature | 28 ++++++++++++++ .../nma_ngwmn_water_levels_admin.feature | 26 +++++++++++++ .../nma_ngwmn_well_construction_admin.feature | 28 ++++++++++++++ .../admin/nma_radionuclides_admin.feature | 28 ++++++++++++++ .../admin/nma_surface_water_admin.feature | 34 +++++++++++++++++ ...ls_continuous_pressure_daily_admin.feature | 38 +++++++++++++++++++ features/admin/nma_weather_data_admin.feature | 23 +++++++++++ 11 files changed, 271 insertions(+) rename features/admin/{chemistry_minor_trace_admin.feature => nma_chemistry_minor_trace_admin.feature} (100%) rename features/admin/{chemistry_sampleinfo_admin.feature => nma_chemistry_sampleinfo_admin.feature} (100%) create mode 100644 features/admin/nma_hydraulics_data_admin.feature create mode 100644 features/admin/nma_major_chemistry_admin.feature create mode 100644 features/admin/nma_ngwmn_lithology_admin.feature create mode 100644 features/admin/nma_ngwmn_water_levels_admin.feature create mode 100644 features/admin/nma_ngwmn_well_construction_admin.feature create mode 100644 features/admin/nma_radionuclides_admin.feature create mode 100644 features/admin/nma_surface_water_admin.feature create mode 100644 features/admin/nma_water_levels_continuous_pressure_daily_admin.feature create mode 100644 features/admin/nma_weather_data_admin.feature diff --git a/features/admin/chemistry_minor_trace_admin.feature b/features/admin/nma_chemistry_minor_trace_admin.feature similarity index 100% rename from features/admin/chemistry_minor_trace_admin.feature rename to features/admin/nma_chemistry_minor_trace_admin.feature diff --git a/features/admin/chemistry_sampleinfo_admin.feature b/features/admin/nma_chemistry_sampleinfo_admin.feature similarity index 100% rename from features/admin/chemistry_sampleinfo_admin.feature rename to features/admin/nma_chemistry_sampleinfo_admin.feature diff --git a/features/admin/nma_hydraulics_data_admin.feature b/features/admin/nma_hydraulics_data_admin.feature new file mode 100644 index 000000000..816387f12 --- /dev/null +++ b/features/admin/nma_hydraulics_data_admin.feature @@ -0,0 +1,31 @@ +@admin @hydraulics-data +Feature: Hydraulics Data Admin View + As a data manager who needs legacy hydraulics records + I need to view hydraulics data in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View hydraulics data list with all columns + Given the following hydraulics data records exist: + | global_id | point_id | thing_id | hydraulic_unit | test_top | test_bottom | t_ft2_d | data_source | + | 550e8400-e29b-41d4-a716-446655440000 | NM-0001 | 1 | HU-1 | 10 | 50 | 123.4 | AMPAPI | + When I navigate to "/admin/hydraulicsdata" + Then I should see the hydraulics data list page + And I should see the following columns: + | Column Name | + | GlobalID | + | WellID | + | PointID | + | Thing ID | + | HydraulicUnit | + | HydraulicUnitType | + | TestTop | + | TestBottom | + | T (ft2/d) | + | k (darcy) | + | Data Source | + | OBJECTID | diff --git a/features/admin/nma_major_chemistry_admin.feature b/features/admin/nma_major_chemistry_admin.feature new file mode 100644 index 000000000..79a9b2a0d --- /dev/null +++ b/features/admin/nma_major_chemistry_admin.feature @@ -0,0 +1,35 @@ +@admin @major-chemistry +Feature: Major Chemistry Admin View + As a data manager who needs legacy major chemistry records + I need to view major chemistry data in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View major chemistry list with all columns + Given the following major chemistry records exist: + | global_id | sample_pt_id | sample_point_id | analyte | sample_value | units | analysis_date | + | 9d3a2e2c-5b2b-4e1f-8a90-c1c79f1d9d11 | 550e8400-e29b-41d4-a716-446655440002 | NM-0003 | Ca | 45.6 | mg/L | 2020-06-25 | + When I navigate to "/admin/majorchemistry" + Then I should see the major chemistry list page + And I should see the following columns: + | Column Name | + | GlobalID | + | SamplePtID | + | SamplePointID | + | Analyte | + | Symbol | + | SampleValue | + | Units | + | Uncertainty | + | AnalysisMethod | + | AnalysisDate | + | Notes | + | Volume | + | VolumeUnit | + | OBJECTID | + | AnalysesAgency | + | WCLab_ID | diff --git a/features/admin/nma_ngwmn_lithology_admin.feature b/features/admin/nma_ngwmn_lithology_admin.feature new file mode 100644 index 000000000..3e5d9a8a9 --- /dev/null +++ b/features/admin/nma_ngwmn_lithology_admin.feature @@ -0,0 +1,28 @@ +@admin @ngwmn-lithology +Feature: NGWMN Lithology Admin View + As a data manager who needs legacy NGWMN lithology records + I need to view NGWMN lithology data in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View NGWMN lithology list with all columns + Given the following NGWMN lithology records exist: + | object_id | point_id | lithology | term | + | 301 | NG-0003 | Sand | Santa Fe Group | + When I navigate to "/admin/ngwmnlithology" + Then I should see the NGWMN lithology list page + And I should see the following columns: + | Column Name | + | OBJECTID | + | PointID | + | Lithology | + | TERM | + | StratSource | + | StratTop | + | StratTopUnit | + | StratBottom | + | StratBottomUnit | diff --git a/features/admin/nma_ngwmn_water_levels_admin.feature b/features/admin/nma_ngwmn_water_levels_admin.feature new file mode 100644 index 000000000..64e730631 --- /dev/null +++ b/features/admin/nma_ngwmn_water_levels_admin.feature @@ -0,0 +1,26 @@ +@admin @ngwmn-water-levels +Feature: NGWMN Water Levels Admin View + As a data manager who needs legacy NGWMN water level records + I need to view NGWMN water levels in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View NGWMN water levels list with all columns + Given the following NGWMN water level records exist: + | point_id | date_measured | depth_to_water_bgs | wl_units | + | NG-0002 | 2020-05-20 | 35.5 | ft | + When I navigate to "/admin/ngwmnwaterlevels" + Then I should see the NGWMN water levels list page + And I should see the following columns: + | Column Name | + | PointID | + | DateMeasured | + | DepthToWaterBGS | + | WLUnits | + | MeasurementMethod | + | WLAccuracy | + | PublicRelease | diff --git a/features/admin/nma_ngwmn_well_construction_admin.feature b/features/admin/nma_ngwmn_well_construction_admin.feature new file mode 100644 index 000000000..e4378ba26 --- /dev/null +++ b/features/admin/nma_ngwmn_well_construction_admin.feature @@ -0,0 +1,28 @@ +@admin @ngwmn-well-construction +Feature: NGWMN Well Construction Admin View + As a data manager who needs legacy NGWMN well construction records + I need to view NGWMN well construction data in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View NGWMN well construction list with all columns + Given the following NGWMN well construction records exist: + | point_id | casing_top | casing_bottom | casing_depth_units | + | NG-0001 | 10.0 | 50.0 | ft | + When I navigate to "/admin/ngwmnwellconstruction" + Then I should see the NGWMN well construction list page + And I should see the following columns: + | Column Name | + | PointID | + | CasingTop | + | CasingBottom | + | CasingDepthUnits | + | ScreenTop | + | ScreenBottom | + | ScreenBottomUnit | + | ScreenDescription | + | CasingDescription | diff --git a/features/admin/nma_radionuclides_admin.feature b/features/admin/nma_radionuclides_admin.feature new file mode 100644 index 000000000..ae95eb4cc --- /dev/null +++ b/features/admin/nma_radionuclides_admin.feature @@ -0,0 +1,28 @@ +@admin @radionuclides +Feature: Radionuclides Admin View + As a data manager who needs legacy radionuclide records + I need to view radionuclides in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View radionuclides list with all columns + Given the following radionuclide records exist: + | global_id | sample_pt_id | sample_point_id | thing_id | analyte | sample_value | units | analysis_date | + | 0b94060d-11b8-4e43-bc3b-4e3a5c1e9f2a | 550e8400-e29b-41d4-a716-446655440001 | NM-0002 | 2 | U-238 | 0.12 | pCi/L | 2020-06-22 | + When I navigate to "/admin/radionuclides" + Then I should see the radionuclides list page + And I should see the following columns: + | Column Name | + | GlobalID | + | SamplePtID | + | SamplePointID | + | Thing ID | + | Analyte | + | SampleValue | + | Units | + | AnalysisDate | + | AnalysesAgency | diff --git a/features/admin/nma_surface_water_admin.feature b/features/admin/nma_surface_water_admin.feature new file mode 100644 index 000000000..7f1fb6869 --- /dev/null +++ b/features/admin/nma_surface_water_admin.feature @@ -0,0 +1,34 @@ +@admin @surface-water +Feature: Surface Water Admin View + As a data manager who needs legacy surface water records + I need to view surface water data in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View surface water list with all columns + Given the following surface water data records exist: + | surface_id | point_id | object_id | date_measured | discharge | discharge_units | + | 1f41f8b3-8a0d-41a5-9c83-7f9b3f2b6f2d | SW-0001 | 101 | 2020-07-01 | 15.2 | cfs | + When I navigate to "/admin/surfacewaterdata" + Then I should see the surface water list page + And I should see the following columns: + | Column Name | + | SurfaceID | + | PointID | + | OBJECTID | + | DateMeasured | + | Discharge | + | DischargeRate | + | DischargeUnits | + | DischargeMethod | + | DischargeSource | + | FormationZone | + | AqClass | + | SiteNotes | + | FieldMethodNotes | + | SourceNotes | + | DataSource | diff --git a/features/admin/nma_water_levels_continuous_pressure_daily_admin.feature b/features/admin/nma_water_levels_continuous_pressure_daily_admin.feature new file mode 100644 index 000000000..23e20533d --- /dev/null +++ b/features/admin/nma_water_levels_continuous_pressure_daily_admin.feature @@ -0,0 +1,38 @@ +@admin @water-levels-continuous-pressure-daily +Feature: Water Levels Continuous Pressure Daily Admin View + As a data manager who needs legacy water level records + I need to view continuous pressure daily water levels in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View continuous pressure daily water levels list with all columns + Given the following continuous pressure daily water level records exist: + | global_id | point_id | date_measured | created | updated | + | 7a3d2db5-0f3a-4e43-95b6-61b14f2a9cb2 | WL-0001 | 2020-06-15T08:00:00 | 2020-06-16T08:00:00 | 2020-06-17T08:00:00 | + When I navigate to "/admin/waterlevelscontinuouspressuredaily" + Then I should see the continuous pressure daily water levels list page + And I should see the following columns: + | Column Name | + | GlobalID | + | OBJECTID | + | WellID | + | PointID | + | DateMeasured | + | TemperatureWater | + | WaterHead | + | WaterHeadAdjusted | + | DepthToWaterBGS | + | MeasurementMethod | + | DataSource | + | MeasuringAgency | + | QCed | + | Notes | + | Created | + | Updated | + | ProcessedBy | + | CheckedBy | + | CONDDL (mS/cm) | diff --git a/features/admin/nma_weather_data_admin.feature b/features/admin/nma_weather_data_admin.feature new file mode 100644 index 000000000..6840b238f --- /dev/null +++ b/features/admin/nma_weather_data_admin.feature @@ -0,0 +1,23 @@ +@admin @weather-data +Feature: Weather Data Admin View + As a data manager who needs legacy weather records + I need to view weather data in the admin interface + So that I can review data without editing it + + Background: + Given I am authenticated as user "admin@nmbgmr.nmt.edu" with "Admin" role + And the admin interface is available at "/admin" + + @smoke @list-view + Scenario: View weather data list with all columns + Given the following weather data records exist: + | object_id | point_id | location_id | weather_id | + | 201 | WX-0001 | 550e8400-e29b-41d4-a716-446655440010 | 550e8400-e29b-41d4-a716-446655440011 | + When I navigate to "/admin/weatherdata" + Then I should see the weather data list page + And I should see the following columns: + | Column Name | + | LocationId | + | PointID | + | WeatherID | + | OBJECTID |