che icon indicating copy to clipboard operation
che copied to clipboard

Improve a behavior when try to commit changes for a public repository factory without PAT/OAuth setup

Open artaleks9 opened this issue 1 year ago • 5 comments

Is your enhancement related to a problem? Please describe

When try to commit changes for launched factory from a public repository without any PAT/OAuth setup, is appeared the dialog error box, that looks not user friendly and correct.

public-factory-no-pat-oauth

Describe the solution you'd like

I think, it should work differently, firstly, to avoid an appearing this error dialog box. Then, may be, allow to commit with some default values. I would also think about Push changes is allowed operation for this case or not, it's possible, this is theme of a separate issue. Also take a look on the fact, that the Gitconfig is empty in the UserPreferences, what is not correct, it seems.

gitconfig-public-factory-no-pat-oauth

Describe alternatives you've considered

No response

Additional context

No response

artaleks9 avatar Oct 12 '23 12:10 artaleks9

@azatsarynnyy @RomanNikitenko @l0rd wondering if it would be technically possible to customize the poup and a add a link that redirects to /dashboard/#/user-preferences?tab=gitconfig that would allow user to setup username / email

public-factory-no-pat-oauth

I'm not a huge fan of the placeholder approach of creating default .gitconfig with a dummy name / email to be honest

ibuziuk avatar Dec 04 '23 13:12 ibuziuk

It shouldn't be hard to customize this dialog: https://github.com/che-incubator/che-code/blob/1eacbf59f30a4d628e5909f231c18a7293a37cbb/code/extensions/git/src/commands.ts#L3782-L3783

azatsarynnyy avatar Dec 04 '23 13:12 azatsarynnyy

@ibuziuk @azatsarynnyy Does it mean, this issue can be reassigned to team/B and it will be planned to resolve ?

artaleks9 avatar Feb 12 '24 11:02 artaleks9

My question is related to this issue, because two E2E UI tests are failing and their fix up depends on a solution of the current issue.

artaleks9 avatar Feb 21 '24 09:02 artaleks9

I've changed labels according to the solution described in the https://github.com/eclipse-che/che/issues/22603#issuecomment-1838613599

RomanNikitenko avatar Jun 03 '24 09:06 RomanNikitenko