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

fix: remove default from boolean values in argilla_template.md #3499

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

alvarobartt
Copy link
Member

@alvarobartt alvarobartt commented Aug 2, 2023

Description

This PR solves an on-going issue when default replacements are not properly applied in the Jinja2 template argilla_template.md for the HuggingFace dataset card generation.

This was initially reported by @nataliaElv and even most of it was already solved at #3366, but the table was using the default statement from Jinja2 and it was not working as expected.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

(Please describe the tests that you ran to verify your changes. And ideally, reference tests)

  • Re-generated card including different boolean options to see whether those are properly included in the table as is, instead of being replaced by True by default

Checklist

  • I added relevant documentation
  • follows the style guidelines of this project
  • I did a self-review of my code
  • I made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@alvarobartt alvarobartt added this to the v1.14.0 milestone Aug 2, 2023
@gabrielmbmb gabrielmbmb merged commit e0a4ebb into develop Aug 2, 2023
@gabrielmbmb gabrielmbmb deleted the fix/remove-boolean-defaults-from-jinja2 branch August 2, 2023 14:31
keithCuniah pushed a commit that referenced this pull request Aug 3, 2023
…3499)

# Description

This PR solves an on-going issue when default replacements are not
properly applied in the Jinja2 template `argilla_template.md` for the
HuggingFace dataset card generation.

This was initially reported by @nataliaElv and even most of it was
already solved at #3366, but
the table was using the `default` statement from Jinja2 and it was not
working as expected.

**Type of change**

- [X] Bug fix (non-breaking change which fixes an issue)

**How Has This Been Tested**

(Please describe the tests that you ran to verify your changes. And
ideally, reference `tests`)

- [X] Re-generated card including different `boolean` options to see
whether those are properly included in the table as is, instead of being
replaced by `True` by default

**Checklist**

- [ ] I added relevant documentation
- [x] follows the style guidelines of this project
- [x] I did a self-review of my code
- [ ] I made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK)
(see text above)
- [x] I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
@alvarobartt alvarobartt self-assigned this Aug 10, 2023
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