cloudfoundry / cloudfoundry/stratos

The `select cf` page is loaded fully before automatically forwarding to the only cf

Open
#1,659 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

maintenance
Dominant language
TypeScript
Stars
267
Forks
137
Avg merge
5h 14m
Merged PRs (30d)
77

Description

Added a breakpoint in the cf service and it looked like the page along with list was shown in full.. even when there's an imminent redirect

Also saw a possibly related error in CfOrgCardComponent. Think at the time i was navigating directly to the url

  ngOnInit() {
    const userRole$ = this.cfEndpointService.currentUser$.pipe(
      switchMap(u => {
        // FIX ME: This is null if the endpoint is disconnected. 
        if (!u) {

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the select cf navigation and inspect the redirect path, then review CfOrgCardComponent.ngOnInit and its cfEndpointService.currentUser$ handling. Trace the behavior when the endpoint is disconnected or the URL is opened directly; done means the full page is not rendered before an imminent redirect and the reported null state is handled without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.