Skip to content

fix: graph language #4308

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

Merged
merged 3 commits into from
Feb 15, 2022
Merged

fix: graph language #4308

merged 3 commits into from
Feb 15, 2022

Conversation

sgrove
Copy link
Contributor

@sgrove sgrove commented Feb 15, 2022

Summary

Fixes language in netlify.toml/graph to be a scalar and not an array, which was causing the wrong language to be emitted for graph handlers


  • Make sure the status checks below are successful ✅

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
joakime Joakim Erdfelt

Verified

This commit was signed with the committer’s verified signature.
joakime Joakim Erdfelt
@sgrove sgrove self-assigned this Feb 15, 2022
@sgrove sgrove changed the title Graph fix language fix: fix graph language Feb 15, 2022
@sgrove sgrove changed the title fix: fix graph language fix: graph language Feb 15, 2022
@github-actions github-actions bot added the type: bug code to address defects in shipped code label Feb 15, 2022
@sgrove sgrove changed the title fix: graph language chore: graph language Feb 15, 2022
@github-actions
Copy link

github-actions bot commented Feb 15, 2022

📊 Benchmark results

Comparing with 8b697d9

Package size: 442 MB

⬇️ 0.00% decrease vs. 8b697d9

^  439 MB  439 MB  439 MB  439 MB  439 MB  439 MB  439 MB  439 MB  439 MB  439 MB  439 MB  439 MB  442 MB 
│   ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Feb 15, 2022
@sgrove sgrove requested a review from erezrokah February 15, 2022 14:56
Copy link
Contributor

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

Hi @sgrove, left one comment

@@ -217,8 +217,7 @@ const getNetlifyGraphConfig = async ({ command, options, settings }) => {
const moduleType =
(userSpecifiedConfig.moduleType && userSpecifiedConfig.moduleType.split(path.sep)) ||
defaultFrameworkConfig.moduleType
const language =
(userSpecifiedConfig.language && userSpecifiedConfig.language.split(path.sep)) || autodetectedLanguage
const language = (userSpecifiedConfig.language && userSpecifiedConfig.language) || autodetectedLanguage
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const language = (userSpecifiedConfig.language && userSpecifiedConfig.language) || autodetectedLanguage
const language = userSpecifiedConfig.language || autodetectedLanguage

It seems userSpecifiedConfig.language is duplicated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be fixed!

Verified

This commit was signed with the committer’s verified signature.
joakime Joakim Erdfelt
@erezrokah erezrokah changed the title chore: graph language fix: graph language Feb 15, 2022
@erezrokah
Copy link
Contributor

erezrokah commented Feb 15, 2022

@sgrove when you squash merge this PR, make sure to use fix: as the prefix of the commit message to trigger a new release

@erezrokah erezrokah enabled auto-merge (squash) February 15, 2022 15:27
@erezrokah erezrokah merged commit f8e1953 into main Feb 15, 2022
@erezrokah erezrokah deleted the graph-fix-language branch February 15, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants