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

Use default formatter when profile_url_formatter is nil #54

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Conversation

kimbilida
Copy link
Contributor

@kimbilida kimbilida commented Jul 6, 2022

I'm not sure why we have a nil formatter coming in from shopify but regardless we should handle the case when it's nil. This change makes it more similar to the original code that uses the default formatter when it's nil.

I've tested this revision in shopify/shopify and the tests are passing.

Questions:
Should I bump the version as part of this PR?

see: #52

@rafaelfranca
Copy link
Member

I think we should find what is setting this to nil, because the default is already handled here

default: DefaultProfileFormatter

lib/app_profiler/railtie.rb Outdated Show resolved Hide resolved
@kimbilida kimbilida marked this pull request as ready for review July 12, 2022 21:15
Set default formatter in initializer

don't redirect if formatter is nil

pr review

fix load order

update changelog
@kimbilida kimbilida merged commit 8efded1 into main Jul 12, 2022
@kimbilida kimbilida deleted the test-bug branch July 12, 2022 22:36
@shopify-shipit shopify-shipit bot temporarily deployed to production September 23, 2022 18:56 Inactive
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants