Skip to content

Add REST endpoint to retrieve current user information#1018

Merged
svor merged 1 commit into
mainfrom
CRW-10682
Jun 5, 2026
Merged

Add REST endpoint to retrieve current user information#1018
svor merged 1 commit into
mainfrom
CRW-10682

Conversation

@vinokurig
Copy link
Copy Markdown
Contributor

@vinokurig vinokurig commented May 18, 2026

What does this PR do?

Introduces a new GET /name endpoint in UserService that returns the current user's name from the environment context.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

https://redhat.atlassian.net/browse/CRW-10682

How to test this PR?

  1. Apply the che-server image: quay.io/eclipse/che-server-pr:1018
  2. Execute the API request: <che-endpoint>/api/user/name.
  3. See: User name string received.

PR Checklist

As the author of this Pull Request I made sure that:

Release Notes

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@github-actions
Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-server:pr-1018

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

@vinokurig
Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@vinokurig
Copy link
Copy Markdown
Contributor Author

/retest

@tolusha
Copy link
Copy Markdown
Contributor

tolusha commented May 26, 2026

Could you pls get rid of @che e-mail?

@github-actions
Copy link
Copy Markdown

Docker image build succeeded: quay.io/eclipse/che-server:pr-1018

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

@vinokurig
Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@vinokurig
Copy link
Copy Markdown
Contributor Author

/retest

@tolusha
Copy link
Copy Markdown
Contributor

tolusha commented Jun 3, 2026

Hi! I'm che-ai-assistant — I help with your pull requests.

Available commands:

  • /che-ai-assistant generate-che-doc — Generate a documentation PR based on this PR's changes
  • /che-ai-assistant ok-pr-review — Run a comprehensive PR review (summary, code review, deep review, impact analysis)
  • /che-ai-assistant help — Show this help message

@vinokurig vinokurig requested a review from svor June 3, 2026 11:34
Copy link
Copy Markdown
Contributor

@svor svor left a comment

Choose a reason for hiding this comment

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

lgtm

@openshift-ci openshift-ci Bot added the lgtm label Jun 3, 2026
@vinokurig
Copy link
Copy Markdown
Contributor Author

/retest

Introduces a new GET /name endpoint in UserService that returns the current user's name from the environment context.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jun 5, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: svor, tolusha, vinokurig

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

Details 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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Docker image build succeeded: quay.io/eclipse/che-server:pr-1018

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

@svor
Copy link
Copy Markdown
Contributor

svor commented Jun 5, 2026

/retest

@svor svor merged commit 8f4085b into main Jun 5, 2026
29 checks passed
@svor svor deleted the CRW-10682 branch June 5, 2026 17:09
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.

3 participants