diff --git a/src/Umbraco.Core/Composing/Lifetime.cs b/src/Umbraco.Core/Composing/Lifetime.cs
index a35d4d9ecf..1a2cc3119a 100644
--- a/src/Umbraco.Core/Composing/Lifetime.cs
+++ b/src/Umbraco.Core/Composing/Lifetime.cs
@@ -15,7 +15,7 @@
///
/// One unique instance per request.
///
- // TODO - review lifetimes for LightInject vs other containers
+ // TODO: review lifetimes for LightInject vs other containers
// currently, corresponds to 'Request' in LightInject which is 'Transient + disposed by Scope'
// but NOT (in LightInject) a per-web-request lifetime, more a TransientScoped
//
diff --git a/src/Umbraco.Core/Events/QueuingEventDispatcher.cs b/src/Umbraco.Core/Events/QueuingEventDispatcher.cs
index 164b452f2c..88b527e753 100644
--- a/src/Umbraco.Core/Events/QueuingEventDispatcher.cs
+++ b/src/Umbraco.Core/Events/QueuingEventDispatcher.cs
@@ -34,7 +34,7 @@ namespace Umbraco.Core.Events
private IMediaFileSystem _mediaFileSystem;
- // todo: inject
+ // TODO: inject
private IMediaFileSystem MediaFileSystem => _mediaFileSystem ?? (_mediaFileSystem = Current.MediaFileSystem);
}
}
diff --git a/src/Umbraco.Core/IO/FileSystems.cs b/src/Umbraco.Core/IO/FileSystems.cs
index 38cb7df824..19d29e14ba 100644
--- a/src/Umbraco.Core/IO/FileSystems.cs
+++ b/src/Umbraco.Core/IO/FileSystems.cs
@@ -132,7 +132,7 @@ namespace Umbraco.Core.IO
_scriptsFileSystem = new ShadowWrapper(scriptsFileSystem, "scripts", IsScoped);
_mvcViewsFileSystem = new ShadowWrapper(mvcViewsFileSystem, "Views", IsScoped);
- // todo - do we need a lock here?
+ // TODO: do we need a lock here?
_shadowWrappers.Add(_macroPartialFileSystem);
_shadowWrappers.Add(_partialViewsFileSystem);
_shadowWrappers.Add(_stylesheetsFileSystem);
diff --git a/src/Umbraco.Core/IO/PhysicalFileSystem.cs b/src/Umbraco.Core/IO/PhysicalFileSystem.cs
index 80f4c57ee3..acf5e796e4 100644
--- a/src/Umbraco.Core/IO/PhysicalFileSystem.cs
+++ b/src/Umbraco.Core/IO/PhysicalFileSystem.cs
@@ -153,7 +153,7 @@ namespace Umbraco.Core.IO
if (directory == null) throw new InvalidOperationException("Could not get directory.");
Directory.CreateDirectory(directory); // ensure it exists
- if (stream.CanSeek) // todo - what if we cannot?
+ if (stream.CanSeek) // TODO: what if we cannot?
stream.Seek(0, 0);
using (var destination = (Stream) File.Create(fullPath))
diff --git a/src/Umbraco.Core/Migrations/IMigrationExpression.cs b/src/Umbraco.Core/Migrations/IMigrationExpression.cs
index 81063bd2da..c60126f63c 100644
--- a/src/Umbraco.Core/Migrations/IMigrationExpression.cs
+++ b/src/Umbraco.Core/Migrations/IMigrationExpression.cs
@@ -5,7 +5,7 @@
///
public interface IMigrationExpression
{
- string Process(IMigrationContext context); // todo: remove that one?
+ string Process(IMigrationContext context); // TODO: remove that one?
void Execute();
}
}
diff --git a/src/Umbraco.Core/Migrations/Install/DatabaseSchemaResult.cs b/src/Umbraco.Core/Migrations/Install/DatabaseSchemaResult.cs
index d3f6937834..f21216fde3 100644
--- a/src/Umbraco.Core/Migrations/Install/DatabaseSchemaResult.cs
+++ b/src/Umbraco.Core/Migrations/Install/DatabaseSchemaResult.cs
@@ -27,7 +27,7 @@ namespace Umbraco.Core.Migrations.Install
public List TableDefinitions { get; }
- // todo what are these exactly? TableDefinitions are those that should be there, IndexDefinitions are those that... are in DB?
+ // TODO: what are these exactly? TableDefinitions are those that should be there, IndexDefinitions are those that... are in DB?
internal List IndexDefinitions { get; }
public List ValidTables { get; }
diff --git a/src/Umbraco.Core/Models/ContentBase.cs b/src/Umbraco.Core/Models/ContentBase.cs
index 0d4e9ce789..ca1152a9a4 100644
--- a/src/Umbraco.Core/Models/ContentBase.cs
+++ b/src/Umbraco.Core/Models/ContentBase.cs
@@ -128,14 +128,14 @@ namespace Umbraco.Core.Models
///
/// Gets the enumeration of property groups for the entity.
- /// todo - remove this proxy method
+ /// TODO: remove this proxy method
///
[IgnoreDataMember]
public IEnumerable PropertyGroups => ContentTypeBase.CompositionPropertyGroups;
///
/// Gets the numeration of property types for the entity.
- /// todo - remove this proxy method
+ /// TODO: remove this proxy method
///
[IgnoreDataMember]
public IEnumerable PropertyTypes => ContentTypeBase.CompositionPropertyTypes;
diff --git a/src/Umbraco.Core/Models/ContentTypeBase.cs b/src/Umbraco.Core/Models/ContentTypeBase.cs
index dadc3870b0..064bdd3d4a 100644
--- a/src/Umbraco.Core/Models/ContentTypeBase.cs
+++ b/src/Umbraco.Core/Models/ContentTypeBase.cs
@@ -431,7 +431,7 @@ namespace Umbraco.Core.Models
/// PropertyTypes that are not part of a PropertyGroup
///
[IgnoreDataMember]
- //todo should we mark this as EditorBrowsable hidden since it really isn't ever used?
+ // TODO: should we mark this as EditorBrowsable hidden since it really isn't ever used?
internal PropertyTypeCollection PropertyTypeCollection => _noGroupPropertyTypes;
///
diff --git a/src/Umbraco.Core/Models/GridValue.cs b/src/Umbraco.Core/Models/GridValue.cs
index c4a8b85b00..4f19576f17 100644
--- a/src/Umbraco.Core/Models/GridValue.cs
+++ b/src/Umbraco.Core/Models/GridValue.cs
@@ -21,7 +21,7 @@ namespace Umbraco.Core.Models
public class GridSection
{
[JsonProperty("grid")]
- public string Grid { get; set; } //todo: what is this?
+ public string Grid { get; set; } // TODO: what is this?
[JsonProperty("rows")]
public IEnumerable Rows { get; set; }
@@ -48,7 +48,7 @@ namespace Umbraco.Core.Models
public class GridArea
{
[JsonProperty("grid")]
- public string Grid { get; set; } //todo: what is this?
+ public string Grid { get; set; } // TODO: what is this?
[JsonProperty("controls")]
public IEnumerable Controls { get; set; }
diff --git a/src/Umbraco.Core/Models/IContent.cs b/src/Umbraco.Core/Models/IContent.cs
index b3b4e03783..4363324c8d 100644
--- a/src/Umbraco.Core/Models/IContent.cs
+++ b/src/Umbraco.Core/Models/IContent.cs
@@ -137,7 +137,7 @@ namespace Umbraco.Core.Models
///
IEnumerable EditedCultures { get; }
- // todo - these two should move to some kind of service
+ // TODO: these two should move to some kind of service
///
/// Changes the for the current content object
diff --git a/src/Umbraco.Core/Models/IContentTypeComposition.cs b/src/Umbraco.Core/Models/IContentTypeComposition.cs
index 84e436e46f..675d3cd268 100644
--- a/src/Umbraco.Core/Models/IContentTypeComposition.cs
+++ b/src/Umbraco.Core/Models/IContentTypeComposition.cs
@@ -10,7 +10,7 @@ namespace Umbraco.Core.Models
///
/// Gets or sets the content types that compose this content type.
///
- //todo: we should be storing key references, not the object else we are caching way too much
+ // TODO: we should be storing key references, not the object else we are caching way too much
IEnumerable ContentTypeComposition { get; set; }
///
diff --git a/src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs b/src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
index d118cd526e..f5c21a3a74 100644
--- a/src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
+++ b/src/Umbraco.Core/Models/Identity/BackOfficeIdentityUser.cs
@@ -67,7 +67,7 @@ namespace Umbraco.Core.Models.Identity
_startContentIds = new int[] { };
_groups = new IReadOnlyUserGroup[] { };
_allowedSections = new string[] { };
- _culture = Current.Configs.Global().DefaultUILanguage; //todo inject
+ _culture = Current.Configs.Global().DefaultUILanguage; // TODO: inject
_groups = new IReadOnlyUserGroup[0];
_roles = new ObservableCollection>();
_roles.CollectionChanged += _roles_CollectionChanged;
@@ -84,7 +84,7 @@ namespace Umbraco.Core.Models.Identity
_startContentIds = new int[] { };
_groups = new IReadOnlyUserGroup[] { };
_allowedSections = new string[] { };
- _culture = Current.Configs.Global().DefaultUILanguage; //todo inject
+ _culture = Current.Configs.Global().DefaultUILanguage; // TODO: inject
_groups = groups.ToArray();
_roles = new ObservableCollection>(_groups.Select(x => new IdentityUserRole
{
diff --git a/src/Umbraco.Core/Models/MediaExtensions.cs b/src/Umbraco.Core/Models/MediaExtensions.cs
index 2945856817..e281aaf5ab 100644
--- a/src/Umbraco.Core/Models/MediaExtensions.cs
+++ b/src/Umbraco.Core/Models/MediaExtensions.cs
@@ -21,7 +21,7 @@ namespace Umbraco.Core.Models
var val = media.Properties[propertyType];
if (val == null) return string.Empty;
- //todo would need to be adjusted to variations, when media become variants
+ // TODO: would need to be adjusted to variations, when media become variants
var jsonString = val.GetValue() as string;
if (jsonString == null) return string.Empty;
diff --git a/src/Umbraco.Core/Models/Membership/User.cs b/src/Umbraco.Core/Models/Membership/User.cs
index 942c71f0c6..5e79967a94 100644
--- a/src/Umbraco.Core/Models/Membership/User.cs
+++ b/src/Umbraco.Core/Models/Membership/User.cs
@@ -27,7 +27,7 @@ namespace Umbraco.Core.Models.Membership
{
SessionTimeout = 60;
_userGroups = new HashSet();
- _language = Current.Configs.Global().DefaultUILanguage; //todo inject
+ _language = Current.Configs.Global().DefaultUILanguage; // TODO: inject
_isApproved = true;
_isLockedOut = false;
_startContentIds = new int[] { };
diff --git a/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs b/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs
index ac460ca34c..f4ed11e09e 100644
--- a/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs
+++ b/src/Umbraco.Core/Models/Packaging/CompiledPackage.cs
@@ -26,19 +26,19 @@ namespace Umbraco.Core.Models.Packaging
public string PackageView { get; set; }
public string IconUrl { get; set; }
- public string Actions { get; set; } //todo: Should we make this strongly typed to IEnumerable ?
+ public string Actions { get; set; } // TODO: Should we make this strongly typed to IEnumerable ?
public PreInstallWarnings Warnings { get; set; } = new PreInstallWarnings();
public List Files { get; set; } = new List();
- public IEnumerable Macros { get; set; } //todo: make strongly typed
- public IEnumerable Templates { get; set; } //todo: make strongly typed
- public IEnumerable Stylesheets { get; set; } //todo: make strongly typed
- public IEnumerable DataTypes { get; set; } //todo: make strongly typed
- public IEnumerable Languages { get; set; } //todo: make strongly typed
- public IEnumerable DictionaryItems { get; set; } //todo: make strongly typed
- public IEnumerable DocumentTypes { get; set; } //todo: make strongly typed
+ public IEnumerable Macros { get; set; } // TODO: make strongly typed
+ public IEnumerable Templates { get; set; } // TODO: make strongly typed
+ public IEnumerable Stylesheets { get; set; } // TODO: make strongly typed
+ public IEnumerable DataTypes { get; set; } // TODO: make strongly typed
+ public IEnumerable Languages { get; set; } // TODO: make strongly typed
+ public IEnumerable DictionaryItems { get; set; } // TODO: make strongly typed
+ public IEnumerable DocumentTypes { get; set; } // TODO: make strongly typed
public IEnumerable Documents { get; set; }
}
}
diff --git a/src/Umbraco.Core/Models/Property.cs b/src/Umbraco.Core/Models/Property.cs
index 5e45475dd2..f5c475908d 100644
--- a/src/Umbraco.Core/Models/Property.cs
+++ b/src/Umbraco.Core/Models/Property.cs
@@ -347,7 +347,7 @@ namespace Umbraco.Core.Models
///
internal bool IsValid(string culture = "*", string segment = "*")
{
- //todo - validating values shouldn't be done here, this calls in to IsValidValue
+ // TODO: validating values shouldn't be done here, this calls in to IsValidValue
culture = culture.NullOrWhiteSpaceAsNull();
segment = segment.NullOrWhiteSpaceAsNull();
@@ -388,7 +388,7 @@ namespace Umbraco.Core.Models
/// True is property value is valid, otherwise false
private bool IsValidValue(object value)
{
- //todo - this shouldn't exist here, the model itself shouldn't be responsible for it's own validation and this requires singleton access
+ // TODO: this shouldn't exist here, the model itself shouldn't be responsible for it's own validation and this requires singleton access
return PropertyType.IsPropertyValueValid(value);
}
diff --git a/src/Umbraco.Core/Models/PropertyCollection.cs b/src/Umbraco.Core/Models/PropertyCollection.cs
index ef56ce4a4c..5e71fe9f65 100644
--- a/src/Umbraco.Core/Models/PropertyCollection.cs
+++ b/src/Umbraco.Core/Models/PropertyCollection.cs
@@ -97,7 +97,7 @@ namespace Umbraco.Core.Models
///
internal new void Add(Property property)
{
- lock (_addLocker) // todo - why are we locking here and not everywhere else?!
+ lock (_addLocker) // TODO: why are we locking here and not everywhere else?!
{
var key = GetKeyForItem(property);
if (key != null)
diff --git a/src/Umbraco.Core/Models/PropertyGroupCollection.cs b/src/Umbraco.Core/Models/PropertyGroupCollection.cs
index 5fe47b52a4..2e9fb6520e 100644
--- a/src/Umbraco.Core/Models/PropertyGroupCollection.cs
+++ b/src/Umbraco.Core/Models/PropertyGroupCollection.cs
@@ -19,7 +19,7 @@ namespace Umbraco.Core.Models
{
private readonly ReaderWriterLockSlim _addLocker = new ReaderWriterLockSlim();
- //todo: this doesn't seem to be used anywhere
+ // TODO: this doesn't seem to be used anywhere
internal Action OnAdd;
internal PropertyGroupCollection()
diff --git a/src/Umbraco.Core/Models/PropertyTagsExtensions.cs b/src/Umbraco.Core/Models/PropertyTagsExtensions.cs
index c0dcddc6ae..63cf870221 100644
--- a/src/Umbraco.Core/Models/PropertyTagsExtensions.cs
+++ b/src/Umbraco.Core/Models/PropertyTagsExtensions.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Core.Models
///
public static class PropertyTagsExtensions
{
- // todo: inject
+ // TODO: inject
private static PropertyEditorCollection PropertyEditors => Current.PropertyEditors;
private static IDataTypeService DataTypeService => Current.Services.DataTypeService;
diff --git a/src/Umbraco.Core/Models/PropertyType.cs b/src/Umbraco.Core/Models/PropertyType.cs
index 377e86d2e5..107831ebdd 100644
--- a/src/Umbraco.Core/Models/PropertyType.cs
+++ b/src/Umbraco.Core/Models/PropertyType.cs
@@ -378,14 +378,14 @@ namespace Umbraco.Core.Models
}
- //todo - this and other value validation methods should be a service level (not a model) thing. Changing this to internal for now
+ // TODO: this and other value validation methods should be a service level (not a model) thing. Changing this to internal for now
///
/// Determines whether a value is valid for this property type.
///
internal bool IsPropertyValueValid(object value)
{
- var editor = Current.PropertyEditors[_propertyEditorAlias]; // todo inject
- var configuration = Current.Services.DataTypeService.GetDataType(_dataTypeId).Configuration; // todo inject
+ var editor = Current.PropertyEditors[_propertyEditorAlias]; // TODO: inject
+ var configuration = Current.Services.DataTypeService.GetDataType(_dataTypeId).Configuration; // TODO: inject
var valueEditor = editor.GetValueEditor(configuration);
return !valueEditor.Validate(value, Mandatory, ValidationRegExp).Any();
}
diff --git a/src/Umbraco.Core/Models/PropertyTypeCollection.cs b/src/Umbraco.Core/Models/PropertyTypeCollection.cs
index 6753ee7532..f39918d5af 100644
--- a/src/Umbraco.Core/Models/PropertyTypeCollection.cs
+++ b/src/Umbraco.Core/Models/PropertyTypeCollection.cs
@@ -19,7 +19,7 @@ namespace Umbraco.Core.Models
[IgnoreDataMember]
private readonly ReaderWriterLockSlim _addLocker = new ReaderWriterLockSlim();
- //todo: This doesn't seem to be used
+ // TODO: This doesn't seem to be used
[IgnoreDataMember]
internal Action OnAdd;
@@ -81,7 +81,7 @@ namespace Umbraco.Core.Models
{
item.IsPublishing = IsPublishing;
- // todo this is not pretty and should be refactored
+ // TODO: this is not pretty and should be refactored
try
{
_addLocker.EnterWriteLock();
diff --git a/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs b/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs
index e50fb2c396..33efc48c95 100644
--- a/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs
+++ b/src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs
@@ -15,7 +15,7 @@ namespace Umbraco.Core.Models.PublishedContent
{
#region Content
- // todo - IPublishedContent properties colliding with models
+ // TODO: IPublishedContent properties colliding with models
// we need to find a way to remove as much clutter as possible from IPublishedContent,
// since this is preventing someone from creating a property named 'Path' and have it
// in a model, for instance. we could move them all under one unique property eg
diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs
index 083e8dcc6e..0798e9a4e0 100644
--- a/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs
+++ b/src/Umbraco.Core/Models/PublishedContent/PublishedContentType.cs
@@ -86,7 +86,7 @@ namespace Umbraco.Core.Models.PublishedContent
}
}
- // todo - this list somehow also exists in constants, see memberTypeRepository => remove duplicate!
+ // TODO: this list somehow also exists in constants, see memberTypeRepository => remove duplicate!
private static readonly Dictionary BuiltinMemberProperties = new Dictionary
{
{ "Email", (Constants.DataTypes.Textbox, Constants.PropertyEditors.Aliases.TextBox) },
@@ -148,7 +148,8 @@ namespace Umbraco.Core.Models.PublishedContent
return -1;
}
- // virtual for unit tests - todo explain why
+ // virtual for unit tests
+ // TODO: explain why
///
/// Gets a property type.
///
@@ -158,7 +159,8 @@ namespace Umbraco.Core.Models.PublishedContent
return GetPropertyType(index);
}
- // virtual for unit tests - todo explain why
+ // virtual for unit tests
+ // TODO: explain why
///
/// Gets a property type.
///
diff --git a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs
index 0860fdb822..68892fd79a 100644
--- a/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs
+++ b/src/Umbraco.Core/Models/PublishedContent/PublishedPropertyType.cs
@@ -12,7 +12,7 @@ namespace Umbraco.Core.Models.PublishedContent
/// if the property type changes, then a new class needs to be created.
public class PublishedPropertyType
{
- //todo - API design review, should this be an interface?
+ // TODO: API design review, should this be an interface?
private readonly IPublishedModelFactory _publishedModelFactory;
private readonly PropertyValueConverterCollection _propertyValueConverters;
diff --git a/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs b/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs
index bfbde592b5..7898a9997a 100644
--- a/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs
+++ b/src/Umbraco.Core/Persistence/Constants-DatabaseSchema.cs
@@ -14,8 +14,8 @@ namespace Umbraco.Core
public const string Node = /*TableNamePrefix*/ "umbraco" + "Node";
public const string NodeData = /*TableNamePrefix*/ "cms" + "ContentNu";
- public const string NodeXml = /*TableNamePrefix*/ "cms" + "ContentXml"; // todo get rid of these with the xml cache
- public const string NodePreviewXml = /*TableNamePrefix*/ "cms" + "PreviewXml"; // todo get rid of these with the xml cache
+ public const string NodeXml = /*TableNamePrefix*/ "cms" + "ContentXml"; // TODO: get rid of these with the xml cache
+ public const string NodePreviewXml = /*TableNamePrefix*/ "cms" + "PreviewXml"; // TODO: get rid of these with the xml cache
public const string ContentType = /*TableNamePrefix*/ "cms" + "ContentType";
public const string ContentChildType = /*TableNamePrefix*/ "cms" + "ContentTypeAllowedContentType";
diff --git a/src/Umbraco.Core/Persistence/Dtos/ContentVersionCultureVariationDto.cs b/src/Umbraco.Core/Persistence/Dtos/ContentVersionCultureVariationDto.cs
index ada26358dc..65d677d240 100644
--- a/src/Umbraco.Core/Persistence/Dtos/ContentVersionCultureVariationDto.cs
+++ b/src/Umbraco.Core/Persistence/Dtos/ContentVersionCultureVariationDto.cs
@@ -33,10 +33,10 @@ namespace Umbraco.Core.Persistence.Dtos
[Column("name")]
public string Name { get; set; }
- [Column("date")] // todo: db rename to 'updateDate'
+ [Column("date")] // TODO: db rename to 'updateDate'
public DateTime UpdateDate { get; set; }
- [Column("availableUserId")] // todo: db rename to 'updateDate'
+ [Column("availableUserId")] // TODO: db rename to 'updateDate'
[ForeignKey(typeof(UserDto))]
[NullSetting(NullSetting = NullSettings.Null)]
public int? UpdateUserId { get => _updateUserId == 0 ? null : _updateUserId; set => _updateUserId = value; } //return null if zero
diff --git a/src/Umbraco.Core/Persistence/Dtos/ContentVersionDto.cs b/src/Umbraco.Core/Persistence/Dtos/ContentVersionDto.cs
index 287e812211..3c2c3deda4 100644
--- a/src/Umbraco.Core/Persistence/Dtos/ContentVersionDto.cs
+++ b/src/Umbraco.Core/Persistence/Dtos/ContentVersionDto.cs
@@ -21,16 +21,16 @@ namespace Umbraco.Core.Persistence.Dtos
[ForeignKey(typeof(ContentDto))]
public int NodeId { get; set; }
- [Column("versionDate")] // todo: db rename to 'updateDate'
+ [Column("versionDate")] // TODO: db rename to 'updateDate'
[Constraint(Default = SystemMethods.CurrentDateTime)]
public DateTime VersionDate { get; set; }
- [Column("userId")] // todo: db rename to 'updateUserId'
+ [Column("userId")] // TODO: db rename to 'updateUserId'
[ForeignKey(typeof(UserDto))]
[NullSetting(NullSetting = NullSettings.Null)]
public int? UserId { get => _userId == 0 ? null : _userId; set => _userId = value; } //return null if zero
- //todo - we need an index on this it is used almost always in querying and sorting
+ // TODO: we need an index on this it is used almost always in querying and sorting
[Column("current")]
public bool Current { get; set; }
diff --git a/src/Umbraco.Core/Persistence/Dtos/DataTypeDto.cs b/src/Umbraco.Core/Persistence/Dtos/DataTypeDto.cs
index a0e526b62e..d270c7b732 100644
--- a/src/Umbraco.Core/Persistence/Dtos/DataTypeDto.cs
+++ b/src/Umbraco.Core/Persistence/Dtos/DataTypeDto.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Core.Persistence.Dtos
public int NodeId { get; set; }
[Column("propertyEditorAlias")]
- public string EditorAlias { get; set; } // todo should this have a length
+ public string EditorAlias { get; set; } // TODO: should this have a length
[Column("dbType")]
[Length(50)]
diff --git a/src/Umbraco.Core/Persistence/Dtos/NodeDto.cs b/src/Umbraco.Core/Persistence/Dtos/NodeDto.cs
index 8f50891b34..5800efb97a 100644
--- a/src/Umbraco.Core/Persistence/Dtos/NodeDto.cs
+++ b/src/Umbraco.Core/Persistence/Dtos/NodeDto.cs
@@ -45,7 +45,7 @@ namespace Umbraco.Core.Persistence.Dtos
[Index(IndexTypes.NonClustered, Name = "IX_" + TableName + "_Trashed")]
public bool Trashed { get; set; }
- [Column("nodeUser")] // todo: db rename to 'createUserId'
+ [Column("nodeUser")] // TODO: db rename to 'createUserId'
[ForeignKey(typeof(UserDto))]
[NullSetting(NullSetting = NullSettings.Null)]
public int? UserId { get => _userId == 0 ? null : _userId; set => _userId = value; } //return null if zero
@@ -54,7 +54,7 @@ namespace Umbraco.Core.Persistence.Dtos
[NullSetting(NullSetting = NullSettings.Null)]
public string Text { get; set; }
- [Column("nodeObjectType")] // todo: db rename to 'objectType'
+ [Column("nodeObjectType")] // TODO: db rename to 'objectType'
[NullSetting(NullSetting = NullSettings.Null)]
[Index(IndexTypes.NonClustered, Name = "IX_" + TableName + "_ObjectType")]
public Guid? NodeObjectType { get; set; }
diff --git a/src/Umbraco.Core/Persistence/Factories/ContentBaseFactory.cs b/src/Umbraco.Core/Persistence/Factories/ContentBaseFactory.cs
index 97e172f98f..434e0393cd 100644
--- a/src/Umbraco.Core/Persistence/Factories/ContentBaseFactory.cs
+++ b/src/Umbraco.Core/Persistence/Factories/ContentBaseFactory.cs
@@ -49,7 +49,7 @@ namespace Umbraco.Core.Persistence.Factories
content.Published = dto.Published;
content.Edited = dto.Edited;
- // todo - shall we get published infos or not?
+ // TODO: shall we get published infos or not?
//if (dto.Published)
if (publishedVersionDto != null)
{
@@ -89,7 +89,7 @@ namespace Umbraco.Core.Persistence.Factories
content.Key = nodeDto.UniqueId;
content.VersionId = contentVersionDto.Id;
- // todo missing names?
+ // TODO: missing names?
content.Path = nodeDto.Path;
content.Level = nodeDto.Level;
@@ -130,7 +130,7 @@ namespace Umbraco.Core.Persistence.Factories
content.Key = nodeDto.UniqueId;
content.VersionId = contentVersionDto.Id;
- // todo missing names?
+ // TODO: missing names?
content.Path = nodeDto.Path;
content.Level = nodeDto.Level;
@@ -294,7 +294,7 @@ namespace Umbraco.Core.Persistence.Factories
private static MediaVersionDto BuildMediaVersionDto(IMedia entity, ContentDto contentDto)
{
// try to get a path from the string being stored for media
- // todo - only considering umbracoFile
+ // TODO: only considering umbracoFile
TryMatch(entity.GetValue("umbracoFile"), out var path);
@@ -309,7 +309,7 @@ namespace Umbraco.Core.Persistence.Factories
return dto;
}
- // todo - this should NOT be here?!
+ // TODO: this should NOT be here?!
// more dark magic ;-(
internal static bool TryMatch(string text, out string path)
{
diff --git a/src/Umbraco.Core/Persistence/LocalDb.cs b/src/Umbraco.Core/Persistence/LocalDb.cs
index 94e930abe9..55d6565344 100644
--- a/src/Umbraco.Core/Persistence/LocalDb.cs
+++ b/src/Umbraco.Core/Persistence/LocalDb.cs
@@ -317,8 +317,8 @@ namespace Umbraco.Core.Persistence
if (dbname == "master" || dbname == "tempdb" || dbname == "model" || dbname == "msdb")
continue;
- // todo - shall we deal with stale databases?
- // todo - is it always ok to assume file names?
+ // TODO: shall we deal with stale databases?
+ // TODO: is it always ok to assume file names?
//var mdf = database.Value;
//var ldf = mdf.Replace(".mdf", "_log.ldf");
//if (staleOnly && File.Exists(mdf) && File.Exists(ldf))
diff --git a/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs b/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs
index b596ab60a3..09f754c47a 100644
--- a/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs
+++ b/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions-Bulk.cs
@@ -17,7 +17,7 @@ namespace Umbraco.Core.Persistence
///
public static partial class NPocoDatabaseExtensions
{
- // todo: review NPoco native InsertBulk to replace the code below
+ // TODO: review NPoco native InsertBulk to replace the code below
///
/// Bulk-inserts records within a transaction.
@@ -177,8 +177,8 @@ namespace Umbraco.Core.Persistence
using (var command = database.CreateCommand(database.Connection, CommandType.TableDirect, string.Empty))
{
command.CommandText = pocoData.TableInfo.TableName;
- command.CommandType = CommandType.TableDirect; // todo - why repeat?
- // todo - not supporting transactions?
+ command.CommandType = CommandType.TableDirect; // TODO: why repeat?
+ // TODO: not supporting transactions?
//cmd.Transaction = GetTypedTransaction(db.Connection.);
var count = 0;
diff --git a/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions.cs b/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions.cs
index b8417d743d..248f91284f 100644
--- a/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions.cs
+++ b/src/Umbraco.Core/Persistence/NPocoDatabaseExtensions.cs
@@ -32,7 +32,7 @@ namespace Umbraco.Core.Persistence
//
// works in READ COMMITED, TSQL & SQLCE lock the constraint even if it does not exist, so INSERT is OK
//
- // todo: use the proper database syntax, not this kludge
+ // TODO: use the proper database syntax, not this kludge
///
/// Safely inserts a record, or updates if it exists, based on a unique constraint.
@@ -81,7 +81,7 @@ namespace Umbraco.Core.Persistence
if (poco == null)
throw new ArgumentNullException(nameof(poco));
- // todo - NPoco has a Save method that works with the primary key
+ // TODO: NPoco has a Save method that works with the primary key
// in any case, no point trying to update if there's no primary key!
// try to update
diff --git a/src/Umbraco.Core/Persistence/NPocoSqlExtensions.cs b/src/Umbraco.Core/Persistence/NPocoSqlExtensions.cs
index 10735f865c..23d818f0b3 100644
--- a/src/Umbraco.Core/Persistence/NPocoSqlExtensions.cs
+++ b/src/Umbraco.Core/Persistence/NPocoSqlExtensions.cs
@@ -496,7 +496,7 @@ namespace Umbraco.Core.Persistence
public static Sql On(this Sql.SqlJoinClause sqlJoin,
Expression> leftField, Expression> rightField)
{
- // todo - ugly - should define on SqlContext!
+ // TODO: ugly - should define on SqlContext!
var xLeft = new Sql(sqlJoin.SqlContext).Columns(leftField);
var xRight = new Sql(sqlJoin.SqlContext).Columns(rightField);
@@ -1180,7 +1180,7 @@ namespace Umbraco.Core.Persistence
private static string GetTableName(this Type type)
{
- // todo: returning string.Empty for now
+ // TODO: returning string.Empty for now
// BUT the code bits that calls this method cannot deal with string.Empty so we
// should either throw, or fix these code bits...
var attr = type.FirstAttribute();
diff --git a/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs b/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs
index 64b3c91e50..b6f5401bec 100644
--- a/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs
+++ b/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs
@@ -10,7 +10,7 @@ using Umbraco.Core.Composing;
namespace Umbraco.Core.Persistence.Querying
{
- // todo - are we basically duplicating entire parts of NPoco just because of SqlSyntax ?!
+ // TODO: are we basically duplicating entire parts of NPoco just because of SqlSyntax ?!
// try to use NPoco's version !
///
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/ContentRepositoryBase.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/ContentRepositoryBase.cs
index 8057c87578..821f0941fc 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/ContentRepositoryBase.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/ContentRepositoryBase.cs
@@ -43,7 +43,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
protected ILanguageRepository LanguageRepository { get; }
- protected PropertyEditorCollection PropertyEditors => Current.PropertyEditors; // todo inject
+ protected PropertyEditorCollection PropertyEditors => Current.PropertyEditors; // TODO: inject
#region Versions
@@ -73,7 +73,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
// deletes a specific version
public virtual void DeleteVersion(int versionId)
{
- // todo test object node type?
+ // TODO: test object node type?
// get the version we want to delete
var template = SqlContext.Templates.Get("Umbraco.Core.VersionableRepository.GetVersion", tsql =>
@@ -95,7 +95,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
// deletes all versions of an entity, older than a date.
public virtual void DeleteVersions(int nodeId, DateTime versionDate)
{
- // todo test object node type?
+ // TODO: test object node type?
// get the versions we want to delete, excluding the current one
var template = SqlContext.Templates.Get("Umbraco.Core.VersionableRepository.GetVersions", tsql =>
@@ -240,7 +240,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
}
}
- // todo should we do it when un-publishing? or?
+ // TODO: should we do it when un-publishing? or?
///
/// Clears tags for an item.
///
@@ -374,7 +374,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
return GetAliasedField(SqlSyntax.GetFieldName(x => x.Text), sql);
// "variantName" alias is defined in DocumentRepository.GetBaseQuery
- // todo - what if it is NOT a document but a ... media or whatever?
+ // TODO: what if it is NOT a document but a ... media or whatever?
// previously, we inserted the join+select *here* so we were sure to have it,
// but now that's not the case anymore!
return "variantName";
@@ -620,7 +620,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#region UnitOfWork Events
- // todo: The reason these events are in the repository is for legacy, the events should exist at the service
+ // TODO: The reason these events are in the repository is for legacy, the events should exist at the service
// level now since we can fire these events within the transaction... so move the events to service level
public class ScopedEntityEventArgs : EventArgs
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
index 3bc730d5d0..92ade18204 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
@@ -343,8 +343,7 @@ AND umbracoNode.id <> @id",
List orphanPropertyTypeIds = null;
if (entity.IsPropertyDirty("PropertyGroups"))
{
- // todo
- // we used to try to propagate tabs renaming downstream, relying on ParentId, but
+ // TODO: we used to try to propagate tabs renaming downstream, relying on ParentId, but
// 1) ParentId makes no sense (if a tab can be inherited from multiple composition
// types) so we would need to figure things out differently, visiting downstream
// content types and looking for tabs with the same name...
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs
index 8bee55060b..dcac7f4ff4 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/DocumentRepository.cs
@@ -148,7 +148,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
.On((left, right) => left.Id == right.Id && right.Published, "pcv", "pdv"), "pcv")
.On((left, right) => left.NodeId == right.NodeId, aliasRight: "pcv")
- // todo - should we be joining this when the query type is not single/many?
+ // TODO: should we be joining this when the query type is not single/many?
// left join on optional culture variation
//the magic "[[[ISOCODE]]]" parameter value will be replaced in ContentRepositoryBase.GetPage() by the actual ISO code
.LeftJoin(nested =>
@@ -277,7 +277,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
SanitizeNames(content, publishing);
// ensure that strings don't contain characters that are invalid in xml
- // todo - do we really want to keep doing this here?
+ // TODO: do we really want to keep doing this here?
entity.SanitizeEntityPropertiesForXmlStorage();
// create the dto
@@ -466,7 +466,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
SanitizeNames(content, publishing);
// ensure that strings don't contain characters that are invalid in xml
- // todo - do we really want to keep doing this here?
+ // TODO: do we really want to keep doing this here?
entity.SanitizeEntityPropertiesForXmlStorage();
// if parent has changed, get path, level and sort order
@@ -545,7 +545,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
edited = true;
(editedCultures ?? (editedCultures = new HashSet(StringComparer.OrdinalIgnoreCase))).Add(culture);
- // todo - change tracking
+ // TODO: change tracking
// at the moment, we don't do any dirty tracking on property values, so we don't know whether the
// culture has just been edited or not, so we don't update its update date - that date only changes
// when the name is set, and it all works because the controller does it - but, if someone uses a
@@ -561,7 +561,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
var deleteDocumentVariations = Sql().Delete().Where(x => x.NodeId == content.Id);
Database.Execute(deleteDocumentVariations);
- // todo NPoco InsertBulk issue?
+ // TODO: NPoco InsertBulk issue?
// we should use the native NPoco InsertBulk here but it causes problems (not sure exactly all scenarios)
// but by using SQL Server and updating a variants name will cause: Unable to cast object of type
// 'Umbraco.Core.Persistence.FaultHandling.RetryDbConnection' to type 'System.Data.SqlClient.SqlConnection'.
@@ -622,8 +622,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
ClearEntityTags(entity, _tagRepository);
}
- // note re. tags: explicitly unpublished entities have cleared tags,
- // but masked or trashed entities *still* have tags in the db todo so what?
+ // TODO: note re. tags: explicitly unpublished entities have cleared tags, but masked or trashed entities *still* have tags in the db - so what?
entity.ResetDirtyProperties();
@@ -837,7 +836,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
}
// reading repository purely for looking up by GUID
- // todo - ugly and to fix we need to decouple the IRepositoryQueryable -> IRepository -> IReadRepository which should all be separate things!
+ // TODO: ugly and to fix we need to decouple the IRepositoryQueryable -> IRepository -> IReadRepository which should all be separate things!
private class ContentByGuidReadRepository : NPocoRepositoryBase
{
private readonly DocumentRepository _outerRepo;
@@ -1124,7 +1123,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
// get properties - indexed by version id
var versionId = dto.DocumentVersionDto.Id;
- // todo - shall we get published properties or not?
+ // TODO: shall we get published properties or not?
//var publishedVersionId = dto.Published ? dto.PublishedVersionDto.Id : 0;
var publishedVersionId = dto.PublishedVersionDto != null ? dto.PublishedVersionDto.Id : 0;
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/EntityRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/EntityRepository.cs
index c531b991a9..85912694f0 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/EntityRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/EntityRepository.cs
@@ -62,7 +62,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
ApplyOrdering(ref sql, ordering);
}
- //todo - we should be able to do sql = sql.OrderBy(x => Alias(x.NodeId, "NodeId")); but we can't because the OrderBy extension don't support Alias currently
+ // TODO: we should be able to do sql = sql.OrderBy(x => Alias(x.NodeId, "NodeId")); but we can't because the OrderBy extension don't support Alias currently
//no matter what we always must have node id ordered at the end
sql = ordering.Direction == Direction.Ascending ? sql.OrderBy("NodeId") : sql.OrderByDescending("NodeId");
@@ -73,7 +73,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
if (isContent)
BuildVariants(entities.Cast());
- //todo - see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
+ // TODO: see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
if (isMedia)
BuildProperties(entities, dtos);
@@ -166,7 +166,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
var entities = dtos.Select(x => BuildEntity(false, isMedia, x)).ToArray();
- //todo- see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
+ // TODO: See https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
if (isMedia && loadMediaProperties)
BuildProperties(entities, dtos);
@@ -227,7 +227,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
return GetEntities(sql, isContent, isMedia, true);
}
- //todo- see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
+ // TODO: See https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
internal IEnumerable GetMediaByQueryWithoutPropertyData(IQuery query)
{
var isContent = false;
@@ -266,7 +266,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
return Database.ExecuteScalar(sql) > 0;
}
- //todo - see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
+ // TODO: see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
private void BuildProperties(EntitySlim entity, BaseDto dto)
{
var pdtos = Database.Fetch(GetPropertyData(dto.VersionId));
@@ -274,7 +274,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
BuildProperty(entity, pdto);
}
- //todo - see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
+ // TODO: see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
private void BuildProperties(EntitySlim[] entities, List dtos)
{
var versionIds = dtos.Select(x => x.VersionId).Distinct().ToList();
@@ -290,7 +290,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
}
}
- //todo - see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
+ // TODO: see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
private void BuildProperty(EntitySlim entity, PropertyDataDto pdto)
{
// explain ?!
@@ -539,7 +539,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
if (sql == null) throw new ArgumentNullException(nameof(sql));
if (ordering == null) throw new ArgumentNullException(nameof(ordering));
- //todo - although this works for name, it probably doesn't work for others without an alias of some sort
+ // TODO: although this works for name, it probably doesn't work for others without an alias of some sort
var orderBy = ordering.OrderBy;
if (ordering.Direction == Direction.Ascending)
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/MediaRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/MediaRepository.cs
index 94714d6ded..38558e1ca5 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/MediaRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/MediaRepository.cs
@@ -225,7 +225,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
entity.Name = EnsureUniqueNodeName(entity.ParentId, entity.Name);
// ensure that strings don't contain characters that are invalid in xml
- // todo - do we really want to keep doing this here?
+ // TODO: do we really want to keep doing this here?
entity.SanitizeEntityPropertiesForXmlStorage();
// create the dto
@@ -304,7 +304,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
entity.Name = EnsureUniqueNodeName(entity.ParentId, entity.Name, entity.Id);
// ensure that strings don't contain characters that are invalid in xml
- // todo - do we really want to keep doing this here?
+ // TODO: do we really want to keep doing this here?
entity.SanitizeEntityPropertiesForXmlStorage();
// if parent has changed, get path, level and sort order
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/MemberGroupRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/MemberGroupRepository.cs
index e6ee79470c..ff7a79f98e 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/MemberGroupRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/MemberGroupRepository.cs
@@ -298,7 +298,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
public int MemberGroupId { get; set; }
}
- // todo - understand why we need these two repository-level events, move them back to service
+ // TODO: understand why we need these two repository-level events, move them back to service
///
/// Occurs before Save
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs
index 9d7556f356..18dc16cbce 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs
@@ -66,7 +66,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
{
var baseQuery = GetBaseQuery(false);
- // todo why is this different from content/media?!
+ // TODO: why is this different from content/media?!
// check if the query is based on properties or not
var wheres = query.GetWhereClauses();
@@ -103,7 +103,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
{
var sql = SqlContext.Sql();
- switch (queryType) // todo pretend we still need these queries for now
+ switch (queryType) // TODO: pretend we still need these queries for now
{
case QueryType.Count:
sql = sql.SelectCount();
@@ -143,18 +143,18 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
return sql;
}
- // todo - move that one up to Versionable! or better: kill it!
+ // TODO: move that one up to Versionable! or better: kill it!
protected override Sql GetBaseQuery(bool isCount)
{
return GetBaseQuery(isCount ? QueryType.Count : QueryType.Single);
}
- protected override string GetBaseWhereClause() // todo - can we kill / refactor this?
+ protected override string GetBaseWhereClause() // TODO: can we kill / refactor this?
{
return "umbracoNode.id = @id";
}
- // todo document/understand that one
+ // TODO: document/understand that one
protected Sql GetNodeIdQueryWithPropertyData()
{
return Sql()
@@ -237,7 +237,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
member.AddingEntity();
// ensure that strings don't contain characters that are invalid in xml
- // todo - do we really want to keep doing this here?
+ // TODO: do we really want to keep doing this here?
entity.SanitizeEntityPropertiesForXmlStorage();
// create the dto
@@ -329,7 +329,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
member.UpdatingEntity();
// ensure that strings don't contain characters that are invalid in xml
- // todo - do we really want to keep doing this here?
+ // TODO: do we really want to keep doing this here?
entity.SanitizeEntityPropertiesForXmlStorage();
// if parent has changed, get path, level and sort order
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/NPocoRepositoryBase.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/NPocoRepositoryBase.cs
index a0ba2d5aa3..23236ec9f0 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/NPocoRepositoryBase.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/NPocoRepositoryBase.cs
@@ -42,7 +42,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
#region Abstract Methods
- protected abstract Sql GetBaseQuery(bool isCount); // todo obsolete, use QueryType instead everywhere
+ protected abstract Sql GetBaseQuery(bool isCount); // TODO: obsolete, use QueryType instead everywhere
protected abstract string GetBaseWhereClause();
protected abstract IEnumerable GetDeleteClauses();
protected abstract Guid NodeObjectTypeId { get; }
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
index 84e8ffc172..fb45a79e43 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
@@ -78,7 +78,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
}
}
- // todo - but now that we have 1 unique repository?
+ // TODO: but now that we have 1 unique repository?
// this is a *bad* idea because PerformCount captures the current repository and its UOW
//
//private static RepositoryCachePolicyOptions _defaultOptions;
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/ServerRegistrationRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/ServerRegistrationRepository.cs
index b4aa9c27f9..2bad7229f2 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/ServerRegistrationRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/ServerRegistrationRepository.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
protected override IRepositoryCachePolicy CreateCachePolicy()
{
- // todo - wtf are we doing with cache here?
+ // TODO: wtf are we doing with cache here?
// why are we using disabled cache helper up there?
//
// 7.6 says:
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
index 2242c65256..fdd5fb0d86 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
@@ -65,7 +65,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
if (_passwordConfigInitialized)
return _passwordConfigJson;
- // todo - this is bad
+ // TODO: this is bad
// because the membership provider we're trying to get has a dependency on the user service
// and we should not depend on services in repositories - need a way better way to do this
@@ -238,7 +238,7 @@ ORDER BY colName";
public void ClearLoginSession(Guid sessionId)
{
- // todo why is that one updating and not deleting?
+ // TODO: why is that one updating and not deleting?
Database.Execute(Sql()
.Update(u => u.Set(x => x.LoggedOutUtc, DateTime.UtcNow))
.Where(x => x.SessionId == sessionId));
diff --git a/src/Umbraco.Core/Persistence/SqlSyntaxExtensions.cs b/src/Umbraco.Core/Persistence/SqlSyntaxExtensions.cs
index 43ef03327b..2fba8e7d49 100644
--- a/src/Umbraco.Core/Persistence/SqlSyntaxExtensions.cs
+++ b/src/Umbraco.Core/Persistence/SqlSyntaxExtensions.cs
@@ -13,7 +13,7 @@ namespace Umbraco.Core.Persistence
{
private static string GetTableName(this Type type)
{
- // todo: returning string.Empty for now
+ // TODO: returning string.Empty for now
// BUT the code bits that calls this method cannot deal with string.Empty so we
// should either throw, or fix these code bits...
var attr = type.FirstAttribute();
diff --git a/src/Umbraco.Core/Persistence/UmbracoDatabase.cs b/src/Umbraco.Core/Persistence/UmbracoDatabase.cs
index 4e795d3a78..51e0172f35 100644
--- a/src/Umbraco.Core/Persistence/UmbracoDatabase.cs
+++ b/src/Umbraco.Core/Persistence/UmbracoDatabase.cs
@@ -159,7 +159,7 @@ namespace Umbraco.Core.Persistence
#region OnSomething
- // todo - has new interceptors to replace OnSomething?
+ // TODO: has new interceptors to replace OnSomething?
protected override DbConnection OnConnectionOpened(DbConnection connection)
{
@@ -218,7 +218,7 @@ namespace Umbraco.Core.Persistence
cmd.CommandTimeout = cmd.Connection.ConnectionTimeout;
if (EnableSqlTrace)
- _logger.Debug("SQL Trace:\r\n{Sql}", CommandToString(cmd).Replace("{", "{{").Replace("}", "}}")); // todo these escapes should be builtin
+ _logger.Debug("SQL Trace:\r\n{Sql}", CommandToString(cmd).Replace("{", "{{").Replace("}", "}}")); // TODO: these escapes should be builtin
#if DEBUG_DATABASES
// detects whether the command is already in use (eg still has an open reader...)
diff --git a/src/Umbraco.Core/Persistence/UmbracoDatabaseFactory.cs b/src/Umbraco.Core/Persistence/UmbracoDatabaseFactory.cs
index aec49b8eb5..eab0ae5509 100644
--- a/src/Umbraco.Core/Persistence/UmbracoDatabaseFactory.cs
+++ b/src/Umbraco.Core/Persistence/UmbracoDatabaseFactory.cs
@@ -22,8 +22,8 @@ namespace Umbraco.Core.Persistence
/// It wraps an NPoco UmbracoDatabaseFactory which is initializes with a proper IPocoDataFactory to ensure
/// that NPoco's plumbing is cached appropriately for the whole application.
///
- //todo these comments are not true anymore
- //todo this class needs not be disposable!
+ // TODO: these comments are not true anymore
+ // TODO: this class needs not be disposable!
internal class UmbracoDatabaseFactory : DisposableObject, IUmbracoDatabaseFactory
{
private readonly Lazy _mappers;
@@ -288,7 +288,7 @@ namespace Umbraco.Core.Persistence
// thread, so we don't really know what we are disposing here...
// besides, we don't really want to dispose the factory, which is a singleton...
- // todo - the class does not need be disposable
+ // TODO: the class does not need be disposable
//var db = _umbracoDatabaseAccessor.UmbracoDatabase;
//_umbracoDatabaseAccessor.UmbracoDatabase = null;
//db?.Dispose();
@@ -299,7 +299,7 @@ namespace Umbraco.Core.Persistence
// this method provides a way to force-reset the variable
internal void ResetForTests()
{
- // todo remove all this eventually
+ // TODO: remove all this eventually
//var db = _umbracoDatabaseAccessor.UmbracoDatabase;
//_umbracoDatabaseAccessor.UmbracoDatabase = null;
//db?.Dispose();
diff --git a/src/Umbraco.Core/PropertyEditors/DataEditor.cs b/src/Umbraco.Core/PropertyEditors/DataEditor.cs
index 0db6dcb0dd..ae6ace996e 100644
--- a/src/Umbraco.Core/PropertyEditors/DataEditor.cs
+++ b/src/Umbraco.Core/PropertyEditors/DataEditor.cs
@@ -89,7 +89,7 @@ namespace Umbraco.Core.PropertyEditors
/// Technically, it could be cached by datatype but let's keep things
/// simple enough for now.
///
- // todo point of that one? shouldn't we always configure?
+ // TODO: point of that one? shouldn't we always configure?
public IDataValueEditor GetValueEditor() => ExplicitValueEditor ?? CreateValueEditor();
///
@@ -113,7 +113,7 @@ namespace Umbraco.Core.PropertyEditors
return ExplicitValueEditor;
var editor = CreateValueEditor();
- ((DataValueEditor) editor).Configuration = configuration; // todo casting is bad
+ ((DataValueEditor) editor).Configuration = configuration; // TODO: casting is bad
return editor;
}
diff --git a/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs b/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs
index 153039dedb..096b80de1f 100644
--- a/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs
+++ b/src/Umbraco.Core/PropertyEditors/DataValueEditor.cs
@@ -283,7 +283,7 @@ namespace Umbraco.Core.PropertyEditors
}
}
- // todo - the methods below should be replaced by proper property value convert ToXPath usage!
+ // TODO: the methods below should be replaced by proper property value convert ToXPath usage!
///
/// Converts a property to Xml fragments.
diff --git a/src/Umbraco.Core/PropertyEditors/IDataEditor.cs b/src/Umbraco.Core/PropertyEditors/IDataEditor.cs
index 16aa4d6d5c..e7aa68459e 100644
--- a/src/Umbraco.Core/PropertyEditors/IDataEditor.cs
+++ b/src/Umbraco.Core/PropertyEditors/IDataEditor.cs
@@ -46,7 +46,7 @@ namespace Umbraco.Core.PropertyEditors
///
/// Gets a value editor.
///
- IDataValueEditor GetValueEditor(); // todo - should be configured?!
+ IDataValueEditor GetValueEditor(); // TODO: should be configured?!
///
/// Gets a configured value editor.
diff --git a/src/Umbraco.Core/PropertyEditors/IDataValueEditor.cs b/src/Umbraco.Core/PropertyEditors/IDataValueEditor.cs
index c92b6fa0d3..cb68531cc7 100644
--- a/src/Umbraco.Core/PropertyEditors/IDataValueEditor.cs
+++ b/src/Umbraco.Core/PropertyEditors/IDataValueEditor.cs
@@ -47,7 +47,7 @@ namespace Umbraco.Core.PropertyEditors
///
///
/// Use this property to add validators, not to validate. Use instead.
- /// todo replace with AddValidator? WithValidator?
+ /// TODO: replace with AddValidator? WithValidator?
///
List Validators { get; }
@@ -61,7 +61,7 @@ namespace Umbraco.Core.PropertyEditors
///
object ToEditor(Property property, IDataTypeService dataTypeService, string culture = null, string segment = null);
- // todo / deal with this when unplugging the xml cache
+ // TODO: / deal with this when unplugging the xml cache
// why property vs propertyType? services should be injected! etc...
IEnumerable ConvertDbToXml(Property property, IDataTypeService dataTypeService, ILocalizationService localizationService, bool published);
XNode ConvertDbToXml(PropertyType propertyType, object value, IDataTypeService dataTypeService);
diff --git a/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs b/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs
index 204dff6f19..62f2e0ca1d 100644
--- a/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs
+++ b/src/Umbraco.Core/PropertyEditors/ManifestValueValidatorCollection.cs
@@ -17,7 +17,7 @@ namespace Umbraco.Core.PropertyEditors
if (v == null)
throw new InvalidOperationException($"Could not find a validator named \"{name}\".");
- // todo - what is this exactly?
+ // TODO: what is this exactly?
// we cannot return this instance, need to clone it?
return (IManifestValueValidator) Activator.CreateInstance(v.GetType()); // ouch
}
diff --git a/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs b/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs
index e1f99083e8..2439c7c02e 100644
--- a/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs
+++ b/src/Umbraco.Core/PropertyEditors/TagsPropertyEditorAttribute.cs
@@ -43,7 +43,7 @@ namespace Umbraco.Core.PropertyEditors
///
/// Gets or sets a value indicating whether to replace the tags entirely.
///
- // todo: what's the usage?
+ // TODO: what's the usage?
public bool ReplaceTags { get; set; }
///
diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs
index 12594eb842..31ab47223f 100644
--- a/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs
+++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/SliderValueConverter.cs
@@ -67,7 +67,7 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
// GetPreValuesCollectionByDataTypeId is cached at repository level;
// still, the collection is deep-cloned so this is kinda expensive,
// better to cache here + trigger refresh in DataTypeCacheRefresher
- // todo: this is cheap now, remove the caching
+ // TODO: this is cheap now, remove the caching
return Storages.GetOrAdd(dataTypeId, id =>
{
diff --git a/src/Umbraco.Core/Scoping/Scope.cs b/src/Umbraco.Core/Scoping/Scope.cs
index 6aeee33c41..f9ea02b072 100644
--- a/src/Umbraco.Core/Scoping/Scope.cs
+++ b/src/Umbraco.Core/Scoping/Scope.cs
@@ -85,7 +85,7 @@ namespace Umbraco.Core.Scoping
ParentScope = parent;
// cannot specify a different mode!
- // todo - means that it's OK to go from L2 to None for reading purposes, but writing would be BAD!
+ // TODO: means that it's OK to go from L2 to None for reading purposes, but writing would be BAD!
// this is for XmlStore that wants to bypass caches when rebuilding XML (same for NuCache)
if (repositoryCacheMode != RepositoryCacheMode.Unspecified && parent.RepositoryCacheMode > repositoryCacheMode)
throw new ArgumentException($"Value '{repositoryCacheMode}' cannot be lower than parent value '{parent.RepositoryCacheMode}'.", nameof(repositoryCacheMode));
@@ -264,7 +264,7 @@ namespace Umbraco.Core.Scoping
if (ParentScope != null) return ParentScope.Messages;
return _messages ?? (_messages = new EventMessages());
- // todo - event messages?
+ // TODO: event messages?
// this may be a problem: the messages collection will be cleared at the end of the scope
// how shall we process it in controllers etc? if we don't want the global factory from v7?
// it'd need to be captured by the controller
@@ -323,7 +323,7 @@ namespace Umbraco.Core.Scoping
if (_disposed)
throw new ObjectDisposedException(GetType().FullName);
- // todo - safer?
+ // TODO: safer?
//if (Interlocked.CompareExchange(ref _disposed, 1, 0) != 0)
// throw new ObjectDisposedException(GetType().FullName);
}
diff --git a/src/Umbraco.Core/Scoping/ScopeContext.cs b/src/Umbraco.Core/Scoping/ScopeContext.cs
index 3f70f1791e..03a0da1a55 100644
--- a/src/Umbraco.Core/Scoping/ScopeContext.cs
+++ b/src/Umbraco.Core/Scoping/ScopeContext.cs
@@ -13,10 +13,7 @@ namespace Umbraco.Core.Scoping
if (_enlisted == null)
return;
- // todo
- // - can we create infinite loops?
- // - what about nested events? will they just be plainly ignored = really bad?
-
+ // TODO: - can we create infinite loops? - what about nested events? will they just be plainly ignored = really bad?
List exceptions = null;
List orderedEnlisted;
while ((orderedEnlisted = _enlisted.Values.OrderBy(x => x.Priority).ToList()).Count > 0)
diff --git a/src/Umbraco.Core/Services/IContentService.cs b/src/Umbraco.Core/Services/IContentService.cs
index 3a3c43c6a0..7fb7450b46 100644
--- a/src/Umbraco.Core/Services/IContentService.cs
+++ b/src/Umbraco.Core/Services/IContentService.cs
@@ -242,7 +242,7 @@ namespace Umbraco.Core.Services
///
/// Saves documents.
///
- // todo why only 1 result not 1 per content?!
+ // TODO: why only 1 result not 1 per content?!
OperationResult Save(IEnumerable contents, int userId = 0, bool raiseEvents = true);
///
diff --git a/src/Umbraco.Core/Services/IEntityService.cs b/src/Umbraco.Core/Services/IEntityService.cs
index 3f398cc1e9..9d0399f324 100644
--- a/src/Umbraco.Core/Services/IEntityService.cs
+++ b/src/Umbraco.Core/Services/IEntityService.cs
@@ -242,8 +242,9 @@ namespace Umbraco.Core.Services
IEnumerable GetPagedDescendants(IEnumerable ids, UmbracoObjectTypes objectType, long pageIndex, int pageSize, out long totalRecords,
IQuery filter = null, Ordering ordering = null);
+ // TODO: Do we really need this? why not just pass in -1
///
- /// Gets descendants of root. todo: Do we really need this? why not just pass in -1
+ /// Gets descendants of root.
///
IEnumerable GetPagedDescendants(UmbracoObjectTypes objectType, long pageIndex, int pageSize, out long totalRecords,
IQuery filter = null, Ordering ordering = null, bool includeTrashed = true);
diff --git a/src/Umbraco.Core/Services/IEntityXmlSerializer.cs b/src/Umbraco.Core/Services/IEntityXmlSerializer.cs
index 1c58fc56b8..6feb31115c 100644
--- a/src/Umbraco.Core/Services/IEntityXmlSerializer.cs
+++ b/src/Umbraco.Core/Services/IEntityXmlSerializer.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Core.Services
///
XElement Serialize(IContent content,
bool published,
- bool withDescendants = false) //todo take care of usage! only used for the packager
+ bool withDescendants = false) // TODO: take care of usage! only used for the packager
;
///
diff --git a/src/Umbraco.Core/Services/Implement/ContentService.cs b/src/Umbraco.Core/Services/Implement/ContentService.cs
index e1304a324f..cbc2eeca7a 100644
--- a/src/Umbraco.Core/Services/Implement/ContentService.cs
+++ b/src/Umbraco.Core/Services/Implement/ContentService.cs
@@ -164,7 +164,7 @@ namespace Umbraco.Core.Services.Implement
///
public IContent Create(string name, Guid parentId, string contentTypeAlias, int userId = 0)
{
- // todo - what about culture?
+ // TODO: what about culture?
var parent = GetById(parentId);
return Create(name, parent, contentTypeAlias, userId);
@@ -184,7 +184,7 @@ namespace Umbraco.Core.Services.Implement
/// The content object.
public IContent Create(string name, int parentId, string contentTypeAlias, int userId = 0)
{
- // todo - what about culture?
+ // TODO: what about culture?
var contentType = GetContentType(contentTypeAlias);
if (contentType == null)
@@ -217,7 +217,7 @@ namespace Umbraco.Core.Services.Implement
/// The content object.
public IContent Create(string name, IContent parent, string contentTypeAlias, int userId = 0)
{
- // todo - what about culture?
+ // TODO: what about culture?
if (parent == null) throw new ArgumentNullException(nameof(parent));
@@ -248,7 +248,7 @@ namespace Umbraco.Core.Services.Implement
/// The content object.
public IContent CreateAndSave(string name, int parentId, string contentTypeAlias, int userId = 0)
{
- // todo - what about culture?
+ // TODO: what about culture?
using (var scope = ScopeProvider.CreateScope())
{
@@ -282,7 +282,7 @@ namespace Umbraco.Core.Services.Implement
/// The content object.
public IContent CreateAndSave(string name, IContent parent, string contentTypeAlias, int userId = 0)
{
- // todo - what about culture?
+ // TODO: what about culture?
if (parent == null) throw new ArgumentNullException(nameof(parent));
diff --git a/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs b/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
index a9e75e6f29..0cac249cdf 100644
--- a/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
+++ b/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
@@ -353,7 +353,7 @@ namespace Umbraco.Core.Services.Implement
public IEnumerable GetComposedOf(int id)
{
// GetAll is cheap, repository has a full dataset cache policy
- // todo - still, because it uses the cache, race conditions!
+ // TODO: still, because it uses the cache, race conditions!
var allContentTypes = GetAll(Array.Empty());
return GetComposedOf(id, allContentTypes);
}
diff --git a/src/Umbraco.Core/Services/Implement/DataTypeService.cs b/src/Umbraco.Core/Services/Implement/DataTypeService.cs
index b97c3a3ee7..4c588157d0 100644
--- a/src/Umbraco.Core/Services/Implement/DataTypeService.cs
+++ b/src/Umbraco.Core/Services/Implement/DataTypeService.cs
@@ -204,7 +204,7 @@ namespace Umbraco.Core.Services.Implement
_dataTypeContainerRepository.Save(container);
scope.Complete();
- // todo - triggering SavedContainer with a different name?!
+ // TODO: triggering SavedContainer with a different name?!
scope.Events.Dispatch(SavedContainer, this, new SaveEventArgs(container, evtMsgs), "RenamedContainer");
return OperationResult.Attempt.Succeed(OperationResultType.Success, evtMsgs, container);
@@ -318,7 +318,7 @@ namespace Umbraco.Core.Services.Implement
}
catch (DataOperationException ex)
{
- scope.Complete(); // todo what are we doing here exactly?
+ scope.Complete(); // TODO: what are we doing here exactly?
return OperationResult.Attempt.Fail(ex.Operation, evtMsgs);
}
}
@@ -426,8 +426,8 @@ namespace Umbraco.Core.Services.Implement
// find ContentTypes using this IDataTypeDefinition on a PropertyType, and delete
- // todo - media and members?!
- // todo - non-group properties?!
+ // TODO: media and members?!
+ // TODO: non-group properties?!
var query = Query().Where(x => x.DataTypeId == dataType.Id);
var contentTypes = _contentTypeRepository.GetByQuery(query);
foreach (var contentType in contentTypes)
diff --git a/src/Umbraco.Core/Services/Implement/EntityService.cs b/src/Umbraco.Core/Services/Implement/EntityService.cs
index ee6bdeb46d..00edde48f3 100644
--- a/src/Umbraco.Core/Services/Implement/EntityService.cs
+++ b/src/Umbraco.Core/Services/Implement/EntityService.cs
@@ -388,7 +388,7 @@ namespace Umbraco.Core.Services.Implement
{
var query = Query().Where(x => x.ParentId == parentId);
- //todo - see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
+ // TODO: see https://github.com/umbraco/Umbraco-CMS/pull/3460#issuecomment-434903930 we need to not load any property data at all for media
return ((EntityRepository)_entityRepository).GetMediaByQueryWithoutPropertyData(query);
}
}
diff --git a/src/Umbraco.Core/Services/Implement/EntityXmlSerializer.cs b/src/Umbraco.Core/Services/Implement/EntityXmlSerializer.cs
index 6b52dd4ac1..6a8514f0a0 100644
--- a/src/Umbraco.Core/Services/Implement/EntityXmlSerializer.cs
+++ b/src/Umbraco.Core/Services/Implement/EntityXmlSerializer.cs
@@ -47,7 +47,7 @@ namespace Umbraco.Core.Services.Implement
///
public XElement Serialize(IContent content,
bool published,
- bool withDescendants = false) //todo take care of usage! only used for the packager
+ bool withDescendants = false) // TODO: take care of usage! only used for the packager
{
if (content == null) throw new ArgumentNullException(nameof(content));
diff --git a/src/Umbraco.Core/Services/Implement/FileService.cs b/src/Umbraco.Core/Services/Implement/FileService.cs
index 888407c0d0..36b4af6d5e 100644
--- a/src/Umbraco.Core/Services/Implement/FileService.cs
+++ b/src/Umbraco.Core/Services/Implement/FileService.cs
@@ -349,7 +349,7 @@ namespace Umbraco.Core.Services.Implement
var evtMsgs = EventMessagesFactory.Get();
- //todo: This isn't pretty because we we're required to maintain backwards compatibility so we could not change
+ // TODO: This isn't pretty because we we're required to maintain backwards compatibility so we could not change
// the event args here. The other option is to create a different event with different event
// args specifically for this method... which also isn't pretty. So fix this in v8!
var additionalData = new Dictionary
diff --git a/src/Umbraco.Core/Services/Implement/MediaService.cs b/src/Umbraco.Core/Services/Implement/MediaService.cs
index 357352c182..9ca7892f62 100644
--- a/src/Umbraco.Core/Services/Implement/MediaService.cs
+++ b/src/Umbraco.Core/Services/Implement/MediaService.cs
@@ -882,7 +882,7 @@ namespace Umbraco.Core.Services.Implement
{
scope.WriteLock(Constants.Locks.MediaTree);
- // todo - missing 7.6 "ensure valid path" thing here?
+ // TODO: missing 7.6 "ensure valid path" thing here?
// but then should be in PerformMoveLocked on every moved item?
var originalPath = media.Path;
@@ -1031,7 +1031,7 @@ namespace Umbraco.Core.Services.Implement
{
var nodeObjectType = Constants.ObjectTypes.Media;
var deleted = new List();
- var evtMsgs = EventMessagesFactory.Get(); // todo - and then?
+ var evtMsgs = EventMessagesFactory.Get(); // TODO: and then?
using (var scope = ScopeProvider.CreateScope())
{
diff --git a/src/Umbraco.Core/Services/Implement/MemberService.cs b/src/Umbraco.Core/Services/Implement/MemberService.cs
index 5726c43fc7..b7afaea1be 100644
--- a/src/Umbraco.Core/Services/Implement/MemberService.cs
+++ b/src/Umbraco.Core/Services/Implement/MemberService.cs
@@ -1304,7 +1304,7 @@ namespace Umbraco.Core.Services.Implement
Id = property.Id,
Alias = property.Alias,
Name = property.PropertyType.Name,
- Value = property.GetValue(), // todo ignoring variants
+ Value = property.GetValue(), // TODO: ignoring variants
CreateDate = property.CreateDate,
UpdateDate = property.UpdateDate
};
diff --git a/src/Umbraco.Core/Services/Implement/NotificationService.cs b/src/Umbraco.Core/Services/Implement/NotificationService.cs
index a4aedec438..95353715e1 100644
--- a/src/Umbraco.Core/Services/Implement/NotificationService.cs
+++ b/src/Umbraco.Core/Services/Implement/NotificationService.cs
@@ -307,7 +307,7 @@ namespace Umbraco.Core.Services.Implement
summary.Append("");
foreach (var p in content.Properties)
{
- //todo doesn't take into account variants
+ // TODO: doesn't take into account variants
var newText = p.GetValue() != null ? p.GetValue().ToString() : "";
var oldText = newText;
diff --git a/src/Umbraco.Core/Services/Implement/RelationService.cs b/src/Umbraco.Core/Services/Implement/RelationService.cs
index dc9693766f..a316d04f8e 100644
--- a/src/Umbraco.Core/Services/Implement/RelationService.cs
+++ b/src/Umbraco.Core/Services/Implement/RelationService.cs
@@ -393,7 +393,7 @@ namespace Umbraco.Core.Services.Implement
if (scope.Events.DispatchCancelable(SavingRelation, this, saveEventArgs))
{
scope.Complete();
- return relation; // todo - returning sth that does not exist here?!
+ return relation; // TODO: returning sth that does not exist here?!
}
_relationRepository.Save(relation);
diff --git a/src/Umbraco.Core/Services/Implement/ScopeRepositoryService.cs b/src/Umbraco.Core/Services/Implement/ScopeRepositoryService.cs
index 784d18da4e..d7303991b5 100644
--- a/src/Umbraco.Core/Services/Implement/ScopeRepositoryService.cs
+++ b/src/Umbraco.Core/Services/Implement/ScopeRepositoryService.cs
@@ -4,7 +4,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Services.Implement
{
- // todo that one does not add anything = kill
+ // TODO: that one does not add anything = kill
public abstract class ScopeRepositoryService : RepositoryService
{
protected ScopeRepositoryService(IScopeProvider provider, ILogger logger, IEventMessagesFactory eventMessagesFactory)
diff --git a/src/Umbraco.Core/Services/Implement/UserService.cs b/src/Umbraco.Core/Services/Implement/UserService.cs
index 1a88464231..e2c64d2f29 100644
--- a/src/Umbraco.Core/Services/Implement/UserService.cs
+++ b/src/Umbraco.Core/Services/Implement/UserService.cs
@@ -200,7 +200,7 @@ namespace Umbraco.Core.Services.Implement
}
catch (DbException)
{
- // todo - refactor users/upgrade
+ // TODO: refactor users/upgrade
// currently kinda accepting anything on upgrade, but that won't deal with all cases
// so we need to do it differently, see the custom UmbracoPocoDataBuilder which should
// be better BUT requires that the app restarts after the upgrade!
@@ -705,7 +705,7 @@ namespace Umbraco.Core.Services.Implement
}
catch (DbException)
{
- // todo - refactor users/upgrade
+ // TODO: refactor users/upgrade
// currently kinda accepting anything on upgrade, but that won't deal with all cases
// so we need to do it differently, see the custom UmbracoPocoDataBuilder which should
// be better BUT requires that the app restarts after the upgrade!
diff --git a/src/Umbraco.Core/Services/OperationResult.cs b/src/Umbraco.Core/Services/OperationResult.cs
index f6349a985d..d5cdcd79fc 100644
--- a/src/Umbraco.Core/Services/OperationResult.cs
+++ b/src/Umbraco.Core/Services/OperationResult.cs
@@ -3,8 +3,7 @@ using Umbraco.Core.Events;
namespace Umbraco.Core.Services
{
- // todo
- // no need for Attempt - the operation result SHOULD KNOW if it's a success or a failure!
+ // TODO: no need for Attempt - the operation result SHOULD KNOW if it's a success or a failure!
// but then each WhateverResultType must
///
@@ -119,7 +118,7 @@ namespace Umbraco.Core.Services
return new OperationResult(OperationResultType.FailedCancelledByEvent, eventMessages);
}
- // todo - this exists to support services that still return Attempt
+ // TODO: this exists to support services that still return Attempt
// these services should directly return an OperationResult, and then this static class should be deleted
internal static class Attempt
{
diff --git a/src/Umbraco.Core/Services/OperationResultType.cs b/src/Umbraco.Core/Services/OperationResultType.cs
index 8ad24aafb8..2998692c13 100644
--- a/src/Umbraco.Core/Services/OperationResultType.cs
+++ b/src/Umbraco.Core/Services/OperationResultType.cs
@@ -38,7 +38,7 @@
///
/// No operation has been executed because it was not needed (eg deleting an item that doesn't exist).
///
- NoOperation = Failed | 6, // todo shouldn't it be a success?
+ NoOperation = Failed | 6, // TODO: shouldn't it be a success?
//TODO: In the future, we might need to add more operations statuses, potentially like 'FailedByPermissions', etc...
}
diff --git a/src/Umbraco.Core/Services/PublishResultType.cs b/src/Umbraco.Core/Services/PublishResultType.cs
index 418e5c0896..1a2b52f9c9 100644
--- a/src/Umbraco.Core/Services/PublishResultType.cs
+++ b/src/Umbraco.Core/Services/PublishResultType.cs
@@ -115,7 +115,7 @@
///
/// The document could not be published because it has no publishing flags or values.
///
- FailedPublishNothingToPublish = FailedPublish | 9, // in ContentService.StrategyCanPublish - todo weird
+ FailedPublishNothingToPublish = FailedPublish | 9, // TODO: in ContentService.StrategyCanPublish - weird
///
/// The document could not be published because some mandatory cultures are missing.
diff --git a/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs b/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs
index f5b4a1cff3..91dd5a7597 100644
--- a/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs
+++ b/src/Umbraco.Core/Strings/Utf8ToAsciiConverter.cs
@@ -3337,8 +3337,7 @@ namespace Umbraco.Core.Strings
// time for a T4 template?
// also we should support extensibility so ppl can register more cases in external code
- // todo
- // transliterates Анастасия as Anastasiya, and not Anastasia
+ // TODO: transliterates Анастасия as Anastasiya, and not Anastasia
// Ольга --> Ol'ga, Татьяна --> Tat'yana -- that's bad (?)
// Note: should ä (German umlaut) become a or ae ?
diff --git a/src/Umbraco.Core/Sync/ApplicationUrlHelper.cs b/src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
index d2b7903343..a10c967866 100644
--- a/src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
+++ b/src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
@@ -26,7 +26,7 @@ namespace Umbraco.Core.Sync
/// in config files but is determined programmatically.
/// Must be assigned before resolution is frozen.
///
- // todo need another way to do it, eg an interface, injected!
+ // TODO: need another way to do it, eg an interface, injected!
public static Func ApplicationUrlProvider { get; set; }
internal static string GetApplicationUrl(ILogger logger, IGlobalSettings globalSettings, IUmbracoSettingsSection settings, IServerRegistrar serverRegistrar, HttpRequestBase request = null)
diff --git a/src/Umbraco.Core/Sync/DatabaseServerMessenger.cs b/src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
index a34644e6a1..741cc2bab1 100644
--- a/src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
+++ b/src/Umbraco.Core/Sync/DatabaseServerMessenger.cs
@@ -302,7 +302,7 @@ namespace Umbraco.Core.Sync
// (depending on what the cache refreshers are doing). I think it's best we do the one time check, process them and continue, if there are
// pending requests after being processed, they'll just be processed on the next poll.
//
- // todo not true if we're running on a background thread, assuming we can?
+ // TODO: not true if we're running on a background thread, assuming we can?
var sql = Sql().SelectAll()
.From()