Skip to content

Conversation

@deathstrokedarksky
Copy link
Contributor

Summary

This pull request addresses an issue with the logging behavior in the docker/docker-init.sh script when loading examples in Apache Superset. The change ensures that the number of steps logged during the initialization process reflects whether example data should be loaded, thus preventing confusion in the logs. It was actually confusing in my case when I first ran superset in docker in different modes.

Changes Made

  • Modified the STEP_CNT variable initialization logic in the docker/docker-init.sh script.
  • Added a conditional check to set STEP_CNT properly.

Testing Instructions

  1. Verify that the environment variable SUPSET_LOAD_EXAMPLES can be set to either "yes" or "no".
  2. Deploy the superset environment in different modes and observe the logs.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

@michael-s-molina michael-s-molina changed the title Set proper amount of steps to avoid confusing logs while examples fix: Set proper amount of steps to avoid confusing logs while loading examples Oct 15, 2024
@michael-s-molina michael-s-molina changed the title fix: Set proper amount of steps to avoid confusing logs while loading examples fix: Set correct amount of steps to avoid confusing logs while loading examples Oct 15, 2024
@michael-s-molina michael-s-molina changed the title fix: Set correct amount of steps to avoid confusing logs while loading examples fix: Set correct amount of steps to avoid confusing logs while loading examples Oct 15, 2024
@michael-s-molina michael-s-molina merged commit d6b2e86 into apache:master Oct 15, 2024
@michael-s-molina
Copy link
Member

Thank you @deathstrokedarksky!

nyohasstium pushed a commit to Webgains/superset that referenced this pull request Jan 2, 2025
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants