ietf-tools / datatracker

The day-to-day front-end to the IETF database for people who work on IETF standards.
https://datatracker.ietf.org
BSD 3-Clause "New" or "Revised" License
523 stars 310 forks source link

Refactor class inheritance for SearchableField classes #3256

Open ietf-svn-bot opened 3 years ago

ietf-svn-bot commented 3 years ago

type_defect | by rjsparks@nostrum.com


See https://trac.tools.ietf.org/tools/ietfdb/browser/trunk/ietf/person/fields.py?rev=18948#L111

A SearchableEmailsField should be a SearchableField, not a SearcablePersonsField.

A similar thing happens at SearchableDocAliasesField at https://trac.tools.ietf.org/tools/ietfdb/browser/trunk/ietf/doc/fields.py?rev=18948#L73

The typing can be tightened up after refactoring these.


Issue migrated from trac:3256 at 2022-03-04 08:37:40 +0000

ietf-svn-bot commented 3 years ago

@rjsparks@nostrum.com changed status from new to accepted