Skip to content

API key comment not updating in UI #1225

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

Open
2 tasks done
lukas-braune opened this issue Apr 8, 2025 · 1 comment · May be fixed by #1267
Open
2 tasks done

API key comment not updating in UI #1225

lukas-braune opened this issue Apr 8, 2025 · 1 comment · May be fixed by #1267
Labels
defect Something isn't working good first issue Good for newcomers p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort

Comments

@lukas-braune
Copy link
Contributor

Current Behavior

When a user sets or updates the comment for an API key, the change is not reflected in the UI immediately. The updated comment only appears after the page is refreshed.

Steps to Reproduce

  1. Go to Administration > Access Management > Teams
  2. Select a team
  3. Select an existing API key or create a new one
  4. Update the comment field for the selected API key (Edit API Key Comment)
  5. Observe that the comment does not update in the UI immediately
  6. Refresh the page to see the updated comment

Expected Behavior

The comment for the API key should update in the UI immediately after saving changes, without the need for a page refresh.

Dependency-Track Frontend Version

4.13.0-SNAPSHOT

Browser

Microsoft Edge

Browser Version

No response

Operating System

Windows

Checklist

@lukas-braune lukas-braune added defect Something isn't working in triage labels Apr 8, 2025
@nscuro nscuro added p2 Non-critical bugs, and features that help organizations to identify and reduce risk good first issue Good for newcomers size/S Small effort and removed in triage labels Apr 8, 2025
cat-passwd pushed a commit to cat-passwd/issue-1225 that referenced this issue Jun 5, 2025
Set the default value of comment to empty string instead of null.

Fixes DependencyTrack#1225
@cat-passwd
Copy link

Hi there!
I reproduced the defect and found out it only happens when the comment is in its default value and a new one is set.

I produced a fix for which I just proposed a pull request.

@cat-passwd cat-passwd linked a pull request Jun 5, 2025 that will close this issue
2 tasks
cat-passwd pushed a commit to cat-passwd/issue-1225 that referenced this issue Jun 5, 2025
Set the default value of comment to empty string instead of null.

Fixes DependencyTrack#1225

Signed-off-by: Antoine FELIX <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working good first issue Good for newcomers p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants