cebe / yii2-openapi

REST API application generator for Yii2, openapi 3.0 YAML -> Yii2
MIT License
130 stars 23 forks source link

PathAutoCompletion causes timeouts on large projects #145

Closed troncz closed 11 months ago

troncz commented 1 year ago

On large projects the current implementation of the PathAutoCompletion causes long execution times or timeouts. Since the autocomplete data is regenerated on every field rendered and there is no way to limit the path of the iterator, rendering of the view can take minutes.

SOHELAHMED7 commented 1 year ago

Yes this needs a fix.

image

Meanwhile PR to fix this issue is in creation, you can use this lib at CLI $ ./yii gii/api --help. You will not face this issue in CLI.

SOHELAHMED7 commented 1 year ago

First priority will be given to values present in config (example) to be shown in form fields.

Second to default values present in class cebe\yii2openapi\generator\ApiGenerator

Third will be given to values produced by PathAutoCompletion class