-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Deprecation: notification and feature flag for build.image
config
#10589
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
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8227721
Deprecation: notification and feature flag for `build.image` config
humitos 450b97a
Merge branch 'main' into humitos/deprecate-build-image-config-key
humitos b1810c3
Deprecation: notification and feature flag for `build.image` config
humitos ac5891a
Merge branch 'humitos/deprecate-build-image-config-key' of github.com…
humitos 0883154
Review and update logic
humitos f6399df
Start emailing people with projects building from 3 years ago
humitos 41150cc
Apply suggestions from code review
humitos 75921e4
Add HTML version of the email
humitos 458913e
Codify brownout dates and remove the feature flag
humitos 4584cdf
Use UTC datetimes to compare
humitos 3d99b0b
Contact projects with a build in the last 3 years
humitos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
readthedocs/core/migrations/0014_optout_email_build_image_deprecation.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 3.2.20 on 2023-08-01 13:21 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0013_add_optout_email_config_file_deprecation"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="historicaluserprofile", | ||
name="optout_email_build_image_deprecation", | ||
field=models.BooleanField( | ||
default=False, | ||
null=True, | ||
verbose_name="Opt-out from email about '\"build.image\" config key deprecation'", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="userprofile", | ||
name="optout_email_build_image_deprecation", | ||
field=models.BooleanField( | ||
default=False, | ||
null=True, | ||
verbose_name="Opt-out from email about '\"build.image\" config key deprecation'", | ||
), | ||
), | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
readthedocs/templates/projects/notifications/deprecated_build_image_used_email.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{# TODO: copy the text from the TXT version once we agree on its content #} |
31 changes: 31 additions & 0 deletions
31
readthedocs/templates/projects/notifications/deprecated_build_image_used_email.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "core/email/common.txt" %} | ||
{% block content %} | ||
The Read the Docs build system is deprecating "build.image" config key on ".readthedocs.yaml" starting on October 16, 2023. | ||
We are sending weekly notifications about this issue to all impacted users, | ||
as well as temporary build failures (brownouts) as the date approaches for those who haven't migrated their projects. | ||
|
||
humitos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
The timeline for this deprecation is as follows: | ||
|
||
* Monday, August 28, 2023: Do the first brownout (temporarily enforce this deprecation) for 12 hours: 00:01 PST to 11:59 PST (noon) | ||
* Monday, September 18, 2023: Do a second brownout (temporarily enforce this deprecation) for 24 hours: 00:01 PST to 23:59 PST (midnight) | ||
* Monday, October 2, 2023: Do a third and final brownout (temporarily enforce this deprecation) for 48 hours: 00:01 PST to October 3, 2023 23:59 PST (midnight) | ||
* Monday, October 16, 2023: Fully remove support for building documentation using "build.image" on the configuration file | ||
|
||
We have identified that the following projects which you maintain, and were built in the last year, are impacted by this deprecation: | ||
humitos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
{% for project in projects|slice:":15" %} | ||
* {{ project.slug }} ({{ production_uri }}{{ project.get_absolute_url }}) | ||
{% endfor %} | ||
{% if projects.count > 15 %} | ||
* ... and {{ projects.count|add:"-15" }} more projects. | ||
{% endif %} | ||
|
||
Please use "build.os" on your configuration file to ensure that they continue building successfully and to stop receiving these notifications. | ||
If you want to opt-out from these emails, you can edit your preferences in your account settings, at https://readthedocs.org/accounts/edit/. | ||
|
||
For more information on how to use "build.os", | ||
read our blog post at https://blog.readthedocs.com/build-image-config-deprecated/ | ||
humitos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Get in touch with us via our support ({{ production_uri }}{% url 'support' %}) | ||
and let us know if you are unable to use a configuration file for any reason. | ||
{% endblock %} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.