task #4338: [MASTER] Handle abbreviated title and protected cache correctly in TaxEditor
Protected caches for taxa and names behave inconsistent
Some name protected caches do not really work as expected here. We need to test the protected cache behaviour by hand.
rank is not colored but should
if both, name.titleCache and name.nameCache are protected, switching the titleCache to unprotected results in no coloring of all nameparts like genus, specific Epi, etc. This is not correct. Correct behavior shows when no protected cache exists and only nameCache is set to protected. This means that the coloring depends on the previous state which is unwanted. Coloring should always be computed from the current state so behavior is always the same independent of a previours state (a similar behavior has been observed for references: #4944)
Also for protected taxon.titleCache we may expect that the name fields will be colored (but maybe not organge) if the taxon titleCache is protected (see ideas for coloring strategy in #4944)
#15 Updated by Katja Luther almost 4 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset taxeditor|a452be91ae106b545b4393798e666aef347a0ef1.
#20 Updated by Andreas Müller 3 days ago
- Status changed from Resolved to Closed
- Assignee changed from Andreas Müller to Katja Luther
- % Done changed from 50 to 30
The first issue is solved. The second was improved, however, it still sometimes works inconsistent meaning that the state of "irrelevance" of a field may depend on the previous state not on the generell state of the cache protection.
This is because setting "relevance" is always called in a given context and also the current code does not always reset fields from irrelevant to relevant if it should.
As this ticket was worked on long time ago I open a new ticket #9405 and close this one.