Skip to content

Commit e7fd44b

Browse files
committed
Merge branch 'master' into fix-search-sphinx-2.1
2 parents d5665e5 + bb1e1d9 commit e7fd44b

File tree

6 files changed

+43
-2
lines changed

6 files changed

+43
-2
lines changed

CHANGELOG.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
Version 4.1.1
2+
-------------
3+
4+
:Date: March 24, 2020
5+
6+
* `@stsewd <https://github.com/stsewd>`__: Force to reinstall package (`#6817 <https://github.com/readthedocs/readthedocs.org/pull/6817>`__)
7+
* `@humitos <https://github.com/humitos>`__: Show uploading state (`#6816 <https://github.com/readthedocs/readthedocs.org/pull/6816>`__)
8+
* `@stsewd <https://github.com/stsewd>`__: Respect order when serving 404 (version -> default_version) (`#6805 <https://github.com/readthedocs/readthedocs.org/pull/6805>`__)
9+
* `@humitos <https://github.com/humitos>`__: Use storage.open API correctly for tar files (build cached envs) (`#6799 <https://github.com/readthedocs/readthedocs.org/pull/6799>`__)
10+
* `@humitos <https://github.com/humitos>`__: Check 404 page once when slug and default_version is the same (`#6796 <https://github.com/readthedocs/readthedocs.org/pull/6796>`__)
11+
* `@humitos <https://github.com/humitos>`__: Do not reset the build start time when running build env (`#6794 <https://github.com/readthedocs/readthedocs.org/pull/6794>`__)
12+
* `@humitos <https://github.com/humitos>`__: Skip .cache directory for cached builds if it does not exist (`#6791 <https://github.com/readthedocs/readthedocs.org/pull/6791>`__)
13+
* `@ericholscher <https://github.com/ericholscher>`__: Remove GET args from the path passed via proxito header (`#6790 <https://github.com/readthedocs/readthedocs.org/pull/6790>`__)
14+
* `@stsewd <https://github.com/stsewd>`__: Check for /index on pages' slug (`#6789 <https://github.com/readthedocs/readthedocs.org/pull/6789>`__)
15+
* `@ericholscher <https://github.com/ericholscher>`__: Release 4.1.0 (`#6788 <https://github.com/readthedocs/readthedocs.org/pull/6788>`__)
16+
* `@ericholscher <https://github.com/ericholscher>`__: Revert "Add feature flag to just completely skip sync and symlink operations (#6689)" (`#6781 <https://github.com/readthedocs/readthedocs.org/pull/6781>`__)
17+
118
Version 4.1.0
219
-------------
320

readthedocs/builds/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@
88
BUILD_STATE_CLONING = 'cloning'
99
BUILD_STATE_INSTALLING = 'installing'
1010
BUILD_STATE_BUILDING = 'building'
11+
BUILD_STATE_UPLOADING = 'uploading'
1112
BUILD_STATE_FINISHED = 'finished'
1213

1314
BUILD_STATE = (
1415
(BUILD_STATE_TRIGGERED, _('Triggered')),
1516
(BUILD_STATE_CLONING, _('Cloning')),
1617
(BUILD_STATE_INSTALLING, _('Installing')),
1718
(BUILD_STATE_BUILDING, _('Building')),
19+
(BUILD_STATE_UPLOADING, _('Uploading')),
1820
(BUILD_STATE_FINISHED, _('Finished')),
1921
)
2022

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 2.2.11 on 2020-03-24 16:43
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('builds', '0014_migrate-doctype-from-project-to-version'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='build',
15+
name='state',
16+
field=models.CharField(choices=[('triggered', 'Triggered'), ('cloning', 'Cloning'), ('installing', 'Installing'), ('building', 'Building'), ('uploading', 'Uploading'), ('finished', 'Finished')], default='finished', max_length=55, verbose_name='State'),
17+
),
18+
]

readthedocs/projects/tasks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
BUILD_STATE_CLONING,
3434
BUILD_STATE_FINISHED,
3535
BUILD_STATE_INSTALLING,
36+
BUILD_STATE_UPLOADING,
3637
BUILD_STATUS_SUCCESS,
3738
BUILD_STATUS_FAILURE,
3839
LATEST,
@@ -707,6 +708,7 @@ def run_build(self, record):
707708
if build_id:
708709
# Store build artifacts to storage (local or cloud storage)
709710
self.store_build_artifacts(
711+
self.build_env,
710712
html=bool(outcomes['html']),
711713
search=bool(outcomes['search']),
712714
localmedia=bool(outcomes['localmedia']),
@@ -895,6 +897,7 @@ def save_build_config(self):
895897

896898
def store_build_artifacts(
897899
self,
900+
environment,
898901
html=False,
899902
localmedia=False,
900903
search=False,
@@ -949,6 +952,7 @@ def store_build_artifacts(
949952
)
950953
return
951954

955+
environment.update_build(BUILD_STATE_UPLOADING)
952956
storage = get_storage_class(settings.RTD_BUILD_MEDIA_STORAGE)()
953957
log.info(
954958
LOG_TEMPLATE,

requirements/pip.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ textblob==0.15.3
9292

9393
django-annoying==0.10.5
9494
# Messages-extends needs a fix for Django 2.2 which isn't released (0.6.1 isn't out yet)
95-
git+https://github.com/AliLozano/django-messages-extends.git@b1e4f4c#egg=django-messages-extends==0.6.0
95+
git+https://github.com/AliLozano/django-messages-extends.git@b1e4f4c#egg=django-messages-extends==0.6.1-dev
9696
djangorestframework-jsonp==1.0.2
9797
django-taggit==1.1.0
9898
dj-pagination==2.4.0

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = readthedocs
3-
version = 4.1.0
3+
version = 4.1.1
44
license = MIT
55
description = Read the Docs builds and hosts documentation
66
author = Read the Docs, Inc

0 commit comments

Comments
 (0)