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

Full content of the .gitconfig #1271

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Full content of the .gitconfig #1271

merged 5 commits into from
Dec 10, 2024

Conversation

akurinnoy
Copy link
Contributor

@akurinnoy akurinnoy commented Dec 5, 2024

What does this PR do?

This PR allows displaying the full content of the imported .gitconfig.

Screenshot/screencast of this PR

Screen.Recording.2024-12-05.at.15.55.57.mov

What issues does this PR fix or reference?

resolves eclipse-che/che#23240

Is it tested? How?

see the screencast above

Release Notes

Docs PR

Copy link

openshift-ci bot commented Dec 5, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@che-bot
Copy link
Contributor

che-bot commented Dec 5, 2024

Click here to review and test in web IDE: Contribute

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 97.84483% with 5 lines in your changes missing coverage. Please review.

Project coverage is 91.48%. Comparing base (b5e6780) to head (5d55a7c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...tend/src/pages/UserPreferences/GitConfig/index.tsx 90.56% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1271      +/-   ##
==========================================
- Coverage   91.62%   91.48%   -0.14%     
==========================================
  Files         497      499       +2     
  Lines       45480    45651     +171     
  Branches     3181     3162      -19     
==========================================
+ Hits        41669    41762      +93     
- Misses       3778     3855      +77     
- Partials       33       34       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Dec 5, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1271

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1271", name: che-dashboard}]}}]"

@akurinnoy akurinnoy marked this pull request as ready for review December 5, 2024 13:59
@olexii4
Copy link
Contributor

olexii4 commented Dec 6, 2024

I have two feedbacks:

  1. I think the "Gitconfig" form should display the whole configuration and have abilities to add and remove values. We have an example of the needed implementation for "Additional Git Remotes"
    Знімок екрана 2024-12-06 о 02 28 37

  2. I think we should have the same format for the "Gitconfig" viewer that we already have for the "Import Git Configuration"
    Знімок екрана 2024-12-06 о 02 35 31

@ibuziuk @akurinnoy WDYT?

.deps/problems.md Outdated Show resolved Hide resolved
@akurinnoy
Copy link
Contributor Author

/retest

@akurinnoy
Copy link
Contributor Author

@olexii4 thanks for the review!

I think the "Gitconfig" form should display the whole configuration and have abilities to add and remove values. We have an example of the needed implementation for "Additional Git Remotes"

I agree. Your suggestion is really good and worth implementing as part of another issue. However, the issue only needs to show the full contents of the .gitconfig file, so I decided to do it this way.

I think we should have the same format for the "Gitconfig" viewer that we already have for the "Import Git Configuration"

I'm not sure if I understand "same format" correctly, so please correct me.
If this is about the indentation that gets lost in the config viewer. The library we use to parse/stringify .gitconfig just drops all the indentation. I can handle that, but there may still be some inconsistencies with the original file.
If this is correct, please let me know, so I can add a fix to this PR.

@olexii4
Copy link
Contributor

olexii4 commented Dec 6, 2024

@olexii4 thanks for the review!

I think the "Gitconfig" form should display the whole configuration and have abilities to add and remove values. We have an example of the needed implementation for "Additional Git Remotes"

I agree. Your suggestion is really good and worth implementing as part of another issue. However, the issue only needs to show the full contents of the .gitconfig file, so I decided to do it this way.

I think we should have the same format for the "Gitconfig" viewer that we already have for the "Import Git Configuration"

I'm not sure if I understand "same format" correctly, so please correct me. If this is about the indentation that gets lost in the config viewer. The library we use to parse/stringify .gitconfig just drops all the indentation. I can handle that, but there may still be some inconsistencies with the original file. If this is correct, please let me know, so I can add a fix to this PR.

This is correct, please add a fix to this PR.

@artaleks9
Copy link
Contributor

Verified on Eclipse Che with quay.io/eclipse/che-dashboard:pr-1271 - the functionality works as expected.

@akurinnoy
Copy link
Contributor Author

@olexii4 please take a look one more time.

Screenshot 2024-12-06 at 17 25 48

Copy link

github-actions bot commented Dec 6, 2024

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1271

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1271", name: che-dashboard}]}}]"

Copy link
Contributor

@olexii4 olexii4 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

openshift-ci bot commented Dec 6, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akurinnoy, artaleks9, olexii4

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@akurinnoy akurinnoy merged commit 7e3b827 into main Dec 10, 2024
20 of 21 checks passed
@akurinnoy akurinnoy deleted the full-gitconfig branch December 10, 2024 16:35
@devspacesbuild
Copy link

Build 3.19 :: dashboard_3.x/601: Console, Changes, Git Data

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

Build 3.19 :: dashboard_3.x/601: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/8266 triggered

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

Build 3.19 :: get-sources-rhpkg-container-build_3.x/8345: FAILURE

devspaces-operator-bundle : 3.x :: Failed in 66155749 : BREW:BUILD/STATUS:UNKNOWN
FAILURE:; copied to quay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display full content of the gitconfig on the dashboard
5 participants