-
Notifications
You must be signed in to change notification settings - Fork 530
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
FIX Jenkins 39809 404 pages appear only in pipeline page children #622
FIX Jenkins 39809 404 pages appear only in pipeline page children #622
Conversation
…move not found to core
…ages_appear_only_in_pipelinePage_children
…09_404_pages_appear_only_in_pipelinePage_children
…09_404_pages_appear_only_in_pipelinePage_children
…] Use #616 to fix extension bug. thx tfennellyg ds
…] Fix deps for the builder and remove dups in package.son
…] add FIXME note and raise version
…] Use notFound component
…] use new plugin version
…ages_appear_only_in_pipelinePage_children
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
… shrinkCrap so much. I have lost so many hours on that crap tool. Unbelievable
Some things I tried: Activity screen with non existing pipeline name: works So if the scope of this is narrowed to be those - then 🐝 from be (and thanks for ATH too!) Can you make a follow on ticket for Ivan or something to deal with the results screen not showing 404 @scherler ? |
@@ -90,6 +90,9 @@ export class ActivityService extends BunkerService { | |||
run.result = 'UNKNOWN'; | |||
} | |||
return this.setItem(run); | |||
}) | |||
.catch(err => { | |||
console.log('There had been an error while trying to get the data.', err); // FIXME: Ivan what is the way to return an "error" opbject so underlying component are aware of the problem and can react |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"There has" - as past tense doesn't make sense here 🐜
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this is where it knows it is a 404, eg on results screen:
blueocean.js:1688 GET http://localhost:8080/jenkins/blue/rest/organizations/jenkins/pipelines/keitha/branches/fdsfd/runs/3/ 404 (Not Found)request @ blueocean.js:1688dedupe @ blueocean.js:4475dedupe @ blueocean.js:4498rawFetchJSON @ blueocean.js:1699fetchJSON @ blueocean.js:1765fetchActivity @ blueocean.js:2694_fetchRun @ jenkins-js-extension.js:33974componentWillMount @ jenkins-js-extension.js:33948target.(anonymous function) @ jenkins-js-extension.js:9126performInitialMount @ blueocean.js:79317mountComponent @ blueocean.js:79224mountComponent @ blueocean.js:86237updateChildren @ blueocean.js:77502_reconcilerUpdateChildren @ blueocean.js:85090_updateChildren @ blueocean.js:85189updateChildren @ blueocean.js:85176_updateDOMChildren @ blueocean.js:80934updateComponent @ blueocean.js:80752receiveComponent @ blueocean.js:80710receiveComponent @ blueocean.js:86316_updateRenderedComponent @ blueocean.js:79718_performComponentUpdate @ blueocean.js:79688updateComponent @ blueocean.js:79609receiveComponent @ blueocean.js:79511receiveComponent @ blueocean.js:86316_updateRenderedComponent @ blueocean.js:79718_performComponentUpdate @ blueocean.js:79688updateComponent @ blueocean.js:79609performUpdateIfNecessary @ blueocean.js:79525performUpdateIfNecessary @ blueocean.js:86348runBatchedUpdates @ blueocean.js:87387perform @ blueocean.js:89435perform @ blueocean.js:89435perform @ blueocean.js:87326flushBatchedUpdates @ blueocean.js:87409closeAll @ blueocean.js:89501perform @ blueocean.js:89448batchedUpdates @ blueocean.js:83118enqueueUpdate @ blueocean.js:87437enqueueUpdate @ blueocean.js:87045enqueueForceUpdate @ blueocean.js:87178ReactComponent.forceUpdate @ blueocean.js:78557(anonymous function) @ jenkins-js-extension.js:9158Reaction.runReaction @ jenkins-js-extension.js:11108runReactions @ blueocean.js:59540transactionEnd @ blueocean.js:59612executeAction @ blueocean.js:58863res @ blueocean.js:58831(anonymous function) @ blueocean.js:3874
blueocean.js:2706 There had been an error while trying to get the data. Error: Not Found(…)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I talked to @imeredith and he wanted to extend the pager to return an object such as:
{ data, error, state }
That will hopefully go away anyway but will fix the working.
@@ -15,7 +15,7 @@ | |||
}, | |||
"devDependencies": { | |||
"@jenkins-cd/eslint-config-jenkins": "0.0.2", | |||
"@jenkins-cd/js-builder": "0.0.47", | |||
"@jenkins-cd/js-builder": "0.0.49-beta6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder what goodness this brings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is fixing a bug that we discovered when I moved the NotFound to core and had to introduce react-router
as dep. Without that version that leads to an exception for the bundle. Kudos to @tfennelly
@michaelneale if you want we keep this PR open. however I personally try to get PRs quickly in (still remembering the endless i18n branch which costs extra time to keep it in sync with master. |
https://issues.jenkins-ci.org/browse/JENKINS-40032 is the followup for @imeredith |
Description
See JENKINS-39809.
I left a FIXME note for @imeredith since I am not yet familiar with the mobx stuff and we need to return some object that indicates that we have to show the 404.
AT PR: jenkinsci/blueocean-acceptance-test#71
Passing ATH: https://ci.blueocean.io/blue/organizations/jenkins/ATH-Jenkinsfile/detail/JENKINS-39809_404_pages_appear_only_in_pipelinePage_children/4
Submitter checklist
Reviewer checklist
@jenkinsci/code-reviewers @reviewbybees