question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐞 BUG?] Empty README.md with YAML header gets overwritten for datasets

See original GitHub issue

Is your feature request related to a problem? Please describe. When I have a README.md with a YAML header and no text content, I get the No dataset card yet New: Create and edit your dataset card directly on the website! Create Dataset Card which, if clicked, will create a new empty README.md and overwrite the committed one with header info (and therefore remove all tags).

e.g. For a private repo in one of my orgs, this button links to https://huggingface.co/datasets/ORG/DATASET/new/main/?filename=README.md even though the file already exists.

Describe the solution you’d like Have the button check if there is a README.md file and open that for editing instead of overwriting with an empty one.

Describe alternatives you’ve considered N/A

Additional context This happened with a private repo; not sure this detail matters.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
julien-ccommented, Mar 10, 2022

(i think i broke this, btw 😅)

2reactions
Pierrcicommented, Mar 7, 2022

Closing this since we deployed a fix server-side, thanks @cakiki! Feel free to reopen if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command-line options --css and --include-in-header override ...
Currently, there is only one clear way to override: use the commandline argument to override YAML metadata or defaults file.
Read more >
Renku Command Line
README.md and README.rst will never be overwritten. .gitignore will be appended to to prevent files accidentally getting committed.
Read more >
How can I override default pandoc options using yaml header ...
I'm trying to use Github Formatted Markdown(GFM) to generate an MS Word ... But when I specify it in my yaml header, it...
Read more >
NEWS - CRAN
The header-includes field in the YAML metadata will no longer be overwritten by the command-line option --include-in-header (thanks, @crsh @mnazarov, ...
Read more >
MeiliSearch is a powerful, fast, open-source, easy to use and ...
meilisearch/MeiliSearch, MeiliSearch is a powerful, fast, open-source, easy to use and deploy search engine. Both searching and indexing are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found