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/time harmonizer defend npe #834

Closed
wants to merge 1 commit into from

Conversation

cliffmeyers
Copy link
Contributor

Description

  • Defend against the function not being made available on context.config - this was breaking storybooks in personalization, and also requires some mocking in PipelineCard-spec that would be nice to avoid.

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

@cliffmeyers
Copy link
Contributor Author

cliffmeyers commented Feb 16, 2017

cc @scherler

I have a larger question which is why we are passing this function down in the React context? Couldn't we just export the function from core-js? And let blueocean-web import it and set the skew value in appropriate place? Then we wouldn't have to worry about mocking it out in different places, or worry about it being null.

If you agree that approach is reasonable, I am happy to make the changes in this PR.

@michaelneale
Copy link
Member

🐝

@scherler
Copy link
Collaborator

@ghost
Copy link

ghost commented Feb 25, 2017

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.

@michaelneale
Copy link
Member

any change this fixes this one? https://issues.jenkins-ci.org/browse/JENKINS-42318

@michaelneale
Copy link
Member

@cliffmeyers looks like this one is worth it (no biggie)

@cliffmeyers
Copy link
Contributor Author

@michaelneale looking at the code that produces that error message, I don't think it's related to this change. The error this was fixing was mostly coming up in a unit test or storybook environment if I recall. It would probably be better to make the broader fix discussed above once higher priority items get wrapped up.

@michaelneale
Copy link
Member

@cliffmeyers SGTM

@michaelneale
Copy link
Member

still seeing harmonizer errors - so this and more is still relevant IMO

@cliffmeyers
Copy link
Contributor Author

@michaelneale if we merge this now, that's fine, but let's add a ticket to describe the better fix and slap it into the tech debt epic? If you agree w/ that approach, I'll make the ticket later today and the merge this sucker.

@michaelneale
Copy link
Member

michaelneale commented Mar 14, 2017

@cliffmeyers we can leave this if you like - just ensure there is a labelled ticket for it.
@scherler may have some changes making this irrelevant anyway, so I think can close this but keep a link to the branch behind it in the ticket.

Or merge it, if harmless - really not fussed either way (this doesn't stop most of the errors that I can see, but I don't think it would hurt).

@michaelneale
Copy link
Member

Closing this - feel free to resurrect one day if important (just too many olde PRs hanging around)

@michaelneale michaelneale deleted the hotfix/time-harmonizer-depend-npe branch May 17, 2017 00:25
@cliffmeyers cliffmeyers restored the hotfix/time-harmonizer-depend-npe branch September 6, 2017 19:50
@scherler scherler deleted the hotfix/time-harmonizer-depend-npe branch October 10, 2017 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants