last ...
This commit is contained in:
@@ -714,14 +714,14 @@ namespace xAiModels.Providers
|
|||||||
cancellationToken: cancellationToken,
|
cancellationToken: cancellationToken,
|
||||||
predicate: x =>
|
predicate: x =>
|
||||||
x.ResourceTitle
|
x.ResourceTitle
|
||||||
.ToNormalString()
|
// .ToNormalString()
|
||||||
.Contains(ownerId.ToNormalString()) &&
|
.Contains(ownerId.ToNormalString()) &&
|
||||||
x.ResourceTitle
|
x.ResourceTitle
|
||||||
.ToNormalString()
|
// .ToNormalString()
|
||||||
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier
|
// .ToNormalString()
|
||||||
.ToNormalString()) &&
|
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier) &&
|
||||||
x.TranslatedValue
|
x.TranslatedValue
|
||||||
.ToNormalString()
|
// .ToNormalString()
|
||||||
.Contains(XAiDataProviderConstants.XDefaultAiProjectSuffix)
|
.Contains(XAiDataProviderConstants.XDefaultAiProjectSuffix)
|
||||||
);
|
);
|
||||||
if (resource.IsNullOrDefault())
|
if (resource.IsNullOrDefault())
|
||||||
@@ -1034,18 +1034,18 @@ namespace xAiModels.Providers
|
|||||||
cancellationToken: cancellationToken,
|
cancellationToken: cancellationToken,
|
||||||
predicate: x =>
|
predicate: x =>
|
||||||
x.ResourceTitle
|
x.ResourceTitle
|
||||||
.ToNormalString()
|
.ToNormalString()
|
||||||
.Contains(ownerId.ToNormalString()) &&
|
.Contains(ownerId.ToNormalString()) &&
|
||||||
x.ResourceTitle
|
x.ResourceTitle
|
||||||
.ToNormalString()
|
.ToNormalString()
|
||||||
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier
|
.Contains(XAiModelsConstants.XAiProjectTitleIdentifier.ToNormalString()) &&
|
||||||
.ToNormalString()) &&
|
|
||||||
x.TranslatedValue
|
x.TranslatedValue
|
||||||
.ToNormalString()
|
.ToNormalString()
|
||||||
.Contains(XAiDataProviderConstants.XDefaultAiProjectSuffix)
|
.Contains(XAiDataProviderConstants.XDefaultAiProjectSuffix.ToNormalString())
|
||||||
);
|
);
|
||||||
result = !defaultProjectResource.IsNullOrDefault();
|
result = !defaultProjectResource.IsNullOrDefault();
|
||||||
|
|
||||||
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1101,7 +1101,7 @@ namespace xAiModels.Providers
|
|||||||
// Prepare Tile and Description Resource Ids ...
|
// Prepare Tile and Description Resource Ids ...
|
||||||
var titleResource = await projectTitleResourceProvider.AddOrUpdateLocale(
|
var titleResource = await projectTitleResourceProvider.AddOrUpdateLocale(
|
||||||
owner: ownerId,
|
owner: ownerId,
|
||||||
identifier: $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
identifier: item.Id, // $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
||||||
locale: new XLocaleResourceDto
|
locale: new XLocaleResourceDto
|
||||||
{
|
{
|
||||||
Language = defaultLang,
|
Language = defaultLang,
|
||||||
@@ -1111,7 +1111,7 @@ namespace xAiModels.Providers
|
|||||||
);
|
);
|
||||||
var descriptionResource = await projectDescriptionResourceProvider.AddOrUpdateLocale(
|
var descriptionResource = await projectDescriptionResourceProvider.AddOrUpdateLocale(
|
||||||
owner: ownerId,
|
owner: ownerId,
|
||||||
identifier: $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
identifier: item.Id, // $"{XAiDataProviderConstants.XDefaultAiProjectSuffix}_{item.Id}",
|
||||||
new XLocaleResourceDto
|
new XLocaleResourceDto
|
||||||
{
|
{
|
||||||
Language = defaultLang,
|
Language = defaultLang,
|
||||||
@@ -1192,7 +1192,7 @@ namespace xAiModels.Providers
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
project = await projectRepositoryService.GetAsync(
|
project = await projectRepositoryService.GetAsync(
|
||||||
id: project.Id,
|
id: projectId,
|
||||||
includeBuilder: null,
|
includeBuilder: null,
|
||||||
ignoreSoftDeleteds: true,
|
ignoreSoftDeleteds: true,
|
||||||
cancellationToken: cancellationToken
|
cancellationToken: cancellationToken
|
||||||
@@ -1209,14 +1209,14 @@ namespace xAiModels.Providers
|
|||||||
cancellationToken: cancellationToken,
|
cancellationToken: cancellationToken,
|
||||||
predicate: x =>
|
predicate: x =>
|
||||||
x.ResourceTitle
|
x.ResourceTitle
|
||||||
.ToNormalString()
|
// .ToNormalString()
|
||||||
.Contains(projectId.ToString().ToNormalString()) &&
|
// .ToNormalString()
|
||||||
|
.Contains(projectId.ToString()) &&
|
||||||
x.ResourceTitle
|
x.ResourceTitle
|
||||||
.ToNormalString()
|
// .ToNormalString()
|
||||||
.Contains(XAiModelsConstants.XAiConversationTitleIdentifier
|
.Contains(XAiModelsConstants.XAiConversationTitleIdentifier) &&
|
||||||
.ToNormalString()) &&
|
|
||||||
x.TranslatedValue
|
x.TranslatedValue
|
||||||
.ToNormalString()
|
// .ToNormalString()
|
||||||
.Contains(XAiDataProviderConstants.XDefaultAiConversationSuffix)
|
.Contains(XAiDataProviderConstants.XDefaultAiConversationSuffix)
|
||||||
);
|
);
|
||||||
result = !resource.IsNullOrDefault();
|
result = !resource.IsNullOrDefault();
|
||||||
@@ -1226,13 +1226,13 @@ namespace xAiModels.Providers
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
result = !(await conversationRepositoryService.FindOneAsync(
|
var defaultConversation = await conversationRepositoryService.FindOneAsync(
|
||||||
cancellationToken: cancellationToken,
|
cancellationToken: cancellationToken,
|
||||||
predicate: x =>
|
predicate: x =>
|
||||||
x.ProjectId == projectId &&
|
x.ProjectId == projectId &&
|
||||||
x.Title == resource.ResourceTitle
|
x.Title == resource.ResourceTitle
|
||||||
))
|
);
|
||||||
.IsNullOrDefault();
|
result = !defaultConversation.IsNullOrDefault();
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
@@ -1282,7 +1282,7 @@ namespace xAiModels.Providers
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
project = await projectRepositoryService.GetAsync(
|
project = await projectRepositoryService.GetAsync(
|
||||||
id: project.Id,
|
id: projectId,
|
||||||
includeBuilder: null,
|
includeBuilder: null,
|
||||||
ignoreSoftDeleteds: true,
|
ignoreSoftDeleteds: true,
|
||||||
cancellationToken: cancellationToken
|
cancellationToken: cancellationToken
|
||||||
@@ -1324,7 +1324,7 @@ namespace xAiModels.Providers
|
|||||||
// Prepare Title Resource Ids ...
|
// Prepare Title Resource Ids ...
|
||||||
var titleResource = await conversationTitleResourceProvider.AddOrUpdateLocale(
|
var titleResource = await conversationTitleResourceProvider.AddOrUpdateLocale(
|
||||||
owner: ownerId,
|
owner: ownerId,
|
||||||
identifier: $"{XAiDataProviderConstants.XDefaultAiConversationSuffix}_{item.Id}",
|
identifier: item.Id, // $"{XAiDataProviderConstants.XDefaultAiConversationSuffix}_{item.Id}",
|
||||||
locale: new XLocaleResourceDto
|
locale: new XLocaleResourceDto
|
||||||
{
|
{
|
||||||
Language = defaultLang,
|
Language = defaultLang,
|
||||||
|
|||||||
Reference in New Issue
Block a user