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

Enable basic Maintainer token role UI inputs #136

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

subbuvenk-atlas
Copy link
Contributor

@subbuvenk-atlas subbuvenk-atlas commented Dec 10, 2024

Description

Adds UI to collect input to enable Maintainer role on tokens being used for integration. The additional inputs include - group name, webhook ID and webhook's secret token. The non-Owner route will involve some manual setup from users due to lack of privileges, which will be then setup using these inputs.

A new Auth UI step is added for Maintainer token usage for Webhooks setup. The state is persisted so that users can come back and resume Webhook setup from where they left off. Some guidance for this setup is also included in this UI step but will be polished further pending feedback from product.

All changes are behind a FF preserving existing flow + Owner token usage.

Checklist

Please ensure that each of these items has been addressed:

  • I have tested these changes in my local environment
  • I have added/modified tests as applicable to cover these changes
  • (Atlassian contributors only) I have removed any Atlassian-internal changes including internal modules, references to internal tickets, and internal wiki links

@subbuvenk-atlas subbuvenk-atlas requested a review from a team as a code owner December 10, 2024 05:23
@@ -25,6 +25,7 @@ module.exports = {
},
],
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-empty-function': 'off',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was blocking my builds occasionally and does not specify exactly what the issue might be. Following https://stackoverflow.com/questions/76457373/cannot-read-properties-of-undefined-reading-gettokens-occurred-while-linting.

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like that rule misfires when applied to React code.

@PatrickAtlassian
Copy link
Contributor

PatrickAtlassian commented Dec 10, 2024

Has Shu looked at this UI yet? Im wondering if we should get a double check of this, and also see if we need to add some text explaining the differences between the inputs, and how to get them

@subbuvenk-atlas subbuvenk-atlas merged commit e130e9d into main Dec 17, 2024
6 checks passed
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.

3 participants