forcedotcom / devops-center-feedback

61 stars 2 forks source link

Unable to add dev environment to DevOps #219

Closed noronmeridian closed 1 year ago

noronmeridian commented 1 year ago

Describe the bug

I reinstalled DevOps and I Delete the DevOps center authentication providers.

I attempt to manually recreate them which probably causes the issue that I can't add the dev environment to DevOps.

I was following the steps on the configuration guide, but when I try to add the dev environment and click on "Log In" button the system redirects to https://login.salesforce.com/ instead of https://test.salesforce.com/.

The issue occurs even if I don't check the "Used for development" box.

During configuration I mistakenly deleted the three Auth. Providers automatically created when enabling the DevOps Center. So I manually created them again, without changing the default configuration.

I think this can cause the problem, but I don't know how to properly configure the Auth.Provider named DEVOPS_CENTER_TEST.

To Reproduce the issue -

Delete the following Auth. Providers: DEVOPS_CENTER_GITHUB, DEVOPS_CENTER_PROD, DEVOPS_CENTER_TEST Manually create them by providing only "Name" and "URL Suffix", leaving any other field blank. Open the DevOps Center App, open a project then go to "Settings" Click "Add" Choose a Name for your environment, then select "Sandbox/Scratch Org" Check the "Used for development" box (this step is optional, it doesn't work both ways) Click on the "Log In" button The system redirects to https://login.salesforce.com/

image Expected behavior Be redirected to https://test.salesforce.com/ image

ekapner commented 1 year ago

Per the docs, you should open a GitHub issue if you delete the auth providers. https://help.salesforce.com/s/articleView?id=sf.devops_center_uninstall_auth_providers.htm

kylewalke commented 1 year ago

Hi @noronmeridian, we appreciate you reporting this bug to us! Are you able to alter the url in the "Devops Center Test" url to replace https://login.salesforce.com with https://test.salesforce.com/ like below?

Screen Shot 2022-09-28 at 7 59 56 PM

kylewalke commented 1 year ago

@noronmeridian After more investigation, I've discovered that there are some steps we need to take to re-enable your org for DevOps Center specifically. Please delete your manually created Auth Provider records and we'll take care of the rest. We are working on it and will notify you here when your org is ready to reinstall DevOps Center. Please hang tight and thank you for your patience!

noronmeridian commented 1 year ago

Kyle, I also open a ticket with Salesforce. Yesterday they contacted me and ask me to delete “DevOps Center Test<javascript:srcUp(%27%2F0SO4U0000004Dfz%3Fisdtp%3Dp1%27);>” provider, and they will create it. today I verified that they recreated DevOps Center Test<javascript:srcUp(%27%2F0SO4U0000004Dfz%3Fisdtp%3Dp1%27);>.

And now I can add Dev environment to Devops Center.

For now, its look like it’s working.

You can close the case

Nissim Oron Salesforce Administrator O: (646) 502-3441 M: (917) 742-9392 @.**@.>

From: Kyle Walker @.> Sent: Thursday, September 29, 2022 1:17 PM To: forcedotcom/devops-center-feedback @.> Cc: Nissim Oron @.>; Mention @.> Subject: Re: [forcedotcom/devops-center-feedback] Unable to add dev environment to DevOps (Issue #219)

@noronmeridian After more investigation, I've discovered that there are some steps we need to take to re-enable your org for DevOps Center specifically. We are working on it and will notify you here when your org is ready to reinstall DevOps

@noronmeridianhttps://urldefense.com/v3/__https:/github.com/noronmeridian__;!!BroYp3KA47Vu!OBc5nWWF4GaZSBEupB1aufQrJPzhu7_0yMTMnAxTwlBWkGWERLdqz67i_s5G_uYWFT3WPFE4_XeFIEw-1uNRJ4zdCPU$ After more investigation, I've discovered that there are some steps we need to take to re-enable your org for DevOps Center specifically. We are working on it and will notify you here when your org is ready to reinstall DevOps Center. Please hang tight and thank you for your patience!

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/forcedotcom/devops-center-feedback/issues/219*issuecomment-1262574029__;Iw!!BroYp3KA47Vu!OBc5nWWF4GaZSBEupB1aufQrJPzhu7_0yMTMnAxTwlBWkGWERLdqz67i_s5G_uYWFT3WPFE4_XeFIEw-1uNRHXGFzcI$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AULFJ54YCBH5B456W5JZTE3WAXFJDANCNFSM6AAAAAAQX2GBVU__;!!BroYp3KA47Vu!OBc5nWWF4GaZSBEupB1aufQrJPzhu7_0yMTMnAxTwlBWkGWERLdqz67i_s5G_uYWFT3WPFE4_XeFIEw-1uNRPoJxmok$. You are receiving this because you were mentioned.Message ID: @.**@.>>

This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. If you have received this communication in error, please immediately notify the sender and delete the message from your system.

kylewalke commented 1 year ago

Oh, great! Glad this is resolved for you. Thank you for lettings us know!