Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ewels
Copy link
Member

@ewels ewels commented Jul 29, 2020

Fix issues with the schema build code that was doing weird stuff when making a new schema - bug found by @mashehu

Also revert the template JSON schema back to 4-space padding instead of 2, to limit the diffs when people edit their schema from the template.

ewels added 2 commits July 29, 2020 10:50
This is because the Python library dumps JSON with 4-space padding. So if the template has 2-space, if we make even the tiniest change the the diff replaces the whole schema with whitespace changes.
@ewels ewels requested a review from mashehu July 29, 2020 09:11
@ewels
Copy link
Member Author

ewels commented Jul 29, 2020

@codecov

This comment has been minimized.

@mashehu
Copy link
Contributor

mashehu commented Jul 29, 2020

I think we should favor the web builder, so the dialog should be a [Y/n].
I don't have enough familiarity with cli layouting (yet), but could we indent the launch dialog and have the space between "🚀" and "Launch" not ignored:
Screenshot 2020-07-29 at 11 23 05

@ewels
Copy link
Member Author

ewels commented Jul 29, 2020

I think we should favor the web builder, so the dialog should be a [Y/n].

It did have this previously, but when I switched to using rich for this I removed the defaults for all confirmation prompts. At the time I was thinking that it was better to have people actively think about it rather than just hitting enter, but maybe you're right and we should set it to true by default in this case.

have the space between "🚀" and "Launch" not ignored:

Odd, that has a space for me:

image

I'll double-space it and add some indentation.

@ewels
Copy link
Member Author

ewels commented Jul 29, 2020

image

@mashehu
Copy link
Contributor

mashehu commented Jul 29, 2020

Duplication bug seems to be fixed now. One more bug: the command line keeps waiting for form completion, even after I clicked finished in the browser.

@ewels
Copy link
Member Author

ewels commented Jul 29, 2020

Good spot, fixed in nf-core/website#467

@ewels
Copy link
Member Author

ewels commented Jul 29, 2020

Now that the website bug has been fixed and merged / deployed, this should work as advertised 👍🏻

@mashehu
Copy link
Contributor

mashehu commented Jul 29, 2020

Yes, works as advertised!

@ewels ewels merged commit 24aa954 into nf-core:dev Jul 29, 2020
@ewels ewels deleted the schema-build-bug branch July 29, 2020 13:54
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