Code Monkey home page Code Monkey logo

Comments (7)

giosakti avatar giosakti commented on August 10, 2024

Listing possible autocomplete fields:

  • Users
  • Add Group
  • Groups
  • Assign Admin
  • Add User
  • Add VPN
  • Add Host
  • Hosts
  • Add Group

I'll work on this

from gate.

ajeygore avatar ajeygore commented on August 10, 2024

from gate.

giosakti avatar giosakti commented on August 10, 2024

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

from gate.

ajeygore avatar ajeygore commented on August 10, 2024

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.

from gate.

giosakti avatar giosakti commented on August 10, 2024

ok, breakdown the tasks necessary for that:

  • create internal API for checking uniqueness
  • validate uniqueness on .blur()
  • validate name using regex

from gate.

giosakti avatar giosakti commented on August 10, 2024

PR raised #90

from gate.

ajeygore avatar ajeygore commented on August 10, 2024

Merged, closing this issue, Thanks.

from gate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.