New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[portal] Regex deactivate the drag and drop func #560

Closed
Matsa59 opened this Issue Apr 26, 2017 · 0 comments

Comments

Projects
None yet
3 participants
@Matsa59

Matsa59 commented Apr 26, 2017

Expected Behavior

Drag&Drop policy to add it to the path.

Current Behavior

We can't add the policy to the path.

Possible Solution

Create path without regex and add the regex at the end. But I think this is not a normal behavior.

Steps to Reproduce (for bugs)

  1. Create an API
  2. Add a path with regex (ex: "/collections/(.*)
  3. Try to drag and drop a policy on it

Context

I was configuring a path on an API when suddenly, I wasn't able to drop a new policy in my path. In fact, if we create a path with Regex (ex: "/collections/.*") it's like with deactivate drag&drop functionality.

Your Environment

  • Version used:
  • Browser Name and version: Google Chrome v57
  • Operating System and version: Mac OS X Sierra
  • Gravitee version: 1.4.2

@NicolasGeraud NicolasGeraud changed the title from [Policy][UI][drag&drop] Regex deactivate the drag and drop func to [portal] Regex deactivate the drag and drop func Apr 26, 2017

@brasseld brasseld added the type: bug label Apr 26, 2017

@NicolasGeraud NicolasGeraud self-assigned this Apr 27, 2017

@NicolasGeraud NicolasGeraud added this to the 1.5.1 milestone Apr 27, 2017

NicolasGeraud added a commit to gravitee-io/gravitee-management-webui that referenced this issue Apr 27, 2017

fix(policies): d&d policies on paths with regex
because _.kebabCase() remove special characters, _.kebabCase(/foo/.*)
and _.kebabCase(/foo) are the same. And Dragular doesn't appreciate it.

fix gravitee-io/issues#560

brasseld added a commit to gravitee-io/gravitee-management-webui that referenced this issue Apr 27, 2017

fix(policies): d&d policies on paths with regex
because _.kebabCase() remove special characters, _.kebabCase(/foo/.*)
and _.kebabCase(/foo) are the same. And Dragular doesn't appreciate it.

fix gravitee-io/issues#560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment