Opened 22 months ago

Last modified 22 months ago

#3053 assigned enhancement

Add Web-Visible Flag to Taxonomy Family Tables

Reported by: Benjamin Haag Owned by: Benjamin Haag
Priority: medium Milestone:
Component: Database, Schema Changes Version: N/A
Severity: Keywords:
Cc: karen.kittell@…, melanie.schori@… Database Engine: N/A
Operating System: N/A

Description

Overview

The PW (and potentially other interfaces) must currently restrict certain displays to a specified list of family types. In the interest of expediency, and of consistency with the existing schema and related code, there will now be an is_web_visible_flag in:

  • taxonomy_classification
  • taxonomy_family2 (NOTE: TO BECOME taxonomy_family once refactoring complete)

Steps

1) Add field to

  • taxonomy_classification
  • taxonomy_family2

2) Set flag to 'Y' for all records in taxonomy_family2 where family_type_code is one of the following: 'FERN', 'FERNALLY', 'GYMNO', 'DICOT', 'MONOCOT', 'ANA', 'MAG
2) Modify related dataviews.

Change History (2)

comment:1 by Benjamin Haag, 22 months ago

Is there a default value for the is_web_visible flag in taxonomy_classification? If so, what are the criteria?

comment:2 by Kay Kittell, 22 months ago

It should be populated with Y or N by determining if the family_type_code is in 'FERN', 'FERNALLY', 'GYMNO', 'DICOT', 'MONOCOT', 'ANA', 'MAG'
If you run the following sql, you'll get 10 classifications that should be is_web_visible = 'N'

SELECT distinct suprafamily_rank_name as title

FROM taxonomy_family
where family_type_code not in ('FERN', 'FERNALLY', 'GYMNO', 'DICOT', 'MONOCOT', 'ANA', 'MAG')
order by title

Note: See TracTickets for help on using tickets.