Skip to content

Feature flag: remove DONT_CREATE_INDEX #10471

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

Merged
merged 8 commits into from
Jun 28, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Jun 26, 2023

Remove the usage of DONT_CREATE_INDEX feature flag that only 1 project is currently using.

Besides, this commit removes the auto-creation of the index.html file when building with MkDocs or Sphinx. We will be checking at "Uploading" status if there is no index.html file and we will fail the build in that case.

Now, if there is no index.html at HTML output directory once the build is finished, we fail it and show an error message.

Note: there are some linting issues fixed in this PR as well.

Screenshot_2023-06-26_12-17-22

Closes #9290


📚 Documentation previews 📚

humitos added 2 commits June 26, 2023 11:51
Remove the usage of `DONT_CREATE_INDEX` feature flag that only 1 project is
currently using.

Besides, this commit removes the auto-creation of the `index.html` file when
building with MkDocs or Sphinx. We will be checking at "Uploading" status if
there is no `index.html` file and we will fail the build in that case.
Fail the build when there is no `index.html` at its root directory.
@humitos humitos requested a review from ericholscher June 26, 2023 10:22
@humitos humitos requested review from a team as code owners June 26, 2023 10:22
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

I think I'm OK with this, but I don't have a great sense for how many people this will effect. I generally agree it shouldn't impact many folks, as I can't imagine many real projects not having an index :)

"Failing the build. "
"HTML output does not contain an 'index.html' at its root directory.",
)
raise BuildUserError(BuildUserError.BUILD_OUTPUT_HTML_NO_INDEX_FILE)
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to easily notify users and not fail the build, to start? I feel like we have a pretty good pattern there, if it's easy, and I would like to start doing that any time we remove something that will hard fail a user, to at least give them a heads up with a short duration (eg. 2-4 weeks).

Copy link
Member Author

@humitos humitos Jun 27, 2023

Choose a reason for hiding this comment

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

If we are worried about how many people this will affect, I'd suggest to

  • comment this line here
  • add a log.warning to collect projects on NR
  • wait some weeks
  • send those users an email (following the script pattern) and give them 1 month
  • uncomment the line again and deploy the changes

What do you say?

Copy link
Member

Choose a reason for hiding this comment

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

That seems like a good step 👍

humitos and others added 5 commits June 27, 2023 11:46
Only collect data of projects without index.html or README.html at the root.
Once we have that data will be contacting those projects to let them know this
is deprecated and will make the builds to fail.
…ub.com:readthedocs/readthedocs.org into humitos/feature-flag-dont-create-index-removed
@humitos
Copy link
Member Author

humitos commented Jun 28, 2023

OK. I change the code to no fail the build for now, but log it on NR. This will help us to contact the users in a few weeks. I add a reminder in Slack for this. At that day, we can write an email and use the script to send the emails.

@humitos humitos merged commit d863711 into main Jun 28, 2023
@humitos humitos deleted the humitos/feature-flag-dont-create-index-removed branch June 28, 2023 17:06
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.

Migrate user-facing feature flags into the product
2 participants