Skip to content

Conversation

@om-ukr
Copy link
Collaborator

@om-ukr om-ukr commented Nov 25, 2025

What Is This Change?

How Has This Been Tested?

Basic checks:

  • npm run lint
  • npm run test

Advanced checks:

  • If Atlassian employee & Bitbucket changes: did you test with DC in mind? See Instructions

Recommendations:

  • Update the CHANGELOG if making a user facing change

viewMediaClientConfig: {
authProvider: () =>
Promise.resolve({
token: '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 Code Bugs

The hardcoded empty token and clientId in the media auth provider will prevent media functionality from working properly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeap, this should be replaced by real call to Jira API to get a token.

),
resolve(JSON.stringify(document));
},
// {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔎 Code Readability

The commented-out transformer code should be removed rather than left as dead code.

}

// TODO: Temporary set api version to 3 to get ADF value instead of string(WikiMarkup). At the time we have access to token endpoint v3 should be default for cloud.
(newClient as any).apiVersion = '3';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Maintainability - Best Practices

The type cast (newClient as any).apiVersion = '3' bypasses TypeScript safety and could break if the client structure changes.

setCommentText('');
closeEditorHandler();
}
// if (content && content.trim() !== '') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔎 Code Readability

The commented validation logic should be removed entirely rather than left as commented code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants