hashicorp / hashicorp/consul

Clicking policy dropdown in token view shows empty policy

Open
#7,021 2 comments 0 reactions 0 assignees View on GitHub
theme/ui type/enhancement
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
1d 18h
Merged PRs (30d)
39

Description

#### Overview of the Issue

On a token view page (e.g. http://localhost:8500/ui/dc1/acls/tokens/a8e4602e-045e-98bd-f7d3-3276c3cfb14a) clicking the policy dropdown shows a empty policy:
![image](https://user-images.githubusercontent.com/1034429/72096538-02d81480-32e0-11ea-87b3-8581e23da919.png)

Consul Version: 1.6.2

The API call for the policy details is made and returns successfully:
![image](https://user-images.githubusercontent.com/1034429/72096668-4af73700-32e0-11ea-83db-093866b4bd56.png)
![image](https://user-images.githubusercontent.com/1034429/72096678-52b6db80-32e0-11ea-8276-f47e0b4c982f.png)

There are no console errors.

If I collapse the dropdown and click it again, the policy appears:
![image](https://user-images.githubusercontent.com/1034429/72096744-737f3100-32e0-11ea-85ed-449283d8bc62.png)

Contributor guide

Open the contributing guide

Research direction

Start at the Consul UI token view and trace the policy dropdown's first open alongside the successful policy-details API response. Reproduce the issue with the linked token-view URL; done means the returned policy is visible on the initial click, without requiring the dropdown to be reopened.

Written by the indexing model from the issue text.

Assessment

Domain
authorization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.