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

Navigate filters sometime throw errors when navigating to builds #1942

Closed
benjaminapetersen opened this issue Aug 16, 2017 · 5 comments
Closed
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/P2
Milestone

Comments

@benjaminapetersen
Copy link
Contributor

navigateResourceURL and navigateEventInvolvedObjectURL (and perhaps the others) occasionally cause an error to be thrown when navigating to builds:

screen shot 2017-08-16 at 11 47 41 am

error on line 105:

screen shot 2017-08-16 at 11 49 50 am

The breadcrumbs are not generated correctly due to the URL having a slightly different format.
Breadcrumb when error thrown:

screen shot 2017-08-16 at 11 51 24 am

Breadcrumb when error not thrown:
screen shot 2017-08-16 at 11 51 31 am

URL generating breadcrumbs with error:

https://localhost:9000/dev-console/project/myproject/browse/builds-noconfig/mmmmmm-cake-1?tab=details

URL generating correct breadcrumbs:

https://localhost:9000/dev-console/project/myproject/browse/builds/mmmmmm-cake/mmmmmm-cake-1?tab=details

So problem seems to be that the navigate* functions may think a build has no build config.

@spadgett

@benjaminapetersen
Copy link
Contributor Author

This can be reproduced on the Monitoring page and in the Notification drawer.

Resolution per conversation is probably to look @ the Build Config annotation on the build rather than check the URL (via new ownerRefs).

@spadgett
Copy link
Member

We might just remove the build config name from the URL like we did for replication controllers owned by a deployment config. Then you can build the URL from just the kind and name without needing other data. If we do that, we'd want a redirect for the old URL for old links.

We probably have a problem for pipeline builds vs regular builds as well since we use a pipeline URL segment for pipeline builds.

@benjaminapetersen benjaminapetersen added kind/bug Categorizes issue or PR as related to a bug. priority/P2 labels Aug 16, 2017
@spadgett spadgett self-assigned this Aug 17, 2017
@benjaminapetersen
Copy link
Contributor Author

Hmm. Yeah, this one does seem complex then, since we have so many routes using BuildController:

.when('/project/:project/browse/builds/:buildconfig/:build', {
  controller: 'BuildController',
  //
})
.when('/project/:project/browse/pipelines/:buildconfig/:build', {
  controller: 'BuildController',
  //
})
.when('/project/:project/browse/builds-noconfig/:build', {
  controller: 'BuildController',
  //
})
.when('/project/:project/browse/pipelines-noconfig/:build', {
  controller: 'BuildController',
  //
})

@jwforres
Copy link
Member

The javascript error is being fixed in #2403
We will make the longer term URL change next release

openshift-merge-robot added a commit that referenced this issue Oct 31, 2017
…ilter-error

Automatic merge from submit-queue.

Low risk fix for issue 1942: keep build breadcrumbs from throwing error

Partial fix for issue #1942.  See the issue for details.

Per conversation on irc.
@jwforres @spadgett
@spadgett spadgett added this to the 3.9.0 milestone Jan 16, 2018
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/P2
Projects
None yet
Development

No branches or pull requests

5 participants