@@ -1282,13 +1282,8 @@ def fileify(version_pk, commit, build):
1282
1282
except Exception :
1283
1283
log .exception ('Failed during ImportedFile creation' )
1284
1284
1285
- try :
1286
- _update_intersphinx_data (version , path , commit , build )
1287
- except Exception :
1288
- log .exception ('Failed during SphinxDomain creation' )
1289
-
1290
1285
1291
- def _update_intersphinx_data (version , path , commit , build ):
1286
+ def _create_intersphinx_data (version , path , commit , build ):
1292
1287
"""
1293
1288
Update intersphinx data for this version.
1294
1289
@@ -1376,24 +1371,6 @@ def warn(self, msg):
1376
1371
build = build ,
1377
1372
)
1378
1373
1379
- # Index new SphinxDomain objects to elasticsearch
1380
- index_new_files (model = SphinxDomain , version = version , build = build )
1381
-
1382
- # Remove old SphinxDomain from elasticsearch
1383
- remove_indexed_files (
1384
- model = SphinxDomain ,
1385
- version = version ,
1386
- build = build ,
1387
- )
1388
-
1389
- # Delete SphinxDomain objects from the previous build of the version.
1390
- (
1391
- SphinxDomain .objects
1392
- .filter (project = version .project , version = version )
1393
- .exclude (build = build )
1394
- .delete ()
1395
- )
1396
-
1397
1374
1398
1375
def clean_build (version_pk ):
1399
1376
"""Clean the files used in the build of the given version."""
@@ -1481,6 +1458,12 @@ def _manage_imported_files(version, path, commit, build):
1481
1458
build = build ,
1482
1459
)
1483
1460
1461
+ # create SphinxDomain objects
1462
+ try :
1463
+ _create_intersphinx_data (version , path , commit , build )
1464
+ except Exception :
1465
+ log .exception ('Failed during SphinxDomain objects creation' )
1466
+
1484
1467
# Index new HTMLFiles to elasticsearch
1485
1468
index_new_files (model = HTMLFile , version = version , build = build )
1486
1469
0 commit comments