Skip to content
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

It takes time for a personal API token to work. #3757

Open
SowmiyaKaruna opened this issue Aug 28, 2024 · 1 comment
Open

It takes time for a personal API token to work. #3757

SowmiyaKaruna opened this issue Aug 28, 2024 · 1 comment

Comments

@SowmiyaKaruna
Copy link

Description of problem

When a personal API token for an external issue tracking system, such as Jira, is added to Kiwi TCMS, it takes some time to work.

Version or commit hash (if applicable)

Version 13.5 Enterprise

Steps to Reproduce

  1. Configure JIRA bug tracker in the main tenant of KIWI TCMS using the user1 token.
  2. Login into Kiwi TCMS as user2 and navigate to TestRun.
  3. For any TestExecution, click on the menu in the corner and click Add Hyperlink.
  4. Enter the Jira defect URL, set "Is a defect" to Yes, and click Save.
  5. Logout of Kiwi TCMS.
  6. Login again and add Jira's personal API token to user2 KIWI TCMS account.
  7. Repeat steps 3 and 4.

Actual results

After step 4, a comment is added to the JIRA defect, with user1's name as the author, which is expected.
However, even after adding a personal API token for user2, it continues to use the user1 API token configured in the Kiwi TCMS tenant.
It takes time for the personal API token to start working.

Expected results

Personal API tokens should work immediately after being added to the KIWI TCMS account.

Additional info (Python traceback, logs, etc.)

@atodorov
Copy link
Member

The most likely culprit here is the fact that RPC connections to external bug tracking systems are cached b/c this is usually a heavier operation, see:
https://github.com/kiwitcms/Kiwi/blob/master/tcms/issuetracker/base.py#L246

This cache is inside the Kiwi TCMS process memory space, not as part of the existing caching layer utilized by other parts of the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

2 participants