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

feat: Add --saas CLI arg to skip self-hosted or SaaS selection step #678

Merged
merged 5 commits into from
Sep 27, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Sep 26, 2024

Currently, our in-product onboarding shows the --url option because we want to skip the "Are you using Sentry.io or self-hosted" question (in-product, we already know the URL).

From the wizard perspective, we default to the SaaS url if users don't pass a custom--url. However, if users pass a custom URL that is the SaaS URL we unnecessarily inject url params into code where it's not strictly necessary.

The new --saas flag introduced in this PR will skip over the self-hosted question and if it's set to true assume that users are using SaaS. We can display --saas in the UI (for SaaS) instead of --url, making the snippet a bit shorter and avoiding to unnecessarily inject the url params into user code.

Copy link

github-actions bot commented Sep 26, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against c82d2aa

@@ -60,6 +60,11 @@ const argv = yargs(hideBin(process.argv))
alias: 'url',
describe: 'The url to your Sentry installation\nenv: SENTRY_WIZARD_URL',
})
.option('saas', {
Copy link
Member Author

@Lms24 Lms24 Sep 26, 2024

Choose a reason for hiding this comment

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

I noticed we didn't add --project and --org to this list. @obostjancic was this on purpose? If not, I'll quickly add it. This ensures that --help lists the two options in the help message.

Copy link
Member

Choose a reason for hiding this comment

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

I also noticed that it's missing from the readme file

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I think the readme was generally a bit outdated. I updated it, along with adding --project and --org to the readme and --help output in a follow-up PR: #679

@Lms24 Lms24 self-assigned this Sep 26, 2024
@Lms24 Lms24 merged commit 7ed2c93 into master Sep 27, 2024
13 checks passed
@Lms24 Lms24 deleted the lms/feat-saas-arg branch September 27, 2024 10:40
matejminar added a commit to getsentry/sentry that referenced this pull request Sep 27, 2024
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