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

chore: Reduce Kubernetes namespace list request #772

Merged
merged 3 commits into from
Mar 3, 2025
Merged

chore: Reduce Kubernetes namespace list request #772

merged 3 commits into from
Mar 3, 2025

Conversation

tolusha
Copy link
Contributor

@tolusha tolusha commented Feb 27, 2025

What does this PR do?

chore: Reduce Kubernetes namespace list request

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

eclipse-che/che#23354

How to test this PR?

Deploy Che with server image from the PR, try to open a user dashboard.

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.

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha
Copy link
Contributor Author

tolusha commented Feb 28, 2025

/retest

Comment on lines -153 to -158
@Override
public Optional<PersonalAccessToken> get(Subject cheUser, String scmServerUrl)
throws ScmConfigurationPersistenceException, ScmCommunicationException {
return doGetPersonalAccessTokens(cheUser, null, scmServerUrl).stream().findFirst();
}

Copy link
Member

Choose a reason for hiding this comment

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

@tolusha is it just cleanup since this method is not used in general?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it isn't used

fixup
Signed-off-by: Anatolii Bazko <abazko@redhat.com>

public interface GitUserDataFetcher {

/**
* Retrieve a {@link GitUserData} object from concrete scm provider. If OAuthProvider is not
* configured, then personal access token should be taken into account.
*
* @param namespaceName - the user's namespace name.
Copy link
Contributor

@vinokurig vinokurig Mar 3, 2025

Choose a reason for hiding this comment

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

Please describe what will happen if null is passed.

Copy link

openshift-ci bot commented Mar 3, 2025

@tolusha: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v14-gitlab-with-oauth-setup-flow 777ab10 link true /test v14-gitlab-with-oauth-setup-flow

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@ibuziuk ibuziuk requested review from dmytro-ndp and artaleks9 March 3, 2025 12:35
@ibuziuk
Copy link
Member

ibuziuk commented Mar 3, 2025

@artaleks9 please, take a look at the failing test
@dmytro-ndp please, review as well since we need to cherry-pick it to 7.98.x

@artaleks9
Copy link
Contributor

@ibuziuk the gitlab-with-oauth-setup-flow is fail due to change locator in the editor, I'm working on fix -> eclipse-che/che#23365

The functionality works properly.

Copy link

openshift-ci bot commented Mar 3, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

@ibuziuk ibuziuk merged commit 5c0f74d into main Mar 3, 2025
26 of 27 checks passed
@ibuziuk ibuziuk deleted the 23354 branch March 3, 2025 16:24
@devspacesbuild
Copy link

Build 3.20 :: server_3.x/386: Console, Changes, Git Data

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

@devspacesbuild
Copy link

Build 3.20 :: server_3.x/386: SUCCESS

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

@devspacesbuild
Copy link

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.

None yet

5 participants