CSCfi / iow-ui

Interoperability workbench user interface
Other
3 stars 0 forks source link

Opening association causes >10 calls to same codeValues API #559

Closed amiika closed 7 years ago

amiika commented 7 years ago

Test: http://iowdev.csc.fi/model/oiliu/OiliSanoma/cf214fe6-c339-4434-9c02-ce1d12593e7d

http://recordit.co/aNWn1bs6r7

mortterna commented 7 years ago

Not really a bug. Problem is caused by multiple inputs (Example, Default Value, Fixed Value) eagerly doing validation before code values result is cached. Caching can be improved by caching promises instead of actual result values.