Skip to content

Conversation

@sdzh-atlassian
Copy link
Member

@sdzh-atlassian sdzh-atlassian commented Jan 29, 2026

What Is This Change?

Cleaning up host from the new rovodev authentication process

Important caveat - this also removes the --site-url {siteUrl} flag from rovodevProcessManager

How Has This Been Tested?

Manually, see demo:
https://www.loom.com/share/dbc0bdd7e3a94d378578a3e1fd86dab1

Basic checks:

  • npm run lint
  • npm run test

Rovo Dev has reviewed this pull request
Any suggestions or improvements have been posted as pull request comments.

* and extract the cloud ID from the first one.
*/
async function fetchCloudId(host: string): Promise<string> {
async function fetchCloudId(email: string): Promise<string> {
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 - Unused Variable

The email parameter is unused in this function and should be removed.

Details

📖 Explanation: The email parameter is passed to fetchCloudId but never used since the function only returns a hardcoded placeholder value. This creates dead code and misleading function signature.

Uses AI. Verify results. Give Feedback

@bwieger-atlassian-com
Copy link
Collaborator

bwieger-atlassian-com commented Jan 29, 2026

How do we support the multiple site dis-ambiguation?

// Use a placeholder host since RovoDev doesn't require it
return {
host: rovoDevAuth.host,
host: 'unused-rovodev-host.atlassian.net',
Copy link
Collaborator

@bwieger-atlassian-com bwieger-atlassian-com Jan 29, 2026

Choose a reason for hiding this comment

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

? - This feels sketch

return data.cloudId;
// Return a placeholder cloud ID
// The actual cloud ID will be determined by the backend when needed
return 'rovodev-placeholder-cloudid';
Copy link
Collaborator

Choose a reason for hiding this comment

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

trying a return of a constant seems unusual

@cabella-dot cabella-dot force-pushed the NOISSUE-remove-host-from-login-form branch from ef6dcfd to c07b006 Compare January 29, 2026 20:58
if (newState.state === 'Downloading' || newState.state === 'Starting' || newState.state === 'Started') {
this._userInfo = newState.jiraSiteUserInfo;
this._jiraItemsProvider.setJiraSite(newState.jiraSiteHostname);
// this._jiraItemsProvider.setJiraSite(newState.jiraSiteHostname);
Copy link
Contributor

Choose a reason for hiding this comment

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

@sdzh-atlassian without host, we need to rethink how the issue provider works

if (!creds) {
return undefined;
}
return {
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 - Code Duplication

The duplicate credential conversion logic should be extracted into a helper function to reduce code duplication.

Details

📖 Explanation: The same credential mapping logic appears twice in the getCredentials method, which violates the DRY principle and makes maintenance harder.

Uses AI. Verify results. Give Feedback

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.

4 participants