@strapi/core 0.0.0-next.d5c0fa2c0ecac02fb0014dcdc5fea0ef62c39d0e → 0.0.0-next.d6c661f8ab4a198d3e4c6a387b9b8f267a100766

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @strapi/core might be problematic. Click here for more details.

@@ -1,136 +0,0 @@
1
- import { getParentSchemasForComponent, findComponentParent } from '../components.mjs';
2
-
3
- /**
4
- * Cleans ghost relations with publication state mismatches from a join table
5
- * Uses schema-based draft/publish checking like prevention fix
6
- */ const cleanComponentJoinTable = async (db, joinTableName, relation, sourceModel)=>{
7
- try {
8
- // Get the target model metadata
9
- const targetModel = db.metadata.get(relation.target);
10
- if (!targetModel) {
11
- db.logger.debug(`Target model ${relation.target} not found, skipping ${joinTableName}`);
12
- return 0;
13
- }
14
- // Check if target supports draft/publish using schema-based approach (like prevention fix)
15
- const targetContentType = strapi.contentTypes[relation.target];
16
- const targetSupportsDraftPublish = targetContentType?.options?.draftAndPublish || false;
17
- if (!targetSupportsDraftPublish) {
18
- return 0;
19
- }
20
- // Find entries with publication state mismatches
21
- const ghostEntries = await findPublicationStateMismatches(db, joinTableName, relation, targetModel, sourceModel);
22
- if (ghostEntries.length === 0) {
23
- return 0;
24
- }
25
- // Remove ghost entries
26
- await db.connection(joinTableName).whereIn('id', ghostEntries).del();
27
- db.logger.debug(`Removed ${ghostEntries.length} ghost relations with publication state mismatches from ${joinTableName}`);
28
- return ghostEntries.length;
29
- } catch (error) {
30
- const errorMessage = error instanceof Error ? error.message : String(error);
31
- db.logger.error(`Failed to clean join table "${joinTableName}": ${errorMessage}`);
32
- return 0;
33
- }
34
- };
35
- const findContentTypeParentForComponentInstance = async (componentSchema, componentId)=>{
36
- // Get the parent schemas that could contain this component
37
- const parentSchemas = getParentSchemasForComponent(componentSchema);
38
- if (parentSchemas.length === 0) {
39
- // No potential parents
40
- return null;
41
- }
42
- // Find the actual parent for THIS specific component instance
43
- const parent = await findComponentParent(componentSchema, componentId, parentSchemas);
44
- if (!parent) {
45
- // No parent found for this component instance
46
- return null;
47
- }
48
- if (strapi.components[parent.uid]) {
49
- // If the parent is a component, we need to check its parents recursively
50
- const parentComponentSchema = strapi.components[parent.uid];
51
- return findContentTypeParentForComponentInstance(parentComponentSchema, parent.parentId);
52
- }
53
- if (strapi.contentTypes[parent.uid]) {
54
- // Found a content type parent
55
- return parent;
56
- }
57
- return null;
58
- };
59
- /**
60
- * Finds join table entries with publication state mismatches
61
- * Uses existing component parent detection from document service
62
- */ const findPublicationStateMismatches = async (db, joinTableName, relation, targetModel, sourceModel)=>{
63
- try {
64
- // Get join column names using proper functions (addressing PR feedback)
65
- const sourceColumn = relation.joinTable.joinColumn.name;
66
- const targetColumn = relation.joinTable.inverseJoinColumn.name;
67
- // Get all join entries with their target entities
68
- const query = db.connection(joinTableName).select(`${joinTableName}.id as join_id`, `${joinTableName}.${sourceColumn} as source_id`, `${joinTableName}.${targetColumn} as target_id`, `${targetModel.tableName}.published_at as target_published_at`).leftJoin(targetModel.tableName, `${joinTableName}.${targetColumn}`, `${targetModel.tableName}.id`);
69
- const joinEntries = await query;
70
- // Group by source_id to find duplicates pointing to draft/published versions of same entity
71
- const entriesBySource = {};
72
- for (const entry of joinEntries){
73
- const sourceId = entry.source_id;
74
- if (!entriesBySource[sourceId]) {
75
- entriesBySource[sourceId] = [];
76
- }
77
- entriesBySource[sourceId].push(entry);
78
- }
79
- const ghostEntries = [];
80
- // Check if this is a join table (ends with _lnk)
81
- const isRelationJoinTable = joinTableName.endsWith('_lnk');
82
- const isComponentModel = !sourceModel.uid?.startsWith('api::') && !sourceModel.uid?.startsWith('plugin::') && sourceModel.uid?.includes('.');
83
- // Check for draft/publish inconsistencies
84
- for (const [sourceId, entries] of Object.entries(entriesBySource)){
85
- // Skip entries with single relations
86
- if (entries.length <= 1) {
87
- continue;
88
- }
89
- // For component join tables, check if THIS specific component instance's parent supports D&P
90
- if (isRelationJoinTable && isComponentModel) {
91
- try {
92
- const componentSchema = strapi.components[sourceModel.uid];
93
- if (!componentSchema) {
94
- continue;
95
- }
96
- const parent = await findContentTypeParentForComponentInstance(componentSchema, sourceId);
97
- if (!parent) {
98
- continue;
99
- }
100
- // Check if THIS component instance's parent supports draft/publish
101
- const parentContentType = strapi.contentTypes[parent.uid];
102
- if (!parentContentType?.options?.draftAndPublish) {
103
- continue;
104
- }
105
- // If we reach here, this component instance's parent DOES support D&P
106
- // Continue to process this component instance for ghost relations
107
- } catch (error) {
108
- continue;
109
- }
110
- }
111
- // Find ghost relations (same logic as original but with improved parent checking)
112
- for (const entry of entries){
113
- if (entry.target_published_at === null) {
114
- // This is a draft target - find its published version
115
- const draftTarget = await db.connection(targetModel.tableName).select('document_id').where('id', entry.target_id).first();
116
- if (draftTarget) {
117
- const publishedVersion = await db.connection(targetModel.tableName).select('id', 'document_id').where('document_id', draftTarget.document_id).whereNotNull('published_at').first();
118
- if (publishedVersion) {
119
- // Check if we also have a relation to the published version
120
- const publishedRelation = entries.find((e)=>e.target_id === publishedVersion.id);
121
- if (publishedRelation) {
122
- ghostEntries.push(publishedRelation.join_id);
123
- }
124
- }
125
- }
126
- }
127
- }
128
- }
129
- return ghostEntries;
130
- } catch (error) {
131
- return [];
132
- }
133
- };
134
-
135
- export { cleanComponentJoinTable };
136
- //# sourceMappingURL=clean-component-join-table.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"clean-component-join-table.mjs","sources":["../../../../src/services/document-service/utils/clean-component-join-table.ts"],"sourcesContent":["import type { Database } from '@strapi/database';\nimport type { Schema } from '@strapi/types';\nimport { findComponentParent, getParentSchemasForComponent } from '../components';\n\n/**\n * Cleans ghost relations with publication state mismatches from a join table\n * Uses schema-based draft/publish checking like prevention fix\n */\nexport const cleanComponentJoinTable = async (\n db: Database,\n joinTableName: string,\n relation: any,\n sourceModel: any\n): Promise<number> => {\n try {\n // Get the target model metadata\n const targetModel = db.metadata.get(relation.target);\n if (!targetModel) {\n db.logger.debug(`Target model ${relation.target} not found, skipping ${joinTableName}`);\n return 0;\n }\n\n // Check if target supports draft/publish using schema-based approach (like prevention fix)\n const targetContentType =\n strapi.contentTypes[relation.target as keyof typeof strapi.contentTypes];\n const targetSupportsDraftPublish = targetContentType?.options?.draftAndPublish || false;\n\n if (!targetSupportsDraftPublish) {\n return 0;\n }\n\n // Find entries with publication state mismatches\n const ghostEntries = await findPublicationStateMismatches(\n db,\n joinTableName,\n relation,\n targetModel,\n sourceModel\n );\n\n if (ghostEntries.length === 0) {\n return 0;\n }\n\n // Remove ghost entries\n await db.connection(joinTableName).whereIn('id', ghostEntries).del();\n db.logger.debug(\n `Removed ${ghostEntries.length} ghost relations with publication state mismatches from ${joinTableName}`\n );\n\n return ghostEntries.length;\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : String(error);\n db.logger.error(`Failed to clean join table \"${joinTableName}\": ${errorMessage}`);\n return 0;\n }\n};\n\nconst findContentTypeParentForComponentInstance = async (\n componentSchema: Schema.Component,\n componentId: number | string\n): Promise<{ uid: string; table: string; parentId: number | string } | null> => {\n // Get the parent schemas that could contain this component\n const parentSchemas = getParentSchemasForComponent(componentSchema);\n if (parentSchemas.length === 0) {\n // No potential parents\n return null;\n }\n\n // Find the actual parent for THIS specific component instance\n const parent = await findComponentParent(componentSchema, componentId, parentSchemas);\n if (!parent) {\n // No parent found for this component instance\n return null;\n }\n\n if (strapi.components[parent.uid as keyof typeof strapi.components]) {\n // If the parent is a component, we need to check its parents recursively\n const parentComponentSchema = strapi.components[parent.uid as keyof typeof strapi.components];\n return findContentTypeParentForComponentInstance(parentComponentSchema, parent.parentId);\n }\n\n if (strapi.contentTypes[parent.uid as keyof typeof strapi.contentTypes]) {\n // Found a content type parent\n return parent;\n }\n\n return null;\n};\n\n/**\n * Finds join table entries with publication state mismatches\n * Uses existing component parent detection from document service\n */\nconst findPublicationStateMismatches = async (\n db: Database,\n joinTableName: string,\n relation: any,\n targetModel: any,\n sourceModel: any\n): Promise<number[]> => {\n try {\n // Get join column names using proper functions (addressing PR feedback)\n const sourceColumn = relation.joinTable.joinColumn.name;\n const targetColumn = relation.joinTable.inverseJoinColumn.name;\n\n // Get all join entries with their target entities\n const query = db\n .connection(joinTableName)\n .select(\n `${joinTableName}.id as join_id`,\n `${joinTableName}.${sourceColumn} as source_id`,\n `${joinTableName}.${targetColumn} as target_id`,\n `${targetModel.tableName}.published_at as target_published_at`\n )\n .leftJoin(\n targetModel.tableName,\n `${joinTableName}.${targetColumn}`,\n `${targetModel.tableName}.id`\n );\n\n const joinEntries = await query;\n\n // Group by source_id to find duplicates pointing to draft/published versions of same entity\n const entriesBySource: { [key: string]: any[] } = {};\n for (const entry of joinEntries) {\n const sourceId = entry.source_id;\n if (!entriesBySource[sourceId]) {\n entriesBySource[sourceId] = [];\n }\n entriesBySource[sourceId].push(entry);\n }\n\n const ghostEntries: number[] = [];\n\n // Check if this is a join table (ends with _lnk)\n const isRelationJoinTable = joinTableName.endsWith('_lnk');\n const isComponentModel =\n !sourceModel.uid?.startsWith('api::') &&\n !sourceModel.uid?.startsWith('plugin::') &&\n sourceModel.uid?.includes('.');\n\n // Check for draft/publish inconsistencies\n for (const [sourceId, entries] of Object.entries(entriesBySource)) {\n // Skip entries with single relations\n if (entries.length <= 1) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n // For component join tables, check if THIS specific component instance's parent supports D&P\n if (isRelationJoinTable && isComponentModel) {\n try {\n const componentSchema = strapi.components[sourceModel.uid] as Schema.Component;\n if (!componentSchema) {\n // eslint-disable-next-line no-continue\n continue;\n }\n\n const parent = await findContentTypeParentForComponentInstance(componentSchema, sourceId);\n if (!parent) {\n continue;\n }\n\n // Check if THIS component instance's parent supports draft/publish\n const parentContentType =\n strapi.contentTypes[parent.uid as keyof typeof strapi.contentTypes];\n if (!parentContentType?.options?.draftAndPublish) {\n // This component instance's parent does NOT support D&P - skip cleanup\n // eslint-disable-next-line no-continue\n continue;\n }\n\n // If we reach here, this component instance's parent DOES support D&P\n // Continue to process this component instance for ghost relations\n } catch (error) {\n // Skip this component instance on error\n // eslint-disable-next-line no-continue\n continue;\n }\n }\n\n // Find ghost relations (same logic as original but with improved parent checking)\n for (const entry of entries) {\n if (entry.target_published_at === null) {\n // This is a draft target - find its published version\n const draftTarget = await db\n .connection(targetModel.tableName)\n .select('document_id')\n .where('id', entry.target_id)\n .first();\n\n if (draftTarget) {\n const publishedVersion = await db\n .connection(targetModel.tableName)\n .select('id', 'document_id')\n .where('document_id', draftTarget.document_id)\n .whereNotNull('published_at')\n .first();\n\n if (publishedVersion) {\n // Check if we also have a relation to the published version\n const publishedRelation = entries.find((e) => e.target_id === publishedVersion.id);\n if (publishedRelation) {\n ghostEntries.push(publishedRelation.join_id);\n }\n }\n }\n }\n }\n }\n\n return ghostEntries;\n } catch (error) {\n return [];\n }\n};\n"],"names":["cleanComponentJoinTable","db","joinTableName","relation","sourceModel","targetModel","metadata","get","target","logger","debug","targetContentType","strapi","contentTypes","targetSupportsDraftPublish","options","draftAndPublish","ghostEntries","findPublicationStateMismatches","length","connection","whereIn","del","error","errorMessage","Error","message","String","findContentTypeParentForComponentInstance","componentSchema","componentId","parentSchemas","getParentSchemasForComponent","parent","findComponentParent","components","uid","parentComponentSchema","parentId","sourceColumn","joinTable","joinColumn","name","targetColumn","inverseJoinColumn","query","select","tableName","leftJoin","joinEntries","entriesBySource","entry","sourceId","source_id","push","isRelationJoinTable","endsWith","isComponentModel","startsWith","includes","entries","Object","parentContentType","target_published_at","draftTarget","where","target_id","first","publishedVersion","document_id","whereNotNull","publishedRelation","find","e","id","join_id"],"mappings":";;AAIA;;;AAGC,IACYA,MAAAA,uBAAAA,GAA0B,OACrCC,EAAAA,EACAC,eACAC,QACAC,EAAAA,WAAAA,GAAAA;IAEA,IAAI;;AAEF,QAAA,MAAMC,cAAcJ,EAAGK,CAAAA,QAAQ,CAACC,GAAG,CAACJ,SAASK,MAAM,CAAA;AACnD,QAAA,IAAI,CAACH,WAAa,EAA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