-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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(gatsby-source-contentful): fix progress bar #31467
Conversation
@vladar I removed in on purpose because the API does not give us a total of items (of the current sync run) The total was always off and confusing. Thats why I removed it. |
But now the progress bar shows something line |
@vladar we can completely remove the bar. We won't get the required information for a proper progress bar with the current API in use. |
Can we just show a regular gatsby style progress indicator? |
Any solution that removes the flicker is fine (as for me). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. As your code removes the flickering and restores the old way it was working, lets go for that.
* master: (23 commits) fix(gatsby-source-wordpress): Prevent "EADDRINUSE: address already in use 127.0.0.1" error (gatsbyjs#31713) feat(gatsby-source-wordpress: architecture.md (gatsbyjs#31537) chore(deps): update dependency @babel/node to ^7.14.2 (gatsbyjs#31690) chore(deps): update babel monorepo (gatsbyjs#31143) fix(gatsby): merge resolveType when merging abstract types (gatsbyjs#31710) chore(release): Publish next fix(gatsby): Correct config for svgo plugins whitelist chore: Add translations and validations to Contentful test (gatsbyjs#31533) chore(docs): Correct nginx spelling (gatsbyjs#31651) chore(docs): Update Jest instructions for v27 (gatsbyjs#31649) Fix typo in adding-search.md (gatsbyjs#31639) Fix typos in improving-build-performance.md (gatsbyjs#31640) feat(gatsby-source-wordpress): Fix false positive error if the URL and the responsePath are the same (gatsbyjs#31612) Fixed syntax error in example (gatsbyjs#31636) fix(contentful): pass reporter to retry function (gatsbyjs#31608) chore: Properly typecheck `gatsby` (gatsbyjs#31519) fix(gatsby-source-contentful): fix progress bar (gatsbyjs#31467) fix(gatsby-plugin-gatsby-cloud): fix cloud being bundled (gatsbyjs#31604) chore(gatsby-source-wordpress): Fix typos (gatsbyjs#31600) chore(docs): Add title to release notes (gatsbyjs#31595) ...
(cherry picked from commit 2e1f7e3)
Published in |
Description
For some reason the progress bar is messed up for me with the latest Contentful plugin (on Windows/cmder):
before-s.mp4
So what's happening is that we don't update the total count and so current progress is always greater than the total count which messes CLI rendering of the progress.
With this PR it seems to be working correctly:
after-s.mp4
Code from this PR was originally in the plugin. But it was removed in #30257. Not sure if it was intentional or not @axe312ger ? If not, then we should restore it back I guess.