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

Hotfix/debug routing #848

Merged
merged 2 commits into from
Feb 23, 2017
Merged

Hotfix/debug routing #848

merged 2 commits into from
Feb 23, 2017

Conversation

cliffmeyers
Copy link
Contributor

@cliffmeyers cliffmeyers commented Feb 22, 2017

Description

  • Added a utility to debug routing
  • Set jenkins-instance/logging/categories:io.jenkins.blueocean.web.routing to DEBUG in local storage to use.

Submitter checklist

  • Link to JIRA ticket in description, if appropriate.
  • Change is code complete and matches issue description
  • Appropriate unit or acceptance tests or explanation to why this change has no tests
  • Reviewer's manual test instructions provided in PR description. See Reviewer's first task below.
  • Ran Acceptance Test Harness against PR changes.

Reviewer checklist

  • Run the changes and verified the change matches the issue description
  • Reviewed the code
  • Verified that the appropriate tests have been written or valid explanation given

@reviewbybees

const path = currentRoute.props.path !== '/' ? currentRoute.props.path : '';
pathParts.push(path);
// add a 'node end' marker at the end so we can shorten the fully-qualified path later
routes.unshift(...currentRoute.props.children, NODE_END_MARKER);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems you could do this recursively more easily

Copy link
Collaborator

@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

Seems useful

Copy link
Member

@tfennelly tfennelly left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@michaelneale
Copy link
Member

🐝 ATH is happy too

@cliffmeyers cliffmeyers merged commit a482c7b into master Feb 23, 2017
@cliffmeyers cliffmeyers deleted the hotfix/debug-routing branch February 23, 2017 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants