gate-sso / gate

Gate is MFA Enabled SSO Platform that supports SAML, OAuth, Linux shell login and CAS
https://gate-sso.github.io
MIT License
203 stars 52 forks source link

Implement Auto-complete drop down #81

Closed ajeygore closed 6 years ago

ajeygore commented 6 years ago

We need to provide "writeable" autocomplete drop down with scroll bar, instead of opening entire list, it should just provide place to type.

giosakti commented 6 years ago

Listing possible autocomplete fields:

I'll work on this

ajeygore commented 6 years ago

Thanks :-)

Also, we need to check Uniqueness of API name before it get’s submitted. You can’t have an API with duplicate name and there should be no spaces on [a-z][A-Z]_- is allowed

On 2 Mar 2018, at 6:08 PM, Giovanni Sakti notifications@github.com wrote:

Listing possible autocomplete fields:

Users Add Group Groups Assign Admin Add User Add VPN Add Host Hosts Add VPN I'll work on this

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gate-sso/gate/issues/81#issuecomment-369879714, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKK_voae8c-bBfC_WGRuMrDKaUr0KGNks5taRowgaJpZM4SZgu_.

giosakti commented 6 years ago

PR raised #85

For we need to check Uniqueness of API name before it get’s submitted. You can’t have an API with duplicate name and there should be no spaces on [a-z][A-Z]_- is allowed

you already put this line at the api_resource model

validates :name, format: { with: /\A[a-zA-Z0-9_-]+\Z/ }, uniqueness: true, presence: true

ajeygore commented 6 years ago

Yes, but that validates when it tries to save model, if we put this in javascript then life will be much easier, I will merge your pull request.

giosakti commented 6 years ago

ok, breakdown the tasks necessary for that:

giosakti commented 6 years ago

PR raised #90

ajeygore commented 6 years ago

Merged, closing this issue, Thanks.