Skip to content

Commit

Permalink
Add group number support in Taxon queries
Browse files Browse the repository at this point in the history
Fixes #4723
  • Loading branch information
grantfitzsimmons committed Apr 2, 2024
1 parent 0c54bf6 commit b8861ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export type MappingLineData = Pick<
readonly defaultValue: string;
};

const queryBuilderTreeFields = new Set(['fullName', 'author']);
const queryBuilderTreeFields = new Set(['fullName', 'author', 'groupNumber']);

/**
* Get data required to build a mapping line from a source mapping path
Expand Down
2 changes: 1 addition & 1 deletion specifyweb/stored_queries/queryfieldspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
DATE_PART_RE = re.compile(r'(.*)((NumericDay)|(NumericMonth)|(NumericYear))$')

# Pull out author or groupnumber field from taxon query fields.
TAXON_FIELD_RE = re.compile(r'(.*) ((Author)|(GroupNumber))$')
TAXON_FIELD_RE = re.compile(r'(.*) ((Author)|(groupNumber))$')

# Look to see if we are dealing with a tree node ID.
TREE_ID_FIELD_RE = re.compile(r'(.*) (ID)$')
Expand Down

0 comments on commit b8861ff

Please sign in to comment.