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

Add hints into logs #19

Closed
thibaudcolas opened this issue Feb 19, 2020 · 1 comment
Closed

Add hints into logs #19

thibaudcolas opened this issue Feb 19, 2020 · 1 comment
Labels
decision needed This requires a decision django Related to Django templates capabilities enhancement New feature or request storybook Usage of Storybook will affect this
Milestone

Comments

@thibaudcolas
Copy link
Member

thibaudcolas commented Feb 19, 2020

In GitLab by @m1kola on Oct 12, 2018, 16:00

Currently are writing into log if the pattern library can't find stub data for a template tag. See this:

logger.warning(
    'No stub data defined for the "%s" tag in the "%s" template',
    tag_name, current_template_name
)

Instead of this, we can write a hint like:

No stub data defined for the "%(tag_name)s" tag in the "%(current_template_name)s" template.
To override the template add the following into 
your yaml file:
tags:
  %(tag_name)s:
    %(tag_arguments)s:
      raw:
        some_attribute: some data
@thibaudcolas thibaudcolas added kind/enhancement enhancement New feature or request decision needed This requires a decision and removed kind/enhancement labels Feb 19, 2020
@thibaudcolas thibaudcolas added this to the Nice to have milestone Feb 24, 2020
@thibaudcolas thibaudcolas added storybook Usage of Storybook will affect this django Related to Django templates capabilities labels Feb 24, 2020
@thibaudcolas
Copy link
Member Author

I don’t think this is as relevant since #141, as we now have 3 different ways to add stub data for a template tag. Closing.

@thibaudcolas thibaudcolas moved this to Low priority in Roadmap Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decision needed This requires a decision django Related to Django templates capabilities enhancement New feature or request storybook Usage of Storybook will affect this
Projects
No open projects
Status: Low priority
Development

No branches or pull requests

1 participant