diff --git a/build/NuSpecs/UmbracoCms.nuspec b/build/NuSpecs/UmbracoCms.nuspec
index a188377c19..f642b2f4e8 100644
--- a/build/NuSpecs/UmbracoCms.nuspec
+++ b/build/NuSpecs/UmbracoCms.nuspec
@@ -55,7 +55,7 @@
-
+
diff --git a/build/build.ps1 b/build/build.ps1
index 65b4041e30..d811c2cc21 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -120,7 +120,7 @@
} finally {
Pop-Location
- # fixme - should we filter the log to find errors?
+ # FIXME: should we filter the log to find errors?
#get-content .\build.tmp\belle.log | %{ if ($_ -match "build") { write $_}}
# restore
@@ -177,7 +177,7 @@
{
Write-Host "Prepare Tests"
- # fixme - idea is to avoid rebuilding everything for tests
+ # FIXME: - idea is to avoid rebuilding everything for tests
# but because of our weird assembly versioning (with .* stuff)
# everything gets rebuilt all the time...
#Copy-Files "$tmp\bin" "." "$tmp\tests"
diff --git a/src/Umbraco.Core/Cache/CacheKeys.cs b/src/Umbraco.Core/Cache/CacheKeys.cs
index 50bd4ca0ac..e8f93d636a 100644
--- a/src/Umbraco.Core/Cache/CacheKeys.cs
+++ b/src/Umbraco.Core/Cache/CacheKeys.cs
@@ -7,7 +7,7 @@
{
public const string ApplicationsCacheKey = "ApplicationCache"; // used by SectionService
- // TODO this one can probably be removed
+ // TODO: this one can probably be removed
public const string TemplateFrontEndCacheKey = "template";
public const string MacroContentCacheKey = "macroContent_"; // used in MacroRenderers
diff --git a/src/Umbraco.Core/Cache/HttpRequestAppCache.cs b/src/Umbraco.Core/Cache/HttpRequestAppCache.cs
index 0fdf70ac27..f1932f97ce 100644
--- a/src/Umbraco.Core/Cache/HttpRequestAppCache.cs
+++ b/src/Umbraco.Core/Cache/HttpRequestAppCache.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Core.Cache
///
///
/// Will use HttpContext.Current.
- /// TODO - https://github.com/umbraco/Umbraco-CMS/issues/4239 - use IHttpContextAccessor NOT HttpContext.Current
+ /// TODO: https://github.com/umbraco/Umbraco-CMS/issues/4239 - use IHttpContextAccessor NOT HttpContext.Current
///
public HttpRequestAppCache()
{ }
diff --git a/src/Umbraco.Core/Components/RelateOnCopyComponent.cs b/src/Umbraco.Core/Components/RelateOnCopyComponent.cs
index 404d385680..d38406f970 100644
--- a/src/Umbraco.Core/Components/RelateOnCopyComponent.cs
+++ b/src/Umbraco.Core/Components/RelateOnCopyComponent.cs
@@ -5,7 +5,7 @@ using Umbraco.Core.Services.Implement;
namespace Umbraco.Core.Components
{
- //TODO: This should just exist in the content service/repo!
+ // TODO: This should just exist in the content service/repo!
public sealed class RelateOnCopyComponent : IComponent
{
public void Initialize()
diff --git a/src/Umbraco.Core/Composing/TypeFinder.cs b/src/Umbraco.Core/Composing/TypeFinder.cs
index 4086eb394b..308d0ecfd7 100644
--- a/src/Umbraco.Core/Composing/TypeFinder.cs
+++ b/src/Umbraco.Core/Composing/TypeFinder.cs
@@ -614,7 +614,7 @@ namespace Umbraco.Core.Composing
var type = BuildManager.GetType(typeName, false);
if (type != null) return type;
- //TODO: This isn't very elegant, and will have issues since the AppDomain.CurrentDomain
+ // TODO: This isn't very elegant, and will have issues since the AppDomain.CurrentDomain
// doesn't actualy load in all assemblies, only the types that have been referenced so far.
// However, in a web context, the BuildManager will have executed which will force all assemblies
// to be loaded so it's fine for now.
diff --git a/src/Umbraco.Core/Composing/TypeHelper.cs b/src/Umbraco.Core/Composing/TypeHelper.cs
index c2746bef96..2f29ee09bc 100644
--- a/src/Umbraco.Core/Composing/TypeHelper.cs
+++ b/src/Umbraco.Core/Composing/TypeHelper.cs
@@ -278,7 +278,7 @@ namespace Umbraco.Core.Composing
#region Match Type
- //TODO: Need to determine if these methods should replace/combine/merge etc with IsTypeAssignableFrom, IsAssignableFromGeneric
+ // TODO: Need to determine if these methods should replace/combine/merge etc with IsTypeAssignableFrom, IsAssignableFromGeneric
// readings:
// http://stackoverflow.com/questions/2033912/c-sharp-variance-problem-assigning-listderived-as-listbase
diff --git a/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs b/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs
index 2862a98a0e..0e7ef62c58 100644
--- a/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs
+++ b/src/Umbraco.Core/Configuration/Grid/GridEditorsConfig.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Core.Configuration.Grid
{
List GetResult()
{
- // TODO should use the common one somehow! + ignoring _appPlugins here!
+ // TODO: should use the common one somehow! + ignoring _appPlugins here!
var parser = new ManifestParser(_appCaches, Current.ManifestValidators, _logger);
var editors = new List();
diff --git a/src/Umbraco.Core/Configuration/UmbracoSettings/TourConfigElement.cs b/src/Umbraco.Core/Configuration/UmbracoSettings/TourConfigElement.cs
index ebb649ca3b..fb231ec0cf 100644
--- a/src/Umbraco.Core/Configuration/UmbracoSettings/TourConfigElement.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoSettings/TourConfigElement.cs
@@ -5,13 +5,13 @@ namespace Umbraco.Core.Configuration.UmbracoSettings
internal class TourConfigElement : UmbracoConfigurationElement, ITourSection
{
//disabled by default so that upgraders don't get it enabled by default
- //TODO: we probably just want to disable the initial one from automatically loading ?
+ // TODO: we probably just want to disable the initial one from automatically loading ?
[ConfigurationProperty("enable", DefaultValue = false)]
public bool EnableTours
{
get { return (bool)this["enable"]; }
}
- //TODO: We could have additional filters, etc... defined here
+ // TODO: We could have additional filters, etc... defined here
}
}
\ No newline at end of file
diff --git a/src/Umbraco.Core/Configuration/UmbracoVersion.cs b/src/Umbraco.Core/Configuration/UmbracoVersion.cs
index bc5b6993e3..7ab97500f0 100644
--- a/src/Umbraco.Core/Configuration/UmbracoVersion.cs
+++ b/src/Umbraco.Core/Configuration/UmbracoVersion.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Core.Configuration
///
/// Gets the non-semantic version of the Umbraco code.
///
- // TODO rename to Version
+ // TODO: rename to Version
public static Version Current { get; }
///
@@ -81,7 +81,7 @@ namespace Umbraco.Core.Configuration
{
try
{
- // TODO - https://github.com/umbraco/Umbraco-CMS/issues/4238 - stop having version in web.config appSettings
+ // TODO: https://github.com/umbraco/Umbraco-CMS/issues/4238 - stop having version in web.config appSettings
var value = ConfigurationManager.AppSettings["umbracoConfigurationStatus"];
return value.IsNullOrWhiteSpace() ? null : SemVersion.TryParse(value, out var semver) ? semver : null;
}
diff --git a/src/Umbraco.Core/Constants-Applications.cs b/src/Umbraco.Core/Constants-Applications.cs
index 415357aab3..2d4042fad0 100644
--- a/src/Umbraco.Core/Constants-Applications.cs
+++ b/src/Umbraco.Core/Constants-Applications.cs
@@ -156,7 +156,7 @@
public const string ThirdParty = "thirdPartyGroup";
}
- //TODO: Fill in the rest!
+ // TODO: Fill in the rest!
}
}
}
diff --git a/src/Umbraco.Core/EmailSender.cs b/src/Umbraco.Core/EmailSender.cs
index 1f2c6d8653..0fda5c40a4 100644
--- a/src/Umbraco.Core/EmailSender.cs
+++ b/src/Umbraco.Core/EmailSender.cs
@@ -17,7 +17,7 @@ namespace Umbraco.Core
///
public class EmailSender : IEmailSender
{
- //TODO: This should encapsulate a BackgroundTaskRunner with a queue to send these emails!
+ // TODO: This should encapsulate a BackgroundTaskRunner with a queue to send these emails!
private readonly bool _enableEvents;
diff --git a/src/Umbraco.Core/Events/ImportPackageEventArgs.cs b/src/Umbraco.Core/Events/ImportPackageEventArgs.cs
index 61369af59d..a044cd71b3 100644
--- a/src/Umbraco.Core/Events/ImportPackageEventArgs.cs
+++ b/src/Umbraco.Core/Events/ImportPackageEventArgs.cs
@@ -27,7 +27,7 @@ namespace Umbraco.Core.Events
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
- //TODO: MetaData for package metadata has no equality operators :/
+ // TODO: MetaData for package metadata has no equality operators :/
return base.Equals(other) && PackageMetaData.Equals(other.PackageMetaData);
}
diff --git a/src/Umbraco.Core/IO/FileSystemExtensions.cs b/src/Umbraco.Core/IO/FileSystemExtensions.cs
index ade2c58b38..e0f5af75c5 100644
--- a/src/Umbraco.Core/IO/FileSystemExtensions.cs
+++ b/src/Umbraco.Core/IO/FileSystemExtensions.cs
@@ -54,7 +54,7 @@ namespace Umbraco.Core.IO
return Path.GetFileName(fs.GetFullPath(path));
}
- //TODO: Currently this is the only way to do this
+ // TODO: Currently this is the only way to do this
internal static void CreateFolder(this IFileSystem fs, string folderPath)
{
var path = fs.GetRelativePath(folderPath);
diff --git a/src/Umbraco.Core/IO/IOHelper.cs b/src/Umbraco.Core/IO/IOHelper.cs
index 76e7631482..a92b556240 100644
--- a/src/Umbraco.Core/IO/IOHelper.cs
+++ b/src/Umbraco.Core/IO/IOHelper.cs
@@ -155,8 +155,7 @@ namespace Umbraco.Core.IO
//
// except that for templates, filePath actually is a virtual path
- //TODO
- // what's below is dirty, there are too many ways to get the root dir, etc.
+ // TODO: what's below is dirty, there are too many ways to get the root dir, etc.
// not going to fix everything today
var mappedRoot = MapPath(SystemDirectories.Root);
diff --git a/src/Umbraco.Core/IO/PhysicalFileSystem.cs b/src/Umbraco.Core/IO/PhysicalFileSystem.cs
index acf5e796e4..66ef095b04 100644
--- a/src/Umbraco.Core/IO/PhysicalFileSystem.cs
+++ b/src/Umbraco.Core/IO/PhysicalFileSystem.cs
@@ -284,7 +284,7 @@ namespace Umbraco.Core.IO
var opath = path;
path = EnsureDirectorySeparatorChar(path);
- // fixme - this part should go!
+ // FIXME: this part should go!
// not sure what we are doing here - so if input starts with a (back) slash,
// we assume it's not a FS relative path and we try to convert it... but it
// really makes little sense?
diff --git a/src/Umbraco.Core/Media/Result.cs b/src/Umbraco.Core/Media/Result.cs
index 82894a5ef5..a8683d03d5 100644
--- a/src/Umbraco.Core/Media/Result.cs
+++ b/src/Umbraco.Core/Media/Result.cs
@@ -1,7 +1,7 @@
namespace Umbraco.Core.Media
{
- //TODO: Could definitely have done with a better name
+ // TODO: Could definitely have done with a better name
public class Result
{
public Status Status { get; set; }
diff --git a/src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs b/src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
index f32ea1cb6f..82ca5960ec 100644
--- a/src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
+++ b/src/Umbraco.Core/Migrations/Install/DatabaseDataCreator.cs
@@ -263,7 +263,7 @@ namespace Umbraco.Core.Migrations.Install
const string listLayout = "{\"name\": \"List\",\"path\": \"views/propertyeditors/listview/layouts/list/list.html\",\"icon\": \"icon-list\", \"isSystem\": 1,\"selected\": true}";
const string layouts = "[" + cardLayout + "," + listLayout + "]";
- //TODO Check which of the DataTypeIds below doesn't exist in umbracoNode, which results in a foreign key constraint errors.
+ // TODO: Check which of the DataTypeIds below doesn't exist in umbracoNode, which results in a foreign key constraint errors.
_database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -49, EditorAlias = Constants.PropertyEditors.Aliases.Boolean, DbType = "Integer" });
_database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -51, EditorAlias = Constants.PropertyEditors.Aliases.Integer, DbType = "Integer" });
_database.Insert(Constants.DatabaseSchema.Tables.DataType, "pk", false, new DataTypeDto { NodeId = -87, EditorAlias = Constants.PropertyEditors.Aliases.TinyMce, DbType = "Ntext",
diff --git a/src/Umbraco.Core/Models/ContentScheduleCollection.cs b/src/Umbraco.Core/Models/ContentScheduleCollection.cs
index 4c06f8927d..6c7dd79312 100644
--- a/src/Umbraco.Core/Models/ContentScheduleCollection.cs
+++ b/src/Umbraco.Core/Models/ContentScheduleCollection.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Core.Models
_schedule[schedule.Culture] = changes;
}
- //TODO: Below will throw if there are duplicate dates added, validate/return bool?
+ // TODO: Below will throw if there are duplicate dates added, validate/return bool?
changes.Add(schedule.Date, schedule);
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, schedule));
@@ -62,7 +62,7 @@ namespace Umbraco.Core.Models
if (!releaseDate.HasValue && !expireDate.HasValue) return false;
- //TODO: Do we allow passing in a release or expiry date that is before now?
+ // TODO: Do we allow passing in a release or expiry date that is before now?
if (!_schedule.TryGetValue(culture, out var changes))
{
@@ -70,7 +70,7 @@ namespace Umbraco.Core.Models
_schedule[culture] = changes;
}
- //TODO: Below will throw if there are duplicate dates added, should validate/return bool?
+ // TODO: Below will throw if there are duplicate dates added, should validate/return bool?
// but the bool won't indicate which date was in error, maybe have 2 diff methods to schedule start/end?
if (releaseDate.HasValue)
diff --git a/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs b/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs
index adbc3de54f..51c642c20d 100644
--- a/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs
+++ b/src/Umbraco.Core/Models/ContentTypeBaseExtensions.cs
@@ -48,7 +48,7 @@ namespace Umbraco.Core.Models
throw new Exception("oops");
// skip new properties
- //TODO: This used to be WasPropertyDirty("HasIdentity") but i don't think that actually worked for detecting new entities this does seem to work properly
+ // TODO: This used to be WasPropertyDirty("HasIdentity") but i don't think that actually worked for detecting new entities this does seem to work properly
var isNewProperty = dirtyProperty.WasPropertyDirty("Id");
if (isNewProperty) return false;
diff --git a/src/Umbraco.Core/Models/GridValue.cs b/src/Umbraco.Core/Models/GridValue.cs
index 4f19576f17..157304463f 100644
--- a/src/Umbraco.Core/Models/GridValue.cs
+++ b/src/Umbraco.Core/Models/GridValue.cs
@@ -5,7 +5,7 @@ using Newtonsoft.Json.Linq;
namespace Umbraco.Core.Models
{
- //TODO: Make a property value converter for this!
+ // TODO: Make a property value converter for this!
///
/// A model representing the value saved for the grid
diff --git a/src/Umbraco.Core/Models/Member.cs b/src/Umbraco.Core/Models/Member.cs
index c47f68c930..0ef15ee413 100644
--- a/src/Umbraco.Core/Models/Member.cs
+++ b/src/Umbraco.Core/Models/Member.cs
@@ -189,7 +189,7 @@ namespace Umbraco.Core.Models
[DataMember]
public IEnumerable Groups { get; set; }
- //TODO: When get/setting all of these properties we MUST:
+ // TODO: When get/setting all of these properties we MUST:
// * Check if we are using the umbraco membership provider, if so then we need to use the configured fields - not the explicit fields below
// * If any of the fields don't exist, what should we do? Currently it will throw an exception!
@@ -338,7 +338,7 @@ namespace Umbraco.Core.Models
return tryConvert.Result;
}
return false;
- //TODO: Use TryConvertTo instead
+ // TODO: Use TryConvertTo instead
}
set
{
@@ -371,7 +371,7 @@ namespace Umbraco.Core.Models
return tryConvert.Result;
}
return default(DateTime);
- //TODO: Use TryConvertTo instead
+ // TODO: Use TryConvertTo instead
}
set
{
@@ -404,7 +404,7 @@ namespace Umbraco.Core.Models
return tryConvert.Result;
}
return default(DateTime);
- //TODO: Use TryConvertTo instead
+ // TODO: Use TryConvertTo instead
}
set
{
@@ -437,7 +437,7 @@ namespace Umbraco.Core.Models
return tryConvert.Result;
}
return default(DateTime);
- //TODO: Use TryConvertTo instead
+ // TODO: Use TryConvertTo instead
}
set
{
@@ -471,7 +471,7 @@ namespace Umbraco.Core.Models
return tryConvert.Result;
}
return default(int);
- //TODO: Use TryConvertTo instead
+ // TODO: Use TryConvertTo instead
}
set
{
diff --git a/src/Umbraco.Core/Models/MemberType.cs b/src/Umbraco.Core/Models/MemberType.cs
index bcc7e14fd7..1ce883d9a7 100644
--- a/src/Umbraco.Core/Models/MemberType.cs
+++ b/src/Umbraco.Core/Models/MemberType.cs
@@ -66,7 +66,7 @@ namespace Umbraco.Core.Models
// leading underscores which we don't want in this case.
// see : http://issues.umbraco.org/issue/U4-3968
- //TODO: BUT, I'm pretty sure we could do this with regards to underscores now:
+ // TODO: BUT, I'm pretty sure we could do this with regards to underscores now:
// .ToCleanString(CleanStringType.Alias | CleanStringType.UmbracoCase)
// Need to ask Stephen
diff --git a/src/Umbraco.Core/Models/Membership/UmbracoMembershipMember.cs b/src/Umbraco.Core/Models/Membership/UmbracoMembershipMember.cs
index ed3422d4f9..debce3afe5 100644
--- a/src/Umbraco.Core/Models/Membership/UmbracoMembershipMember.cs
+++ b/src/Umbraco.Core/Models/Membership/UmbracoMembershipMember.cs
@@ -44,7 +44,7 @@ namespace Umbraco.Core.Models.Membership
_isLockedOut = member.IsLockedOut;
_creationDate = member.CreateDate.ToUniversalTime();
_lastLoginDate = member.LastLoginDate.ToUniversalTime();
- //TODO: We currently don't really have any place to store this data!!
+ // TODO: We currently don't really have any place to store this data!!
_lastActivityDate = member.LastLoginDate.ToUniversalTime();
_lastPasswordChangedDate = member.LastPasswordChangeDate.ToUniversalTime();
_lastLockoutDate = member.LastLockoutDate.ToUniversalTime();
diff --git a/src/Umbraco.Core/Models/Membership/User.cs b/src/Umbraco.Core/Models/Membership/User.cs
index 5e79967a94..7832390b92 100644
--- a/src/Umbraco.Core/Models/Membership/User.cs
+++ b/src/Umbraco.Core/Models/Membership/User.cs
@@ -242,7 +242,7 @@ namespace Umbraco.Core.Models.Membership
set { SetPropertyValueAndDetectChanges(value, ref _failedLoginAttempts, Ps.Value.FailedPasswordAttemptsSelector); }
}
- //TODO: Figure out how to support all of this! - we cannot have NotImplementedExceptions because these get used by the IMembershipMemberService service so
+ // TODO: Figure out how to support all of this! - we cannot have NotImplementedExceptions because these get used by the IMembershipMemberService service so
// we'll just have them as generic get/set which don't interact with the db.
[IgnoreDataMember]
diff --git a/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs b/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs
index f0acb2a46b..69c7a5641d 100644
--- a/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs
+++ b/src/Umbraco.Core/Models/Packaging/PreInstallWarnings.cs
@@ -10,7 +10,7 @@ namespace Umbraco.Core.Models.Packaging
public IEnumerable UnsecureFiles { get; set; } = Enumerable.Empty();
public IEnumerable FilesReplaced { get; set; } = Enumerable.Empty();
- //TODO: Shouldn't we detect other conflicting entities too ?
+ // TODO: Shouldn't we detect other conflicting entities too ?
public IEnumerable ConflictingMacros { get; set; } = Enumerable.Empty();
public IEnumerable ConflictingTemplates { get; set; } = Enumerable.Empty();
public IEnumerable ConflictingStylesheets { get; set; } = Enumerable.Empty();
diff --git a/src/Umbraco.Core/Models/Property.cs b/src/Umbraco.Core/Models/Property.cs
index f5c475908d..11b5239a70 100644
--- a/src/Umbraco.Core/Models/Property.cs
+++ b/src/Umbraco.Core/Models/Property.cs
@@ -55,7 +55,7 @@ namespace Umbraco.Core.Models
///
public class PropertyValue
{
- //TODO: Either we allow change tracking at this class level, or we add some special change tracking collections to the Property
+ // TODO: Either we allow change tracking at this class level, or we add some special change tracking collections to the Property
// class to deal with change tracking which variants have changed
private string _culture;
@@ -103,7 +103,7 @@ namespace Umbraco.Core.Models
// ReSharper disable once ClassNeverInstantiated.Local
private class PropertySelectors
{
- //TODO: This allows us to track changes for an entire Property, but doesn't allow us to track changes at the variant level
+ // TODO: This allows us to track changes for an entire Property, but doesn't allow us to track changes at the variant level
public readonly PropertyInfo ValuesSelector = ExpressionHelper.GetPropertyInfo(x => x.Values);
public readonly DelegateEqualityComparer PropertyValueComparer = new DelegateEqualityComparer(
diff --git a/src/Umbraco.Core/Models/PropertyGroupCollection.cs b/src/Umbraco.Core/Models/PropertyGroupCollection.cs
index 2e9fb6520e..26e0fef178 100644
--- a/src/Umbraco.Core/Models/PropertyGroupCollection.cs
+++ b/src/Umbraco.Core/Models/PropertyGroupCollection.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Core.Models
///
[Serializable]
[DataContract]
- //TODO: Change this to ObservableDictionary so we can reduce the INotifyCollectionChanged implementation details
+ // TODO: Change this to ObservableDictionary so we can reduce the INotifyCollectionChanged implementation details
public class PropertyGroupCollection : KeyedCollection, INotifyCollectionChanged, IDeepCloneable
{
private readonly ReaderWriterLockSlim _addLocker = new ReaderWriterLockSlim();
diff --git a/src/Umbraco.Core/Models/PropertyTypeCollection.cs b/src/Umbraco.Core/Models/PropertyTypeCollection.cs
index f39918d5af..e79015d828 100644
--- a/src/Umbraco.Core/Models/PropertyTypeCollection.cs
+++ b/src/Umbraco.Core/Models/PropertyTypeCollection.cs
@@ -13,7 +13,7 @@ namespace Umbraco.Core.Models
///
[Serializable]
[DataContract]
- //TODO: Change this to ObservableDictionary so we can reduce the INotifyCollectionChanged implementation details
+ // TODO: Change this to ObservableDictionary so we can reduce the INotifyCollectionChanged implementation details
public class PropertyTypeCollection : KeyedCollection, INotifyCollectionChanged, IDeepCloneable
{
[IgnoreDataMember]
@@ -76,7 +76,7 @@ namespace Umbraco.Core.Models
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}
- //TODO: Instead of 'new' this should explicitly implement one of the collection interfaces members
+ // TODO: Instead of 'new' this should explicitly implement one of the collection interfaces members
internal new void Add(PropertyType item)
{
item.IsPublishing = IsPublishing;
diff --git a/src/Umbraco.Core/Models/UserExtensions.cs b/src/Umbraco.Core/Models/UserExtensions.cs
index e14d7ee2de..f9aa1113b3 100644
--- a/src/Umbraco.Core/Models/UserExtensions.cs
+++ b/src/Umbraco.Core/Models/UserExtensions.cs
@@ -136,7 +136,7 @@ namespace Umbraco.Core.Models
try
{
var culture = CultureInfo.GetCultureInfo(userLanguage.Replace("_", "-"));
- //TODO: This is a hack because we store the user language as 2 chars instead of the full culture
+ // TODO: This is a hack because we store the user language as 2 chars instead of the full culture
// which is actually stored in the language files (which are also named with 2 chars!) so we need to attempt
// to convert to a supported full culture
var result = textService.ConvertToSupportedCultureWithRegionCode(culture);
diff --git a/src/Umbraco.Core/ObjectExtensions.cs b/src/Umbraco.Core/ObjectExtensions.cs
index 1a66cb96fb..68bc9c923d 100644
--- a/src/Umbraco.Core/ObjectExtensions.cs
+++ b/src/Umbraco.Core/ObjectExtensions.cs
@@ -143,7 +143,7 @@ namespace Umbraco.Core
// Special case for empty strings for bools/dates which should return null if an empty string.
if (input is string inputString)
{
- //TODO: Why the check against only bool/date when a string is null/empty? In what scenario can we convert to another type when the string is null or empty other than just being null?
+ // TODO: Why the check against only bool/date when a string is null/empty? In what scenario can we convert to another type when the string is null or empty other than just being null?
if (string.IsNullOrEmpty(inputString) && (underlying == typeof(DateTime) || underlying == typeof(bool)))
{
return Attempt.Succeed(null);
@@ -391,7 +391,7 @@ namespace Umbraco.Core
}
internal static void CheckThrowObjectDisposed(this IDisposable disposable, bool isDisposed, string objectname)
{
- //TODO: Localize this exception
+ // TODO: Localize this exception
if (isDisposed)
throw new ObjectDisposedException(objectname);
}
diff --git a/src/Umbraco.Core/Packaging/PackageDataInstallation.cs b/src/Umbraco.Core/Packaging/PackageDataInstallation.cs
index 72dc0cb325..a569954629 100644
--- a/src/Umbraco.Core/Packaging/PackageDataInstallation.cs
+++ b/src/Umbraco.Core/Packaging/PackageDataInstallation.cs
@@ -100,7 +100,7 @@ namespace Umbraco.Core.Packaging
//Order the DocumentTypes before removing them
if (contentTypes.Any())
{
- //TODO: I don't think this ordering is necessary
+ // TODO: I don't think this ordering is necessary
var orderedTypes = (from contentType in contentTypes
orderby contentType.ParentId descending, contentType.Id descending
select contentType).ToList();
@@ -710,7 +710,7 @@ namespace Umbraco.Core.Packaging
// This means that the property will not be created.
if (dataTypeDefinition == null)
{
- //TODO: We should expose this to the UI during install!
+ // TODO: We should expose this to the UI during install!
_logger.Warn("Packager: Error handling creation of PropertyType '{PropertyType}'. Could not find DataTypeDefintion with unique id '{DataTypeDefinitionId}' nor one referencing the DataType with a property editor alias (or legacy control id) '{PropertyEditorAlias}'. Did the package creator forget to package up custom datatypes? This property will be converted to a label/readonly editor if one exists.",
property.Element("Name").Value, dataTypeDefinitionId, property.Element("Type").Value.Trim());
diff --git a/src/Umbraco.Core/Packaging/PackageFileInstallation.cs b/src/Umbraco.Core/Packaging/PackageFileInstallation.cs
index 7c0891175b..29afc11d83 100644
--- a/src/Umbraco.Core/Packaging/PackageFileInstallation.cs
+++ b/src/Umbraco.Core/Packaging/PackageFileInstallation.cs
@@ -65,7 +65,7 @@ namespace Umbraco.Core.Packaging
var file = IOHelper.FindFile(item);
if (file != null)
{
- //TODO: Surely this should be ~/ ?
+ // TODO: Surely this should be ~/ ?
file = file.EnsureStartsWith("/");
var filePath = IOHelper.MapPath(file);
diff --git a/src/Umbraco.Core/Packaging/PackagesRepository.cs b/src/Umbraco.Core/Packaging/PackagesRepository.cs
index dcf3b62e55..05f67b3ed6 100644
--- a/src/Umbraco.Core/Packaging/PackagesRepository.cs
+++ b/src/Umbraco.Core/Packaging/PackagesRepository.cs
@@ -362,7 +362,7 @@ namespace Umbraco.Core.Packaging
new XAttribute("importMode", "root"),
contentXml)));
- //TODO: I guess tags has been broken for a very long time for packaging, we should get this working again sometime
+ // TODO: I guess tags has been broken for a very long time for packaging, we should get this working again sometime
////Create the TagProperties node - this is used to store a definition for all
//// document properties that are tags, this ensures that we can re-import tags properly
//XmlNode tagProps = new XElement("TagProperties");
diff --git a/src/Umbraco.Core/Persistence/Dtos/LogDto.cs b/src/Umbraco.Core/Persistence/Dtos/LogDto.cs
index 9a710c1fec..bfd96426e2 100644
--- a/src/Umbraco.Core/Persistence/Dtos/LogDto.cs
+++ b/src/Umbraco.Core/Persistence/Dtos/LogDto.cs
@@ -35,12 +35,12 @@ namespace Umbraco.Core.Persistence.Dtos
[NullSetting(NullSetting = NullSettings.Null)]
public string EntityType { get; set; }
- //TODO: Should we have an index on this since we allow searching on it?
+ // TODO: Should we have an index on this since we allow searching on it?
[Column("Datestamp")]
[Constraint(Default = SystemMethods.CurrentDateTime)]
public DateTime Datestamp { get; set; }
- //TODO: Should we have an index on this since we allow searching on it?
+ // TODO: Should we have an index on this since we allow searching on it?
[Column("logHeader")]
[Length(50)]
public string Header { get; set; }
diff --git a/src/Umbraco.Core/Persistence/Dtos/MemberTypeReadOnlyDto.cs b/src/Umbraco.Core/Persistence/Dtos/MemberTypeReadOnlyDto.cs
index f9e70cce18..c4ea6a10fd 100644
--- a/src/Umbraco.Core/Persistence/Dtos/MemberTypeReadOnlyDto.cs
+++ b/src/Umbraco.Core/Persistence/Dtos/MemberTypeReadOnlyDto.cs
@@ -66,13 +66,13 @@ namespace Umbraco.Core.Persistence.Dtos
public bool AllowAtRoot { get; set; }
/* PropertyTypes */
- //TODO Add PropertyTypeDto (+MemberTypeDto and DataTypeDto as one) ReadOnly list
+ // TODO: Add PropertyTypeDto (+MemberTypeDto and DataTypeDto as one) ReadOnly list
[ResultColumn]
[Reference(ReferenceType.Many, ReferenceMemberName = "ContentTypeId")]
public List PropertyTypes { get; set; }
/* PropertyTypeGroups */
- //TODO Add PropertyTypeGroupDto ReadOnly list
+ // TODO: Add PropertyTypeGroupDto ReadOnly list
[ResultColumn]
[Reference(ReferenceType.Many, ReferenceMemberName = "ContentTypeNodeId")]
public List PropertyTypeGroups { get; set; }
diff --git a/src/Umbraco.Core/Persistence/EntityNotFoundException.cs b/src/Umbraco.Core/Persistence/EntityNotFoundException.cs
index 49e85046a0..e0fe778fa6 100644
--- a/src/Umbraco.Core/Persistence/EntityNotFoundException.cs
+++ b/src/Umbraco.Core/Persistence/EntityNotFoundException.cs
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Umbraco.Core.Persistence
{
- //TODO: Would be good to use this exception type anytime we cannot find an entity
+ // TODO: Would be good to use this exception type anytime we cannot find an entity
///
/// An exception used to indicate that an umbraco entity could not be found
diff --git a/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs b/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs
index b6f5401bec..d04930fa92 100644
--- a/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs
+++ b/src/Umbraco.Core/Persistence/Querying/ExpressionVisitorBase.cs
@@ -269,7 +269,7 @@ namespace Umbraco.Core.Persistence.Querying
protected virtual string VisitNew(NewExpression newExpression)
{
- // TODO : check !
+ // TODO: check !
var member = Expression.Convert(newExpression, typeof(object));
var lambda = Expression.Lambda>(member);
try
@@ -662,7 +662,7 @@ namespace Umbraco.Core.Persistence.Querying
// sql 'COALESCE(x,fb) = COALESCE(y,fb)' - of course, fb must be a value outside
// of x and y range - and if that is not possible, then a manual comparison need
// to be written
- //TODO support SqlNullableEquals with 0 parameters, using the full syntax below
+ // TODO: support SqlNullableEquals with 0 parameters, using the full syntax below
case "SqlNullableEquals":
var compareTo = Visit(m.Arguments[1]);
var fallback = Visit(m.Arguments[2]);
diff --git a/src/Umbraco.Core/Persistence/Querying/ModelToSqlExpressionVisitor.cs b/src/Umbraco.Core/Persistence/Querying/ModelToSqlExpressionVisitor.cs
index 9f57e61db9..a353f01f5b 100644
--- a/src/Umbraco.Core/Persistence/Querying/ModelToSqlExpressionVisitor.cs
+++ b/src/Umbraco.Core/Persistence/Querying/ModelToSqlExpressionVisitor.cs
@@ -79,7 +79,7 @@ namespace Umbraco.Core.Persistence.Querying
return string.Empty;
}
- //TODO: When m.Expression.NodeType == ExpressionType.Constant and it's an expression like: content => aliases.Contains(content.ContentType.Alias);
+ // TODO: When m.Expression.NodeType == ExpressionType.Constant and it's an expression like: content => aliases.Contains(content.ContentType.Alias);
// then an SQL parameter will be added for aliases as an array, however in SqlIn on the subclass it will manually add these SqlParameters anyways,
// however the query will still execute because the SQL that is written will only contain the correct indexes of SQL parameters, this would be ignored,
// I'm just unsure right now due to time constraints how to make it correct. It won't matter right now and has been working already with this bug but I've
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
index 92ade18204..7f41d2a456 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/ContentTypeRepositoryBase.cs
@@ -271,7 +271,7 @@ AND umbracoNode.id <> @id",
compositionBase.RemovedContentTypeKeyTracker != null &&
compositionBase.RemovedContentTypeKeyTracker.Any())
{
- //TODO: Could we do the below with bulk SQL statements instead of looking everything up and then manipulating?
+ // TODO: Could we do the below with bulk SQL statements instead of looking everything up and then manipulating?
// find Content based on the current ContentType
var sql = Sql()
@@ -291,7 +291,7 @@ AND umbracoNode.id <> @id",
// based on the PropertyTypes that belong to the removed ContentType.
foreach (var contentDto in contentDtos)
{
- //TODO: This could be done with bulk SQL statements
+ // TODO: This could be done with bulk SQL statements
foreach (var propertyType in propertyTypes)
{
var nodeId = contentDto.NodeId;
@@ -437,7 +437,7 @@ AND umbracoNode.id <> @id",
case ContentVariation.CultureAndSegment:
case ContentVariation.Segment:
default:
- throw new NotSupportedException(); //TODO: Support this
+ throw new NotSupportedException(); // TODO: Support this
}
}
@@ -627,7 +627,7 @@ AND umbracoNode.id <> @id",
///
private void ClearScheduledPublishing(IContentTypeComposition contentType)
{
- //TODO: Fill this in when scheduled publishing is enabled for variants
+ // TODO: Fill this in when scheduled publishing is enabled for variants
}
///
@@ -670,7 +670,7 @@ AND umbracoNode.id <> @id",
case ContentVariation.CultureAndSegment:
case ContentVariation.Segment:
default:
- throw new NotSupportedException(); //TODO: Support this
+ throw new NotSupportedException(); // TODO: Support this
}
}
}
@@ -753,7 +753,7 @@ AND umbracoNode.id <> @id",
case ContentVariation.CultureAndSegment:
case ContentVariation.Segment:
default:
- throw new NotSupportedException(); //TODO: Support this
+ throw new NotSupportedException(); // TODO: Support this
}
}
@@ -1037,7 +1037,7 @@ AND umbracoNode.id <> @id",
var dtos = Database.Fetch(sql);
- //TODO Move this to a PropertyTypeFactory
+ // TODO: Move this to a PropertyTypeFactory
var list = new List();
foreach (var dto in dtos.Where(x => x.PropertyTypeGroupId <= 0))
{
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/DataTypeRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/DataTypeRepository.cs
index 0e6ff0310d..3de9e3c99b 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/DataTypeRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/DataTypeRepository.cs
@@ -26,7 +26,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
{
private readonly Lazy _editors;
- // TODO - https://github.com/umbraco/Umbraco-CMS/issues/4237 - get rid of Lazy injection and fix circular dependencies
+ // TODO: https://github.com/umbraco/Umbraco-CMS/issues/4237 - get rid of Lazy injection and fix circular dependencies
public DataTypeRepository(IScopeAccessor scopeAccessor, AppCaches cache, Lazy editors, ILogger logger)
: base(scopeAccessor, cache, logger)
{
@@ -111,7 +111,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
//ensure a datatype has a unique name before creating it
entity.Name = EnsureUniqueNodeName(entity.Name);
- //TODO: should the below be removed?
+ // TODO: should the below be removed?
//Cannot add a duplicate data type
var existsSql = Sql()
.SelectCount()
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/DomainRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/DomainRepository.cs
index fa06216f9b..01b8bdd66c 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/DomainRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/DomainRepository.cs
@@ -12,7 +12,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Core.Persistence.Repositories.Implement
{
- //TODO: We need to get a readonly ISO code for the domain assigned
+ // TODO: We need to get a readonly ISO code for the domain assigned
internal class DomainRepository : NPocoRepositoryBase, IDomainRepository
{
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs
index 18dc16cbce..ba3526f1f0 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/MemberRepository.cs
@@ -460,7 +460,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
var subQuery = Sql().Select("Member").From().Where(dto => dto.MemberGroup == memberGroup.Id);
var sql = GetBaseQuery(false)
- //TODO: An inner join would be better, though I've read that the query optimizer will always turn a
+ // TODO: An inner join would be better, though I've read that the query optimizer will always turn a
// subquery with an IN clause into an inner join anyways.
.Append("WHERE umbracoNode.id IN (" + subQuery.SQL + ")", subQuery.Arguments)
.OrderByDescending(x => x.VersionDate)
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
index fb45a79e43..a7e366a94f 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/RepositoryBaseOfTIdTEntity.cs
@@ -207,7 +207,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
//ensure they are de-duplicated, easy win if people don't do this as this can cause many excess queries
ids = ids.Distinct()
//don't query by anything that is a default of T (like a zero)
- //TODO: I think we should enabled this in case accidental calls are made to get all with invalid ids
+ // TODO: I think we should enabled this in case accidental calls are made to get all with invalid ids
//.Where(x => Equals(x, default(TId)) == false)
.ToArray();
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/TagRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/TagRepository.cs
index 7dd3f03407..f26fcca81b 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/TagRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/TagRepository.cs
@@ -254,8 +254,7 @@ WHERE r.tagId IS NULL";
#region Queries
- // TODO
- // consider caching implications
+ // TODO: consider caching implications
// add lookups for parentId or path (ie get content in tag group, that are descendants of x)
// ReSharper disable once ClassNeverInstantiated.Local
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/TemplateRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/TemplateRepository.cs
index a183894462..b348317989 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/TemplateRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/TemplateRepository.cs
@@ -407,13 +407,12 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
template.UpdateDate = fs.GetLastModified(filename).UtcDateTime;
}
- // TODO
- // see if this could enable us to update UpdateDate without messing with change tracking
- // and then we'd want to do it for scripts, stylesheets and partial views too (ie files)
- //var xtemplate = template as Template;
- //xtemplate.DisableChangeTracking();
- //template.UpdateDate = fs.GetLastModified(filename).UtcDateTime;
- //xtemplate.EnableChangeTracking();
+ // TODO: see if this could enable us to update UpdateDate without messing with change tracking
+ // and then we'd want to do it for scripts, stylesheets and partial views too (ie files)
+ // var xtemplate = template as Template;
+ // xtemplate.DisableChangeTracking();
+ // template.UpdateDate = fs.GetLastModified(filename).UtcDateTime;
+ // xtemplate.EnableChangeTracking();
template.VirtualPath = fs.GetUrl(filename);
@@ -580,9 +579,8 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
public bool ValidateTemplate(ITemplate template)
{
// get path
- // TODO
- // templates should have a real Path somehow - but anyways
- // are we using Path for something else?!
+ // TODO: templates should have a real Path somehow - but anyways
+ // are we using Path for something else?!
var path = template.VirtualPath;
// get valid paths
@@ -652,7 +650,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
private string EnsureUniqueAlias(ITemplate template, int attempts)
{
- //TODO: This is ported from the old data layer... pretty crap way of doing this but it works for now.
+ // TODO: This is ported from the old data layer... pretty crap way of doing this but it works for now.
if (AliasAlreadExists(template))
return template.Alias + attempts;
attempts++;
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/UserGroupRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/UserGroupRepository.cs
index b42060b6cc..3935027ada 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/UserGroupRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/UserGroupRepository.cs
@@ -128,7 +128,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
{
foreach (var nodeId in nodeIds)
{
- //TODO: We could/should change the EntityPermissionsCollection into a KeyedCollection and they key could be
+ // TODO: We could/should change the EntityPermissionsCollection into a KeyedCollection and they key could be
// a struct of the nodeid + groupid so then we don't actually allocate this class just to check if it's not
// going to be included in the result!
@@ -444,7 +444,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
/// Ids of users
private void AddUsersToGroup(int groupId, int[] userIds)
{
- //TODO: Check if the user exists?
+ // TODO: Check if the user exists?
foreach (var userId in userIds)
{
var dto = new User2UserGroupDto
diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
index fdd5fb0d86..07ad6bcba9 100644
--- a/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
+++ b/src/Umbraco.Core/Persistence/Repositories/Implement/UserRepository.cs
@@ -169,7 +169,7 @@ ORDER BY colName";
public Guid CreateLoginSession(int userId, string requestingIpAddress, bool cleanStaleSessions = true)
{
- //TODO: I know this doesn't follow the normal repository conventions which would require us to create a UserSessionRepository
+ // TODO: I know this doesn't follow the normal repository conventions which would require us to create a UserSessionRepository
//and also business logic models for these objects but that's just so overkill for what we are doing
//and now that everything is properly in a transaction (Scope) there doesn't seem to be much reason for using that anymore
var now = DateTime.UtcNow;
@@ -443,7 +443,7 @@ ORDER BY colName";
var userDto = UserFactory.BuildDto(entity);
// check if we have a known config, we only want to store config for hashing
- //TODO: This logic will need to be updated when we do http://issues.umbraco.org/issue/U4-10089
+ // TODO: This logic will need to be updated when we do http://issues.umbraco.org/issue/U4-10089
if (PasswordConfigJson != null)
userDto.PasswordConfig = PasswordConfigJson;
@@ -538,7 +538,7 @@ ORDER BY colName";
}
// check if we have a known config, we only want to store config for hashing
- //TODO: This logic will need to be updated when we do http://issues.umbraco.org/issue/U4-10089
+ // TODO: This logic will need to be updated when we do http://issues.umbraco.org/issue/U4-10089
if (PasswordConfigJson != null)
{
userDto.PasswordConfig = PasswordConfigJson;
@@ -573,7 +573,7 @@ ORDER BY colName";
: Database.Fetch("SELECT * FROM umbracoUserGroup WHERE userGroupAlias IN (@aliases)", new { aliases = entity.Groups.Select(x => x.Alias) });
//first delete all
- //TODO: We could do this a nicer way instead of "Nuke and Pave"
+ // TODO: We could do this a nicer way instead of "Nuke and Pave"
Database.Delete("WHERE UserId = @UserId", new { UserId = entity.Id });
foreach (var groupDto in assigned)
diff --git a/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs b/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs
index d6ceeaa3e6..5b6a9afb04 100644
--- a/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs
+++ b/src/Umbraco.Core/Persistence/SqlSyntax/SqlSyntaxProviderBase.cs
@@ -500,7 +500,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
if (column.DefaultValue == null)
return string.Empty;
- //hack - probably not needed with latest changes
+ // HACK: probably not needed with latest changes
if (column.DefaultValue.ToString().ToLower().Equals("getdate()".ToLower()))
column.DefaultValue = SystemMethods.CurrentDateTime;
diff --git a/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs b/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs
index 3891d7952b..c3dca609d2 100644
--- a/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs
+++ b/src/Umbraco.Core/PropertyEditors/Validators/DelimitedValueValidator.cs
@@ -23,7 +23,7 @@ namespace Umbraco.Core.PropertyEditors.Validators
///
public IEnumerable Validate(object value, string valueType, object dataTypeConfiguration)
{
- //TODO: localize these!
+ // TODO: localize these!
if (value != null)
{
var delimiter = ",";
diff --git a/src/Umbraco.Core/PropertyEditors/ValueConverters/JsonValueConverter.cs b/src/Umbraco.Core/PropertyEditors/ValueConverters/JsonValueConverter.cs
index d4cee4762f..e04893716a 100644
--- a/src/Umbraco.Core/PropertyEditors/ValueConverters/JsonValueConverter.cs
+++ b/src/Umbraco.Core/PropertyEditors/ValueConverters/JsonValueConverter.cs
@@ -65,6 +65,6 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
return sourceString;
}
- //TODO: Now to convert that to XPath!
+ // TODO: Now to convert that to XPath!
}
}
diff --git a/src/Umbraco.Core/Runtime/CoreRuntimeComposer.cs b/src/Umbraco.Core/Runtime/CoreRuntimeComposer.cs
index 83cc456127..8285b9b4fd 100644
--- a/src/Umbraco.Core/Runtime/CoreRuntimeComposer.cs
+++ b/src/Umbraco.Core/Runtime/CoreRuntimeComposer.cs
@@ -73,7 +73,7 @@ namespace Umbraco.Core.Runtime
// register a server registrar, by default it's the db registrar
composition.RegisterUnique(f =>
{
- // TODO this is a hack, use proper configuration!
+ // TODO: this is a hack, use proper configuration!
// also: we still register the full IServerMessenger because
// even on 1 single server we can have 2 concurrent app domains
var singleServer = "true".InvariantEquals(ConfigurationManager.AppSettings["umbracoDisableElectionForSingleServer"]);
diff --git a/src/Umbraco.Core/Scoping/ScopeContext.cs b/src/Umbraco.Core/Scoping/ScopeContext.cs
index 03a0da1a55..7b62c5c7a2 100644
--- a/src/Umbraco.Core/Scoping/ScopeContext.cs
+++ b/src/Umbraco.Core/Scoping/ScopeContext.cs
@@ -13,7 +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/Security/BackOfficeUserStore.cs b/src/Umbraco.Core/Security/BackOfficeUserStore.cs
index 2d9469180a..3d87482d60 100644
--- a/src/Umbraco.Core/Security/BackOfficeUserStore.cs
+++ b/src/Umbraco.Core/Security/BackOfficeUserStore.cs
@@ -30,9 +30,9 @@ namespace Umbraco.Core.Security
IUserTwoFactorStore,
IUserSessionStore
- //TODO: This would require additional columns/tables for now people will need to implement this on their own
+ // TODO: This would require additional columns/tables for now people will need to implement this on their own
//IUserPhoneNumberStore,
- //TODO: To do this we need to implement IQueryable - we'll have an IQuerable implementation soon with the UmbracoLinqPadDriver implementation
+ // TODO: To do this we need to implement IQueryable - we'll have an IQuerable implementation soon with the UmbracoLinqPadDriver implementation
//IQueryableUserStore
{
private readonly IUserService _userService;
@@ -99,7 +99,7 @@ namespace Umbraco.Core.Security
UpdateMemberProperties(userEntity, user);
- //TODO: We should deal with Roles --> User Groups here which we currently are not doing
+ // TODO: We should deal with Roles --> User Groups here which we currently are not doing
_userService.Save(userEntity);
@@ -720,7 +720,7 @@ namespace Umbraco.Core.Security
user.SecurityStamp = identityUser.SecurityStamp;
}
- //TODO: Fix this for Groups too
+ // TODO: Fix this for Groups too
if (identityUser.IsPropertyDirty("Roles") || identityUser.IsPropertyDirty("Groups"))
{
var userGroupAliases = user.Groups.Select(x => x.Alias).ToArray();
diff --git a/src/Umbraco.Core/Security/MembershipProviderExtensions.cs b/src/Umbraco.Core/Security/MembershipProviderExtensions.cs
index ff595a5d45..8fc2cb77e4 100644
--- a/src/Umbraco.Core/Security/MembershipProviderExtensions.cs
+++ b/src/Umbraco.Core/Security/MembershipProviderExtensions.cs
@@ -161,7 +161,7 @@ namespace Umbraco.Core.Security
return (membershipProvider is UmbracoMembershipProviderBase);
}
- //TODO: Add role provider checks too
+ // TODO: Add role provider checks too
public static UmbracoMembershipProviderBase AsUmbracoMembershipProvider(this MembershipProvider membershipProvider)
{
diff --git a/src/Umbraco.Core/Security/UserAwareMembershipProviderPasswordHasher.cs b/src/Umbraco.Core/Security/UserAwareMembershipProviderPasswordHasher.cs
index 7fecb30fba..e09c861caa 100644
--- a/src/Umbraco.Core/Security/UserAwareMembershipProviderPasswordHasher.cs
+++ b/src/Umbraco.Core/Security/UserAwareMembershipProviderPasswordHasher.cs
@@ -15,14 +15,14 @@ namespace Umbraco.Core.Security
public string HashPassword(BackOfficeIdentityUser user, string password)
{
- //TODO: Implement the logic for this, we need to lookup the password format for the user and hash accordingly: http://issues.umbraco.org/issue/U4-10089
+ // TODO: Implement the logic for this, we need to lookup the password format for the user and hash accordingly: http://issues.umbraco.org/issue/U4-10089
//NOTE: For now this just falls back to the hashing we are currently using
return base.HashPassword(password);
}
public PasswordVerificationResult VerifyHashedPassword(BackOfficeIdentityUser user, string hashedPassword, string providedPassword)
{
- //TODO: Implement the logic for this, we need to lookup the password format for the user and hash accordingly: http://issues.umbraco.org/issue/U4-10089
+ // TODO: Implement the logic for this, we need to lookup the password format for the user and hash accordingly: http://issues.umbraco.org/issue/U4-10089
//NOTE: For now this just falls back to the hashing we are currently using
return base.VerifyHashedPassword(hashedPassword, providedPassword);
}
diff --git a/src/Umbraco.Core/Services/Implement/AuditService.cs b/src/Umbraco.Core/Services/Implement/AuditService.cs
index d02d7f541b..46c851a789 100644
--- a/src/Umbraco.Core/Services/Implement/AuditService.cs
+++ b/src/Umbraco.Core/Services/Implement/AuditService.cs
@@ -200,7 +200,7 @@ namespace Umbraco.Core.Services.Implement
return entry;
}
- //TODO: Currently used in testing only, not part of the interface, need to add queryable methods to the interface instead
+ // TODO: Currently used in testing only, not part of the interface, need to add queryable methods to the interface instead
internal IEnumerable GetAll()
{
if (_isAvailable.Value == false) return Enumerable.Empty();
@@ -211,7 +211,7 @@ namespace Umbraco.Core.Services.Implement
}
}
- //TODO: Currently used in testing only, not part of the interface, need to add queryable methods to the interface instead
+ // TODO: Currently used in testing only, not part of the interface, need to add queryable methods to the interface instead
internal IEnumerable GetPage(long pageIndex, int pageCount, out long records)
{
if (_isAvailable.Value == false)
diff --git a/src/Umbraco.Core/Services/Implement/ContentService.cs b/src/Umbraco.Core/Services/Implement/ContentService.cs
index cbc2eeca7a..266f34cc37 100644
--- a/src/Umbraco.Core/Services/Implement/ContentService.cs
+++ b/src/Umbraco.Core/Services/Implement/ContentService.cs
@@ -778,7 +778,7 @@ namespace Umbraco.Core.Services.Implement
var culturesChanging = content.ContentType.VariesByCulture()
? content.CultureInfos.Where(x => x.Value.IsDirty()).Select(x => x.Key).ToList()
: null;
- //TODO: Currently there's no way to change track which variant properties have changed, we only have change
+ // TODO: Currently there's no way to change track which variant properties have changed, we only have change
// tracking enabled on all values on the Property which doesn't allow us to know which variants have changed.
// in this particular case, determining which cultures have changed works with the above with names since it will
// have always changed if it's been saved in the back office but that's not really fail safe.
@@ -1562,8 +1562,7 @@ namespace Umbraco.Core.Services.Implement
DoDelete(content);
}
- //TODO:
- // both DeleteVersions methods below have an issue. Sort of. They do NOT take care of files the way
+ //TODO: both DeleteVersions methods below have an issue. Sort of. They do NOT take care of files the way
// Delete does - for a good reason: the file may be referenced by other, non-deleted, versions. BUT,
// if that's not the case, then the file will never be deleted, because when we delete the content,
// the version referencing the file will not be there anymore. SO, we can leak files.
@@ -2001,7 +2000,7 @@ namespace Umbraco.Core.Services.Implement
? string.Join(",", content.CultureInfos.Where(x => x.Value.IsDirty()).Select(x => x.Key))
: null;
- //TODO: Currently there's no way to change track which variant properties have changed, we only have change
+ // TODO: Currently there's no way to change track which variant properties have changed, we only have change
// tracking enabled on all values on the Property which doesn't allow us to know which variants have changed.
// in this particular case, determining which cultures have changed works with the above with names since it will
// have always changed if it's been saved in the back office but that's not really fail safe.
@@ -2553,7 +2552,7 @@ namespace Umbraco.Core.Services.Implement
/// Optional Id of the user issuing the delete operation
public void DeleteOfTypes(IEnumerable contentTypeIds, int userId = 0)
{
- //TODO: This currently this is called from the ContentTypeService but that needs to change,
+ // TODO: This currently this is called from the ContentTypeService but that needs to change,
// if we are deleting a content type, we should just delete the data and do this operation slightly differently.
// This method will recursively go lookup every content item, check if any of it's descendants are
// of a different type, move them to the recycle bin, then permanently delete the content items.
diff --git a/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs b/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
index 0cac249cdf..bf43693d3b 100644
--- a/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
+++ b/src/Umbraco.Core/Services/Implement/ContentTypeServiceBaseOfTRepositoryTItemTService.cs
@@ -134,7 +134,7 @@ namespace Umbraco.Core.Services.Implement
var dirty = (IRememberBeingDirty)contentType;
// skip new content types
- //TODO: This used to be WasPropertyDirty("HasIdentity") but i don't think that actually worked for detecting new entities this does seem to work properly
+ // TODO: This used to be WasPropertyDirty("HasIdentity") but i don't think that actually worked for detecting new entities this does seem to work properly
var isNewContentType = dirty.WasPropertyDirty("Id");
if (isNewContentType)
{
@@ -152,7 +152,7 @@ namespace Umbraco.Core.Services.Implement
throw new Exception("oops");
// skip new properties
- //TODO: This used to be WasPropertyDirty("HasIdentity") but i don't think that actually worked for detecting new entities this does seem to work properly
+ // TODO: This used to be WasPropertyDirty("HasIdentity") but i don't think that actually worked for detecting new entities this does seem to work properly
var isNewProperty = dirtyProperty.WasPropertyDirty("Id");
if (isNewProperty) return false;
@@ -758,7 +758,7 @@ namespace Umbraco.Core.Services.Implement
saveEventArgs.CanCancel = false;
OnSavedContainer(scope, saveEventArgs);
- //TODO: Audit trail ?
+ // TODO: Audit trail ?
return OperationResult.Attempt.Succeed(evtMsgs, container);
}
@@ -805,7 +805,7 @@ namespace Umbraco.Core.Services.Implement
OnSavedContainer(scope, args);
}
- //TODO: Audit trail ?
+ // TODO: Audit trail ?
return OperationResult.Attempt.Succeed(evtMsgs);
}
@@ -897,7 +897,7 @@ namespace Umbraco.Core.Services.Implement
OnDeletedContainer(scope, deleteEventArgs);
return OperationResult.Attempt.Succeed(evtMsgs);
- //TODO: Audit trail ?
+ // TODO: Audit trail ?
}
}
diff --git a/src/Umbraco.Core/Services/Implement/DataTypeService.cs b/src/Umbraco.Core/Services/Implement/DataTypeService.cs
index 4c588157d0..97368e9047 100644
--- a/src/Umbraco.Core/Services/Implement/DataTypeService.cs
+++ b/src/Umbraco.Core/Services/Implement/DataTypeService.cs
@@ -62,7 +62,7 @@ namespace Umbraco.Core.Services.Implement
scope.Complete();
scope.Events.Dispatch(SavedContainer, this, new SaveEventArgs(container, evtMsgs));
- //TODO: Audit trail ?
+ // TODO: Audit trail ?
return OperationResult.Attempt.Succeed(evtMsgs, container);
}
@@ -149,7 +149,7 @@ namespace Umbraco.Core.Services.Implement
scope.Complete();
}
- //TODO: Audit trail ?
+ // TODO: Audit trail ?
return OperationResult.Attempt.Succeed(evtMsgs);
}
@@ -182,7 +182,7 @@ namespace Umbraco.Core.Services.Implement
scope.Complete();
}
- //TODO: Audit trail ?
+ // TODO: Audit trail ?
return OperationResult.Attempt.Succeed(evtMsgs);
}
diff --git a/src/Umbraco.Core/Services/Implement/FileService.cs b/src/Umbraco.Core/Services/Implement/FileService.cs
index 36b4af6d5e..f49395d73d 100644
--- a/src/Umbraco.Core/Services/Implement/FileService.cs
+++ b/src/Umbraco.Core/Services/Implement/FileService.cs
@@ -1039,7 +1039,7 @@ namespace Umbraco.Core.Services.Implement
_auditRepository.Save(new AuditItem(objectId, type, userId, entityType));
}
- //TODO Method to change name and/or alias of view template
+ // TODO: Method to change name and/or alias of view template
#region Event Handlers
diff --git a/src/Umbraco.Core/Services/Implement/LocalizedTextService.cs b/src/Umbraco.Core/Services/Implement/LocalizedTextService.cs
index 9401cefa7d..4f5121def7 100644
--- a/src/Umbraco.Core/Services/Implement/LocalizedTextService.cs
+++ b/src/Umbraco.Core/Services/Implement/LocalizedTextService.cs
@@ -8,7 +8,7 @@ using Umbraco.Core.Logging;
namespace Umbraco.Core.Services.Implement
{
- //TODO: Convert all of this over to Niels K's localization framework one day
+ // TODO: Convert all of this over to Niels K's localization framework one day
public class LocalizedTextService : ILocalizedTextService
{
@@ -58,7 +58,7 @@ namespace Umbraco.Core.Services.Implement
{
if (culture == null) throw new ArgumentNullException(nameof(culture));
- //TODO: Hack, see notes on ConvertToSupportedCultureWithRegionCode
+ // TODO: Hack, see notes on ConvertToSupportedCultureWithRegionCode
culture = ConvertToSupportedCultureWithRegionCode(culture);
//This is what the legacy ui service did
@@ -91,7 +91,7 @@ namespace Umbraco.Core.Services.Implement
{
if (culture == null) throw new ArgumentNullException("culture");
- //TODO: Hack, see notes on ConvertToSupportedCultureWithRegionCode
+ // TODO: Hack, see notes on ConvertToSupportedCultureWithRegionCode
culture = ConvertToSupportedCultureWithRegionCode(culture);
var result = new Dictionary();
diff --git a/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs b/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs
index f19dd9f63e..a0b952a75a 100644
--- a/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs
+++ b/src/Umbraco.Core/Services/Implement/LocalizedTextServiceFileSources.cs
@@ -21,7 +21,7 @@ namespace Umbraco.Core.Services.Implement
private readonly IEnumerable _supplementFileSources;
private readonly DirectoryInfo _fileSourceFolder;
- //TODO: See other notes in this class, this is purely a hack because we store 2 letter culture file names that contain 4 letter cultures :(
+ // TODO: See other notes in this class, this is purely a hack because we store 2 letter culture file names that contain 4 letter cultures :(
private readonly Dictionary _twoLetterCultureConverter = new Dictionary();
private readonly Lazy>> _xmlSources;
@@ -60,7 +60,7 @@ namespace Umbraco.Core.Services.Implement
var localCopy = fileInfo;
var filename = Path.GetFileNameWithoutExtension(localCopy.FullName).Replace("_", "-");
- //TODO: Fix this nonsense... would have to wait until v8 to store the language files with their correct
+ // TODO: Fix this nonsense... would have to wait until v8 to store the language files with their correct
// names instead of storing them as 2 letters but actually having a 4 letter culture. wtf. So now, we
// need to check if the file is 2 letters, then open it to try to find it's 4 letter culture, then use that
// if it's successful. We're going to assume (though it seems assuming in the legacy logic is never a great idea)
@@ -150,7 +150,7 @@ namespace Umbraco.Core.Services.Implement
return _xmlSources.Value;
}
- //TODO: See other notes in this class, this is purely a hack because we store 2 letter culture file names that contain 4 letter cultures :(
+ // TODO: See other notes in this class, this is purely a hack because we store 2 letter culture file names that contain 4 letter cultures :(
public Attempt TryConvert2LetterCultureTo4Letter(string twoLetterCulture)
{
if (twoLetterCulture.Length != 2) return Attempt.Fail();
@@ -163,7 +163,7 @@ namespace Umbraco.Core.Services.Implement
: Attempt.Fail();
}
- //TODO: See other notes in this class, this is purely a hack because we store 2 letter culture file names that contain 4 letter cultures :(
+ // TODO: See other notes in this class, this is purely a hack because we store 2 letter culture file names that contain 4 letter cultures :(
public Attempt TryConvert4LetterCultureTo2Letter(CultureInfo culture)
{
if (culture == null) throw new ArgumentNullException("culture");
diff --git a/src/Umbraco.Core/Services/Implement/MediaService.cs b/src/Umbraco.Core/Services/Implement/MediaService.cs
index 9ca7892f62..e7a42e28e4 100644
--- a/src/Umbraco.Core/Services/Implement/MediaService.cs
+++ b/src/Umbraco.Core/Services/Implement/MediaService.cs
@@ -773,8 +773,7 @@ namespace Umbraco.Core.Services.Implement
DoDelete(media);
}
- //TODO:
- // both DeleteVersions methods below have an issue. Sort of. They do NOT take care of files the way
+ //TODO: both DeleteVersions methods below have an issue. Sort of. They do NOT take care of files the way
// Delete does - for a good reason: the file may be referenced by other, non-deleted, versions. BUT,
// if that's not the case, then the file will never be deleted, because when we delete the media,
// the version referencing the file will not be there anymore. SO, we can leak files.
@@ -1276,7 +1275,7 @@ namespace Umbraco.Core.Services.Implement
/// Optional id of the user deleting the media
public void DeleteMediaOfTypes(IEnumerable mediaTypeIds, int userId = 0)
{
- //TODO: This currently this is called from the ContentTypeService but that needs to change,
+ // TODO: This currently this is called from the ContentTypeService but that needs to change,
// if we are deleting a content type, we should just delete the data and do this operation slightly differently.
// This method will recursively go lookup every content item, check if any of it's descendants are
// of a different type, move them to the recycle bin, then permanently delete the content items.
diff --git a/src/Umbraco.Core/Services/Implement/MemberService.cs b/src/Umbraco.Core/Services/Implement/MemberService.cs
index b7afaea1be..3b35896769 100644
--- a/src/Umbraco.Core/Services/Implement/MemberService.cs
+++ b/src/Umbraco.Core/Services/Implement/MemberService.cs
@@ -449,7 +449,7 @@ namespace Umbraco.Core.Services.Implement
///
public IMember GetByUsername(string username)
{
- //TODO: Somewhere in here, whether at this level or the repository level, we need to add
+ // TODO: Somewhere in here, whether at this level or the repository level, we need to add
// a caching mechanism since this method is used by all the membership providers and could be
// called quite a bit when dealing with members.
@@ -770,8 +770,8 @@ namespace Umbraco.Core.Services.Implement
throw new ArgumentOutOfRangeException(nameof(matchType)); // causes rollback // causes rollback
}
- //TODO: Since this is by property value, we need a GetByPropertyQuery on the repo!
- //TODO: Since this is by property value, we need a GetByPropertyQuery on the repo!
+ // TODO: Since this is by property value, we need a GetByPropertyQuery on the repo!
+ // TODO: Since this is by property value, we need a GetByPropertyQuery on the repo!
return _memberRepository.Get(query);
}
}
@@ -1330,8 +1330,8 @@ namespace Umbraco.Core.Services.Implement
{
scope.WriteLock(Constants.Locks.MemberTree);
- //TODO: What about content that has the contenttype as part of its composition?
- //TODO: What about content that has the contenttype as part of its composition?
+ // TODO: What about content that has the contenttype as part of its composition?
+ // TODO: What about content that has the contenttype as part of its composition?
var query = Query().Where(x => x.ContentTypeId == memberTypeId);
var members = _memberRepository.Get(query).ToArray();
diff --git a/src/Umbraco.Core/Services/Implement/NotificationService.cs b/src/Umbraco.Core/Services/Implement/NotificationService.cs
index 95353715e1..d981809364 100644
--- a/src/Umbraco.Core/Services/Implement/NotificationService.cs
+++ b/src/Umbraco.Core/Services/Implement/NotificationService.cs
@@ -394,7 +394,7 @@ namespace Umbraco.Core.Services.Implement
content.Id.ToString(CultureInfo.InvariantCulture),
string.Format("{2}://{0}/{1}",
string.Concat(siteUri.Authority),
- //TODO: RE-enable this so we can have a nice url
+ // TODO: RE-enable this so we can have a nice url
/*umbraco.library.NiceUrl(documentObject.Id))*/
string.Concat(content.Id, ".aspx"),
protocol),
diff --git a/src/Umbraco.Core/Services/Implement/UserService.cs b/src/Umbraco.Core/Services/Implement/UserService.cs
index e2c64d2f29..0ea77dedcc 100644
--- a/src/Umbraco.Core/Services/Implement/UserService.cs
+++ b/src/Umbraco.Core/Services/Implement/UserService.cs
@@ -109,7 +109,7 @@ namespace Umbraco.Core.Services.Implement
{
if (string.IsNullOrWhiteSpace(username)) throw new ArgumentNullOrEmptyException(nameof(username));
- //TODO: PUT lock here!!
+ // TODO: PUT lock here!!
User user;
using (var scope = ScopeProvider.CreateScope())
@@ -1218,7 +1218,7 @@ namespace Umbraco.Core.Services.Implement
///
public static event TypedEventHandler> DeletedUserGroup;
- //TODO: still don't know if we need this yet unless we start caching permissions, but that also means we'll need another
+ // TODO: still don't know if we need this yet unless we start caching permissions, but that also means we'll need another
// event on the ContentService since there's a method there to modify node permissions too, or we can proxy events if needed.
internal static event TypedEventHandler> UserGroupPermissionsAssigned;
}
diff --git a/src/Umbraco.Core/Services/OperationResultType.cs b/src/Umbraco.Core/Services/OperationResultType.cs
index 2998692c13..918f1c49fa 100644
--- a/src/Umbraco.Core/Services/OperationResultType.cs
+++ b/src/Umbraco.Core/Services/OperationResultType.cs
@@ -40,6 +40,6 @@
///
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...
+ // TODO: In the future, we might need to add more operations statuses, potentially like 'FailedByPermissions', etc...
}
}
diff --git a/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs b/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs
index b326a3cda6..12d2ef9a17 100644
--- a/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs
+++ b/src/Umbraco.Core/Strings/IUrlSegmentProvider.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Core.Strings
/// url per culture.
string GetUrlSegment(IContentBase content, string culture = null);
- //TODO: For the 301 tracking, we need to add another extended interface to this so that
+ // TODO: For the 301 tracking, we need to add another extended interface to this so that
// the RedirectTrackingEventHandler can ask the IUrlSegmentProvider if the URL is changing.
// Currently the way it works is very hacky, see notes in: RedirectTrackingEventHandler.ContentService_Publishing
}
diff --git a/src/Umbraco.Core/Sync/IServerAddress.cs b/src/Umbraco.Core/Sync/IServerAddress.cs
index 42567c67c1..be74b8483f 100644
--- a/src/Umbraco.Core/Sync/IServerAddress.cs
+++ b/src/Umbraco.Core/Sync/IServerAddress.cs
@@ -10,6 +10,6 @@
///
string ServerAddress { get; }
- //TODO : Should probably add things like port, protocol, server name, app id
+ // TODO: Should probably add things like port, protocol, server name, app id
}
}
diff --git a/src/Umbraco.Core/TypeExtensions.cs b/src/Umbraco.Core/TypeExtensions.cs
index 56b2026afb..1582b603d3 100644
--- a/src/Umbraco.Core/TypeExtensions.cs
+++ b/src/Umbraco.Core/TypeExtensions.cs
@@ -55,7 +55,7 @@ namespace Umbraco.Core
? getMember(memberName.ToCleanString(CleanStringType.Ascii | CleanStringType.ConvertCase | CleanStringType.CamelCase))
: getMember(memberName.ToCleanString(CleanStringType.Ascii | CleanStringType.ConvertCase | CleanStringType.PascalCase));
- //TODO: If this still fails then we should get a list of properties from the object and then compare - doing the above without listing
+ // TODO: If this still fails then we should get a list of properties from the object and then compare - doing the above without listing
// all properties will surely be faster than using reflection to get ALL properties first and then query against them.
}
diff --git a/src/Umbraco.Core/UdiEntityType.cs b/src/Umbraco.Core/UdiEntityType.cs
index 07bde1ba93..86197ce6a8 100644
--- a/src/Umbraco.Core/UdiEntityType.cs
+++ b/src/Umbraco.Core/UdiEntityType.cs
@@ -78,7 +78,7 @@ namespace Umbraco.Core
public const string DocumentType = "document-type";
public const string DocumentTypeContainer = "document-type-container";
- //TODO: What is this? This alias is only used for the blue print tree to render the blueprint's document type, it's not a real udi type
+ // TODO: What is this? This alias is only used for the blue print tree to render the blueprint's document type, it's not a real udi type
public const string DocumentTypeBluePrints = "document-type-blueprints";
public const string MediaType = "media-type";
public const string MediaTypeContainer = "media-type-container";
diff --git a/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs b/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs
index afe9831b72..b31fa6a8df 100644
--- a/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs
+++ b/src/Umbraco.Core/Xml/UmbracoXPathPathSyntaxParser.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Core.Xml
Func publishedContentExists)
{
- //TODO: This should probably support some of the old syntax and token replacements, currently
+ // TODO: This should probably support some of the old syntax and token replacements, currently
// it does not, there is a ticket raised here about it: http://issues.umbraco.org/issue/U4-6364
// previous tokens were: "$currentPage", "$ancestorOrSelf", "$parentPage" and I believe they were
// allowed 'inline', not just at the beginning... whether or not we want to support that is up
@@ -97,7 +97,7 @@ namespace Umbraco.Core.Xml
});
}
- //TODO: This used to just replace $root with string.Empty BUT, that would never work
+ // TODO: This used to just replace $root with string.Empty BUT, that would never work
// the root is always "/root . Need to confirm with Per why this was string.Empty before!
vars.Add("$root", q => q.Replace("$root", "/root"));
diff --git a/src/Umbraco.Core/Xml/XPath/INavigableContent.cs b/src/Umbraco.Core/Xml/XPath/INavigableContent.cs
index c48b91893a..eeb7891726 100644
--- a/src/Umbraco.Core/Xml/XPath/INavigableContent.cs
+++ b/src/Umbraco.Core/Xml/XPath/INavigableContent.cs
@@ -45,7 +45,7 @@ namespace Umbraco.Core.Xml.XPath
///
object Value(int index);
- // TODO implement the following one
+ // TODO: implement the following one
/////
///// Gets the value of a field of the navigable content, for a specified language.
diff --git a/src/Umbraco.Examine/ContentValueSetBuilder.cs b/src/Umbraco.Examine/ContentValueSetBuilder.cs
index a6262c53fc..5e0197765d 100644
--- a/src/Umbraco.Examine/ContentValueSetBuilder.cs
+++ b/src/Umbraco.Examine/ContentValueSetBuilder.cs
@@ -29,7 +29,7 @@ namespace Umbraco.Examine
///
public override IEnumerable GetValueSets(params IContent[] content)
{
- //TODO: There is a lot of boxing going on here and ultimately all values will be boxed by Lucene anyways
+ // TODO: There is a lot of boxing going on here and ultimately all values will be boxed by Lucene anyways
// but I wonder if there's a way to reduce the boxing that we have to do or if it will matter in the end since
// Lucene will do it no matter what? One idea was to create a `FieldValue` struct which would contain `object`, `object[]`, `ValueType` and `ValueType[]`
// references and then each array is an array of `FieldValue[]` and values are assigned accordingly. Not sure if it will make a difference or not.
diff --git a/src/Umbraco.Examine/ExamineExtensions.cs b/src/Umbraco.Examine/ExamineExtensions.cs
index 4fe6c359d7..19171ac6b1 100644
--- a/src/Umbraco.Examine/ExamineExtensions.cs
+++ b/src/Umbraco.Examine/ExamineExtensions.cs
@@ -48,7 +48,7 @@ namespace Umbraco.Examine
internal static bool TryParseLuceneQuery(string query)
{
- //TODO: I'd assume there would be a more strict way to parse the query but not that i can find yet, for now we'll
+ // TODO: I'd assume there would be a more strict way to parse the query but not that i can find yet, for now we'll
// also do this rudimentary check
if (!query.Contains(":"))
return false;
diff --git a/src/Umbraco.Tests.Benchmarks/BulkInsertBenchmarks.cs b/src/Umbraco.Tests.Benchmarks/BulkInsertBenchmarks.cs
index ee2e75cfad..d6dc1f8c73 100644
--- a/src/Umbraco.Tests.Benchmarks/BulkInsertBenchmarks.cs
+++ b/src/Umbraco.Tests.Benchmarks/BulkInsertBenchmarks.cs
@@ -22,7 +22,7 @@ namespace Umbraco.Tests.Benchmarks
{
private static byte[] _initDbBytes;
- // fixme - should run on LocalDb same as NPoco tests!
+ // FIXME: should run on LocalDb same as NPoco tests!
private IUmbracoDatabase GetSqlServerDatabase(ILogger logger)
{
diff --git a/src/Umbraco.Tests/Cache/DistributedCacheBinderTests.cs b/src/Umbraco.Tests/Cache/DistributedCacheBinderTests.cs
index 3532a11c63..e9448bd0fc 100644
--- a/src/Umbraco.Tests/Cache/DistributedCacheBinderTests.cs
+++ b/src/Umbraco.Tests/Cache/DistributedCacheBinderTests.cs
@@ -32,7 +32,7 @@ namespace Umbraco.Tests.Cache
[Test]
public void Can_Find_All_Event_Handlers()
{
- // fixme - cannot work with mocks
+ // FIXME: cannot work with mocks
// because the events are defined on actual static classes, not on the interfaces, so name matching fails
// we should really refactor events entirely - in the meantime, let it be an UmbracoTestBase ;(
//var testObjects = new TestObjects(null);
diff --git a/src/Umbraco.Tests/Clr/ReflectionUtilitiesTests.cs b/src/Umbraco.Tests/Clr/ReflectionUtilitiesTests.cs
index f40ca3f500..0431e7d69f 100644
--- a/src/Umbraco.Tests/Clr/ReflectionUtilitiesTests.cs
+++ b/src/Umbraco.Tests/Clr/ReflectionUtilitiesTests.cs
@@ -309,7 +309,7 @@ namespace Umbraco.Tests.Clr
setterInt4(object4, 42);
Assert.AreEqual(42, object4.IntValue);
- // fixme the code below runs fine with ReSharper test running within VisualStudio
+ // FIXME: the code below runs fine with ReSharper test running within VisualStudio
// but it crashes when running via vstest.console.exe - unless some settings are required?
// converting works
@@ -552,7 +552,7 @@ namespace Umbraco.Tests.Clr
Assert.AreEqual(44, getter3(c));
}
- // fixme - missing tests specifying 'returned' on method, property
+ // FIXME: missing tests specifying 'returned' on method, property
[Test]
public void DeconstructAnonymousType()
diff --git a/src/Umbraco.Tests/Components/ComponentTests.cs b/src/Umbraco.Tests/Components/ComponentTests.cs
index a04636f919..390bb018da 100644
--- a/src/Umbraco.Tests/Components/ComponentTests.cs
+++ b/src/Umbraco.Tests/Components/ComponentTests.cs
@@ -23,7 +23,7 @@ namespace Umbraco.Tests.Components
private static IFactory MockFactory(Action> setup = null)
{
- // fixme use IUmbracoDatabaseFactory vs UmbracoDatabaseFactory, clean it all up!
+ // FIXME: use IUmbracoDatabaseFactory vs UmbracoDatabaseFactory, clean it all up!
var mock = new Mock();
@@ -444,7 +444,7 @@ namespace Umbraco.Tests.Components
#region TypeArray
- // fixme - move to Testing
+ // FIXME: move to Testing
private static Type[] TypeArray()
{
diff --git a/src/Umbraco.Tests/Composing/ContainerConformingTests.cs b/src/Umbraco.Tests/Composing/ContainerConformingTests.cs
index 21ea961636..86226b82e7 100644
--- a/src/Umbraco.Tests/Composing/ContainerConformingTests.cs
+++ b/src/Umbraco.Tests/Composing/ContainerConformingTests.cs
@@ -143,12 +143,11 @@ namespace Umbraco.Tests.Composing
}
[Test]
- public void SingletonServiceIsUnique() // fixme - but what is LightInject actually doing
+ public void SingletonServiceIsUnique() // FIXME: but what is LightInject actually doing
{
var register = GetRegister();
- // fixme
- // LightInject is 'unique' per serviceType+serviceName
+ // FIXME: LightInject is 'unique' per serviceType+serviceName
// but that's not how all containers work
// and we should not rely on it
// if we need unique, use RegisterUnique
diff --git a/src/Umbraco.Tests/CoreThings/UdiTests.cs b/src/Umbraco.Tests/CoreThings/UdiTests.cs
index 35080e8c24..c700b78c4b 100644
--- a/src/Umbraco.Tests/CoreThings/UdiTests.cs
+++ b/src/Umbraco.Tests/CoreThings/UdiTests.cs
@@ -22,7 +22,7 @@ namespace Umbraco.Tests.CoreThings
[SetUp]
public void SetUp()
{
- // fixme - bad in a unit test - but Udi has a static ctor that wants it?!
+ // FIXME: bad in a unit test - but Udi has a static ctor that wants it?!
var container = new Mock();
var globalSettings = SettingsForTests.GenerateMockGlobalSettings();
container.Setup(x => x.GetInstance(typeof(TypeLoader))).Returns(
diff --git a/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs b/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs
index 088ef6b54b..1c0b407ac6 100644
--- a/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs
+++ b/src/Umbraco.Tests/FrontEnd/UmbracoHelperTests.cs
@@ -406,7 +406,7 @@ namespace Umbraco.Tests.FrontEnd
private void SetUpDependencyContainer()
{
- // fixme - bad in a unit test - but Udi has a static ctor that wants it?!
+ // FIXME: bad in a unit test - but Udi has a static ctor that wants it?!
var container = new Mock();
var globalSettings = SettingsForTests.GenerateMockGlobalSettings();
diff --git a/src/Umbraco.Tests/IO/FileSystemsTests.cs b/src/Umbraco.Tests/IO/FileSystemsTests.cs
index 52de1bbcfa..1f98fd4443 100644
--- a/src/Umbraco.Tests/IO/FileSystemsTests.cs
+++ b/src/Umbraco.Tests/IO/FileSystemsTests.cs
@@ -122,7 +122,7 @@ namespace Umbraco.Tests.IO
}
- // fixme - don't make sense anymore
+ // FIXME: don't make sense anymore
/*
[Test]
public void Cannot_Get_InvalidFileSystem()
diff --git a/src/Umbraco.Tests/Logging/LogviewerTests.cs b/src/Umbraco.Tests/Logging/LogviewerTests.cs
index 2feac2ae5f..75e2c66a61 100644
--- a/src/Umbraco.Tests/Logging/LogviewerTests.cs
+++ b/src/Umbraco.Tests/Logging/LogviewerTests.cs
@@ -199,7 +199,7 @@ namespace Umbraco.Tests.Logging
Assert.IsNotNull(findItem, "We should have found the saved search, but get no results");
Assert.AreEqual(1, findItem.Count(), "Our list of searches should only contain one result");
- //TODO: Need someone to help me find out why these don't work
+ // TODO: Need someone to help me find out why these don't work
//CollectionAssert.Contains(searches, savedSearch, "Can not find the new search that was saved");
//Assert.That(searches, Contains.Item(savedSearch));
diff --git a/src/Umbraco.Tests/Manifest/ManifestParserTests.cs b/src/Umbraco.Tests/Manifest/ManifestParserTests.cs
index 4e791c0169..051c660c66 100644
--- a/src/Umbraco.Tests/Manifest/ManifestParserTests.cs
+++ b/src/Umbraco.Tests/Manifest/ManifestParserTests.cs
@@ -337,12 +337,12 @@ javascript: ['~/test.js',/*** some note about stuff asd09823-4**09234*/ '~/test2
Assert.AreEqual(2, config.Count);
Assert.IsTrue(config.ContainsKey("image"));
var c = config["image"];
- Assert.IsInstanceOf(c); // fixme - is this what we want?
+ Assert.IsInstanceOf(c); // FIXME: is this what we want?
Assert.IsTrue(config.ContainsKey("link"));
c = config["link"];
- Assert.IsInstanceOf(c); // fixme - is this what we want?
+ Assert.IsInstanceOf(c); // FIXME: is this what we want?
- // fixme - should we resolveUrl in configs?
+ // FIXME: should we resolveUrl in configs?
}
[Test]
diff --git a/src/Umbraco.Tests/Membership/MembershipProviderBaseTests.cs b/src/Umbraco.Tests/Membership/MembershipProviderBaseTests.cs
index f1f46133c3..091ea6f9a0 100644
--- a/src/Umbraco.Tests/Membership/MembershipProviderBaseTests.cs
+++ b/src/Umbraco.Tests/Membership/MembershipProviderBaseTests.cs
@@ -120,8 +120,7 @@ namespace Umbraco.Tests.Membership
Assert.Throws(() => provider.GetPassword("test", "test"));
}
- // fixme
- // in v7 this test relies on ApplicationContext.Current being null, which makes little
+ // FIXME: in v7 this test relies on ApplicationContext.Current being null, which makes little
// sense, not going to port the weird code in MembershipProviderBase.ResetPassword, so
// what shall we do?
[Test]
diff --git a/src/Umbraco.Tests/Misc/UriUtilityTests.cs b/src/Umbraco.Tests/Misc/UriUtilityTests.cs
index 42c69d3967..3dbd54c3a9 100644
--- a/src/Umbraco.Tests/Misc/UriUtilityTests.cs
+++ b/src/Umbraco.Tests/Misc/UriUtilityTests.cs
@@ -7,7 +7,7 @@ using Umbraco.Web;
namespace Umbraco.Tests.Misc
{
- // fixme - not testing virtual directory!
+ // FIXME: not testing virtual directory!
[TestFixture]
public class UriUtilityTests
diff --git a/src/Umbraco.Tests/Models/LightEntityTest.cs b/src/Umbraco.Tests/Models/LightEntityTest.cs
index 1ec9f05822..f1752a7681 100644
--- a/src/Umbraco.Tests/Models/LightEntityTest.cs
+++ b/src/Umbraco.Tests/Models/LightEntityTest.cs
@@ -42,7 +42,7 @@ namespace Umbraco.Tests.Models
var result = ss.ToStream(item);
var json = result.ResultStream.ToJsonString();
- Debug.Print(json); // fixme compare with v7
+ Debug.Print(json); // FIXME: compare with v7
}
}
}
diff --git a/src/Umbraco.Tests/Models/Mapping/ContentTypeModelMappingTests.cs b/src/Umbraco.Tests/Models/Mapping/ContentTypeModelMappingTests.cs
index b2d1440010..0de416ed72 100644
--- a/src/Umbraco.Tests/Models/Mapping/ContentTypeModelMappingTests.cs
+++ b/src/Umbraco.Tests/Models/Mapping/ContentTypeModelMappingTests.cs
@@ -32,7 +32,7 @@ namespace Umbraco.Tests.Models.Mapping
{
base.SetUp();
- // fixme - are we initializing mappers that... have already been?
+ // FIXME: are we initializing mappers that... have already been?
Mapper.Reset();
Mapper.Initialize(configuration =>
{
@@ -97,7 +97,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(display.CreateDate, result.CreateDate);
Assert.AreEqual(display.UpdateDate, result.UpdateDate);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(display.Groups.Count(), result.PropertyGroups.Count);
for (var i = 0; i < display.Groups.Count(); i++)
{
@@ -157,7 +157,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(display.CreateDate, result.CreateDate);
Assert.AreEqual(display.UpdateDate, result.UpdateDate);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(display.Groups.Count(), result.PropertyGroups.Count);
for (var i = 0; i < display.Groups.Count(); i++)
{
@@ -221,7 +221,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(display.CreateDate, result.CreateDate);
Assert.AreEqual(display.UpdateDate, result.UpdateDate);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(display.Groups.Count(), result.PropertyGroups.Count);
for (var i = 0; i < display.Groups.Count(); i++)
{
@@ -276,7 +276,7 @@ namespace Umbraco.Tests.Models.Mapping
//Assert
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(display.Groups.Count(x => x.Inherited == false), result.PropertyGroups.Count);
}
@@ -303,7 +303,7 @@ namespace Umbraco.Tests.Models.Mapping
//Assert
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(display.Groups.Count(x => x.Inherited == false), result.PropertyGroups.Count);
}
@@ -337,7 +337,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(memberType.CreateDate, result.CreateDate);
Assert.AreEqual(memberType.UpdateDate, result.UpdateDate);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(memberType.PropertyGroups.Count(), result.Groups.Count());
for (var i = 0; i < memberType.PropertyGroups.Count(); i++)
@@ -393,7 +393,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(mediaType.CreateDate, result.CreateDate);
Assert.AreEqual(mediaType.UpdateDate, result.UpdateDate);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(mediaType.PropertyGroups.Count(), result.Groups.Count());
for (var i = 0; i < mediaType.PropertyGroups.Count(); i++)
@@ -447,7 +447,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(contentType.UpdateDate, result.UpdateDate);
Assert.AreEqual(contentType.DefaultTemplate.Alias, result.DefaultTemplate.Alias);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(contentType.PropertyGroups.Count, result.Groups.Count());
for (var i = 0; i < contentType.PropertyGroups.Count; i++)
@@ -748,7 +748,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(contentType.CreateDate, result.CreateDate);
Assert.AreEqual(contentType.UpdateDate, result.UpdateDate);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(contentType.CompositionPropertyGroups.Select(x => x.Name).Distinct().Count(), result.Groups.Count(x => x.IsGenericProperties == false));
Assert.AreEqual(1, result.Groups.Count(x => x.IsGenericProperties));
@@ -830,7 +830,7 @@ namespace Umbraco.Tests.Models.Mapping
Assert.AreEqual(contentType.UpdateDate, result.UpdateDate);
Assert.AreEqual(contentType.DefaultTemplate.Alias, result.DefaultTemplate.Alias);
- //TODO: Now we need to assert all of the more complicated parts
+ // TODO: Now we need to assert all of the more complicated parts
Assert.AreEqual(contentType.CompositionPropertyGroups.Select(x => x.Name).Distinct().Count(), result.Groups.Count(x => x.IsGenericProperties == false));
Assert.AreEqual(1, result.Groups.Count(x => x.IsGenericProperties));
diff --git a/src/Umbraco.Tests/Models/Mapping/UserModelMapperTests.cs b/src/Umbraco.Tests/Models/Mapping/UserModelMapperTests.cs
index f1dea9b587..bdab736cd1 100644
--- a/src/Umbraco.Tests/Models/Mapping/UserModelMapperTests.cs
+++ b/src/Umbraco.Tests/Models/Mapping/UserModelMapperTests.cs
@@ -28,7 +28,7 @@ namespace Umbraco.Tests.Models.Mapping
var userGroupSave = JsonConvert.DeserializeObject(json.Replace("@@@ID@@@", userGroup.Id.ToString()));
// failed, AutoMapper complained, "Unable to cast object of type 'WhereSelectArrayIterator`2[System.Char,System.String]' to type 'System.Collections.IList'".
- // fixmed: added ToList() in UserGroupFactory
+ // FIXME: added ToList() in UserGroupFactory
Mapper.Map(userGroupSave, userGroup);
}
}
diff --git a/src/Umbraco.Tests/Packaging/CreatedPackagesRepositoryTests.cs b/src/Umbraco.Tests/Packaging/CreatedPackagesRepositoryTests.cs
index 010572abec..df4071281c 100644
--- a/src/Umbraco.Tests/Packaging/CreatedPackagesRepositoryTests.cs
+++ b/src/Umbraco.Tests/Packaging/CreatedPackagesRepositoryTests.cs
@@ -137,7 +137,7 @@ namespace Umbraco.Tests.Packaging
def = PackageBuilder.GetById(def.Id);
Assert.AreEqual("updated", def.Name);
Assert.AreEqual(2, def.Files.Count);
- //TODO: There's a whole lot more assertions to be done
+ // TODO: There's a whole lot more assertions to be done
}
@@ -191,7 +191,7 @@ namespace Umbraco.Tests.Packaging
Assert.AreEqual(" ", xml.Element("umbPackage").Element("Actions").ToString(SaveOptions.DisableFormatting));
- //TODO: There's a whole lot more assertions to be done
+ // TODO: There's a whole lot more assertions to be done
}
}
}
diff --git a/src/Umbraco.Tests/Packaging/PackageInstallationTest.cs b/src/Umbraco.Tests/Packaging/PackageInstallationTest.cs
index 4256a66a2d..731ce73d3d 100644
--- a/src/Umbraco.Tests/Packaging/PackageInstallationTest.cs
+++ b/src/Umbraco.Tests/Packaging/PackageInstallationTest.cs
@@ -126,7 +126,7 @@ namespace Umbraco.Tests.Packaging
Assert.AreEqual(1, preInstallWarnings.FilesReplaced.Count());
Assert.AreEqual("bin\\Auros.DocumentTypePicker.dll", preInstallWarnings.FilesReplaced.First());
- //TODO: More Asserts
+ // TODO: More Asserts
}
[Test]
diff --git a/src/Umbraco.Tests/Persistence/DatabaseContextTests.cs b/src/Umbraco.Tests/Persistence/DatabaseContextTests.cs
index 32689fe192..c276dc35ca 100644
--- a/src/Umbraco.Tests/Persistence/DatabaseContextTests.cs
+++ b/src/Umbraco.Tests/Persistence/DatabaseContextTests.cs
@@ -54,7 +54,7 @@ namespace Umbraco.Tests.Persistence
}
[Test]
- public void CreateDatabase() // fixme - move to DatabaseBuilderTest!
+ public void CreateDatabase() // FIXME: move to DatabaseBuilderTest!
{
var path = TestHelper.CurrentAssemblyDirectory;
AppDomain.CurrentDomain.SetData("DataDirectory", path);
diff --git a/src/Umbraco.Tests/Persistence/NPocoTests/NPocoBulkInsertTests.cs b/src/Umbraco.Tests/Persistence/NPocoTests/NPocoBulkInsertTests.cs
index 3503318888..2a6c1f4e12 100644
--- a/src/Umbraco.Tests/Persistence/NPocoTests/NPocoBulkInsertTests.cs
+++ b/src/Umbraco.Tests/Persistence/NPocoTests/NPocoBulkInsertTests.cs
@@ -12,7 +12,7 @@ using Umbraco.Tests.Testing;
namespace Umbraco.Tests.Persistence.NPocoTests
{
- // fixme.npoco - is this still appropriate?
+ // FIXME: npoco - is this still appropriate?
//
[TestFixture]
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)]
diff --git a/src/Umbraco.Tests/Persistence/NPocoTests/NPocoFetchTests.cs b/src/Umbraco.Tests/Persistence/NPocoTests/NPocoFetchTests.cs
index 64bc825c3e..9ee50d1230 100644
--- a/src/Umbraco.Tests/Persistence/NPocoTests/NPocoFetchTests.cs
+++ b/src/Umbraco.Tests/Persistence/NPocoTests/NPocoFetchTests.cs
@@ -370,7 +370,7 @@ namespace Umbraco.Tests.Persistence.NPocoTests
var sql = scope.SqlContext.Sql()
.Select()
- .Append(", COUNT(zbThing2Group.groupId) AS groupCount") // fixme
+ .Append(", COUNT(zbThing2Group.groupId) AS groupCount") // FIXME:
.From()
.InnerJoin().On((t, t2g) => t.Id == t2g.ThingId)
.GroupBy(x => x.Id, x => x.Name);
diff --git a/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs b/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs
index db3b02bacf..f558a64499 100644
--- a/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs
+++ b/src/Umbraco.Tests/Persistence/NPocoTests/PetaPocoCachesTest.cs
@@ -15,7 +15,7 @@ using Umbraco.Tests.Testing;
namespace Umbraco.Tests.Persistence.NPocoTests
{
- // fixme.npoco - what shall we do with those tests?
+ // FIXME: npoco - what shall we do with those tests?
//
[TestFixture, Ignore("fixme - ignored test")]
[UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)]
diff --git a/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
index 03701dd3b5..96809c7bf6 100644
--- a/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
+++ b/src/Umbraco.Tests/Persistence/Repositories/ContentTypeRepositoryTest.cs
@@ -59,7 +59,7 @@ namespace Umbraco.Tests.Persistence.Repositories
return new EntityContainerRepository(scopeAccessor, AppCaches.Disabled, Logger, containerEntityType);
}
- //TODO Add test to verify SetDefaultTemplates updates both AllowedTemplates and DefaultTemplate(id).
+ // TODO: Add test to verify SetDefaultTemplates updates both AllowedTemplates and DefaultTemplate(id).
[Test]
public void Maps_Templates_Correctly()
diff --git a/src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs
index b7f354a2fb..b140aa078e 100644
--- a/src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs
+++ b/src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs
@@ -230,7 +230,7 @@ namespace Umbraco.Tests.Persistence.Repositories
//now remove a few rules from a few of the items and then add some more, this will put things 'out of order' which
//we need to verify our sort order is working for the relator
- // fixme - no "relator" in v8?!
+ // FIXME: no "relator" in v8?!
for (int i = 0; i < allEntries.Count; i++)
{
//all the even ones
diff --git a/src/Umbraco.Tests/Persistence/Repositories/RedirectUrlRepositoryTests.cs b/src/Umbraco.Tests/Persistence/Repositories/RedirectUrlRepositoryTests.cs
index 66f6655c77..652209b65b 100644
--- a/src/Umbraco.Tests/Persistence/Repositories/RedirectUrlRepositoryTests.cs
+++ b/src/Umbraco.Tests/Persistence/Repositories/RedirectUrlRepositoryTests.cs
@@ -73,7 +73,7 @@ namespace Umbraco.Tests.Persistence.Repositories
Assert.AreNotEqual(0, rurl.Id);
- // fixme - too fast = same date = key violation?
+ // FIXME: too fast = same date = key violation?
// and... can that happen in real life?
// we don't really *care* about the IX, only supposed to make things faster...
// BUT in realife we AddOrUpdate in a trx so it should be safe, always
@@ -119,7 +119,7 @@ namespace Umbraco.Tests.Persistence.Repositories
Assert.AreNotEqual(0, rurl.Id);
- // fixme - goes too fast and bam, errors, first is blah
+ // FIXME: goes too fast and bam, errors, first is blah
rurl = new RedirectUrl
{
diff --git a/src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs
index b927d23740..6acd63b2b3 100644
--- a/src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs
+++ b/src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs
@@ -454,7 +454,7 @@ namespace Umbraco.Tests.Persistence.Repositories
contentType.PropertyTypes.First().Id,
tags, false);
- //TODO: This would be nice to be able to map the ids back but unfortunately we are not doing this
+ // TODO: This would be nice to be able to map the ids back but unfortunately we are not doing this
//var result = repository.GetAll(new[] {tags[0].Id, tags[1].Id, tags[2].Id});
var all = repository.GetMany().ToArray();
diff --git a/src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs b/src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
index 4ee6ecf9e3..779ec45a35 100644
--- a/src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
+++ b/src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
@@ -234,8 +234,7 @@ namespace Umbraco.Tests.Persistence.Repositories
// Act
var updatedItem = repository.Get(user.Id);
- // fixme
- // this test cannot work, user has 2 sections but the way it's created,
+ // FIXME: this test cannot work, user has 2 sections but the way it's created,
// they don't show, so the comparison with updatedItem fails - fix!
// Assert
diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs
index 42703f9bae..ac1c57d409 100644
--- a/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs
+++ b/src/Umbraco.Tests/PublishedContent/PublishedContentLanguageVariantTests.cs
@@ -335,7 +335,7 @@ namespace Umbraco.Tests.PublishedContent
{
var content = UmbracoContext.Current.ContentCache.GetAtRoot().First().Children.First();
- // hack the value, pretend the converter would return something
+ // HACK: the value, pretend the converter would return something
var prop = content.GetProperty("welcomeText") as SolidPublishedPropertyWithLanguageVariants;
Assert.IsNotNull(prop);
prop.SetValue("nl", "nope"); // HasValue false but getting value returns this
diff --git a/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs b/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
index d18c6b6668..c5bcd29589 100644
--- a/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
+++ b/src/Umbraco.Tests/PublishedContent/PublishedContentTestBase.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Tests.PublishedContent
{
base.Compose();
- // fixme - what about the if (PropertyValueConvertersResolver.HasCurrent == false) ??
+ // FIXME: what about the if (PropertyValueConvertersResolver.HasCurrent == false) ??
// can we risk double - registering and then, what happens?
Composition.WithCollectionBuilder()
diff --git a/src/Umbraco.Tests/Publishing/PublishingStrategyTests.cs b/src/Umbraco.Tests/Publishing/PublishingStrategyTests.cs
index 2d14aa1c08..0b98ec64b6 100644
--- a/src/Umbraco.Tests/Publishing/PublishingStrategyTests.cs
+++ b/src/Umbraco.Tests/Publishing/PublishingStrategyTests.cs
@@ -28,7 +28,7 @@ namespace Umbraco.Tests.Publishing
[Test]
public void Can_Publish_And_Update_Xml_Cache()
{
- //TODO Create new test
+ // TODO: Create new test
}
public IEnumerable CreateTestData()
diff --git a/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs
index 4059cb1858..2aa01916fb 100644
--- a/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs
+++ b/src/Umbraco.Tests/Routing/ContentFinderByAliasTests.cs
@@ -9,7 +9,7 @@ using Umbraco.Web.Routing;
namespace Umbraco.Tests.Routing
{
- //TODO: We should be able to decouple this from the base db tests since we're just mocking the services now
+ // TODO: We should be able to decouple this from the base db tests since we're just mocking the services now
[TestFixture]
public class ContentFinderByAliasTests : UrlRoutingTestBase
diff --git a/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs
index 8bbd7c6679..c1abb5a3a5 100644
--- a/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs
+++ b/src/Umbraco.Tests/Routing/ContentFinderByPageIdQueryTests.cs
@@ -10,9 +10,9 @@ namespace Umbraco.Tests.Routing
{
[TestCase("/?umbPageId=1046", 1046)]
[TestCase("/?UMBPAGEID=1046", 1046)]
- [TestCase("/default.aspx?umbPageId=1046", 1046)] //TODO: Should this match??
- [TestCase("/some/other/page?umbPageId=1046", 1046)] //TODO: Should this match??
- [TestCase("/some/other/page.aspx?umbPageId=1046", 1046)] //TODO: Should this match??
+ [TestCase("/default.aspx?umbPageId=1046", 1046)] // TODO: Should this match??
+ [TestCase("/some/other/page?umbPageId=1046", 1046)] // TODO: Should this match??
+ [TestCase("/some/other/page.aspx?umbPageId=1046", 1046)] // TODO: Should this match??
public void Lookup_By_Page_Id(string urlAsString, int nodeMatch)
{
var umbracoContext = GetUmbracoContext(urlAsString);
diff --git a/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs b/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs
index fa8beea2c2..85168e4490 100644
--- a/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs
+++ b/src/Umbraco.Tests/Routing/ContentFinderByUrlTests.cs
@@ -39,7 +39,7 @@ namespace Umbraco.Tests.Routing
Assert.IsTrue(Current.Configs.Global().HideTopLevelNodeFromPath);
- // fixme debugging - going further down, the routes cache is NOT empty?!
+ // FIXME: debugging - going further down, the routes cache is NOT empty?!
if (urlString == "/home/sub1")
System.Diagnostics.Debugger.Break();
diff --git a/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs b/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs
index 8e9e52258c..46b10929cf 100644
--- a/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs
+++ b/src/Umbraco.Tests/Routing/GetContentUrlsTests.cs
@@ -45,7 +45,7 @@ namespace Umbraco.Tests.Routing
{
var contentType = MockedContentTypes.CreateBasicContentType();
var content = MockedContent.CreateBasicContent(contentType);
- content.Id = 1046; //fixme: we are using this ID only because it's built into the test XML published cache
+ content.Id = 1046; // FIXME: we are using this ID only because it's built into the test XML published cache
content.Path = "-1,1046";
var umbContext = GetUmbracoContext("http://localhost:8000");
@@ -66,7 +66,7 @@ namespace Umbraco.Tests.Routing
{
var contentType = MockedContentTypes.CreateBasicContentType();
var content = MockedContent.CreateBasicContent(contentType);
- content.Id = 1046; //fixme: we are using this ID only because it's built into the test XML published cache
+ content.Id = 1046; // FIXME: we are using this ID only because it's built into the test XML published cache
content.Path = "-1,1046";
content.Published = true;
@@ -92,13 +92,13 @@ namespace Umbraco.Tests.Routing
{
var contentType = MockedContentTypes.CreateBasicContentType();
var parent = MockedContent.CreateBasicContent(contentType);
- parent.Id = 1046; //fixme: we are using this ID only because it's built into the test XML published cache
+ parent.Id = 1046; // FIXME: we are using this ID only because it's built into the test XML published cache
parent.Name = "home";
parent.Path = "-1,1046";
parent.Published = true;
var child = MockedContent.CreateBasicContent(contentType);
child.Name = "sub1";
- child.Id = 1173; //fixme: we are using this ID only because it's built into the test XML published cache
+ child.Id = 1173; // FIXME: we are using this ID only because it's built into the test XML published cache
child.Path = "-1,1046,1173";
child.Published = true;
@@ -119,7 +119,7 @@ namespace Umbraco.Tests.Routing
Assert.IsTrue(urls[0].IsUrl);
}
- //TODO: We need a lot of tests here, the above was just to get started with being able to unit test this method
+ // TODO: We need a lot of tests here, the above was just to get started with being able to unit test this method
// * variant URLs without domains assigned, what happens?
// * variant URLs with domains assigned, but also having more languages installed than there are domains/cultures assigned
// * variant URLs with an ancestor culture unpublished
diff --git a/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs b/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs
index e681c8556d..569f5382e8 100644
--- a/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs
+++ b/src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs
@@ -57,7 +57,7 @@ namespace Umbraco.Tests.Routing
base.Compose();
// set the default RenderMvcController
- Current.DefaultRenderMvcControllerType = typeof(RenderMvcController); // fixme WRONG!
+ Current.DefaultRenderMvcControllerType = typeof(RenderMvcController); // FIXME: Wrong!
var surfaceControllerTypes = new SurfaceControllerTypeCollection(Composition.TypeLoader.GetSurfaceControllers());
Composition.RegisterUnique(surfaceControllerTypes);
@@ -110,7 +110,7 @@ namespace Umbraco.Tests.Routing
//test all template name styles to match the ActionName
- //[TestCase("home-\\234^^*32page")] //TODO: This fails!
+ //[TestCase("home-\\234^^*32page")] // TODO: This fails!
[TestCase("home-page")]
[TestCase("home-page")]
[TestCase("home-page")]
diff --git a/src/Umbraco.Tests/Routing/RoutesCacheTests.cs b/src/Umbraco.Tests/Routing/RoutesCacheTests.cs
index 68e80076dd..76c2a45ab2 100644
--- a/src/Umbraco.Tests/Routing/RoutesCacheTests.cs
+++ b/src/Umbraco.Tests/Routing/RoutesCacheTests.cs
@@ -22,7 +22,7 @@ namespace Umbraco.Tests.Routing
var cache = umbracoContext.PublishedSnapshot.Content as PublishedContentCache;
if (cache == null) throw new Exception("Unsupported IPublishedContentCache, only the Xml one is supported.");
- // fixme not sure?
+ // FIXME: not sure?
//PublishedContentCache.UnitTesting = false; // else does not write to routes cache
//Assert.IsFalse(PublishedContentCache.UnitTesting);
diff --git a/src/Umbraco.Tests/Routing/UmbracoModuleTests.cs b/src/Umbraco.Tests/Routing/UmbracoModuleTests.cs
index c87a02f43a..6d7668ceab 100644
--- a/src/Umbraco.Tests/Routing/UmbracoModuleTests.cs
+++ b/src/Umbraco.Tests/Routing/UmbracoModuleTests.cs
@@ -28,7 +28,7 @@ namespace Umbraco.Tests.Routing
{
base.SetUp();
- // fixme - be able to get the UmbracoModule from the container. any reason settings were from testobjects?
+ // FIXME: be able to get the UmbracoModule from the container. any reason settings were from testobjects?
//create the module
var logger = Mock.Of();
var globalSettings = TestObjects.GetGlobalSettings();
@@ -44,7 +44,7 @@ namespace Umbraco.Tests.Routing
new UrlProviderCollection(new IUrlProvider[0]),
runtime,
logger,
- null, // fixme - PublishedRouter complexities...
+ null, // FIXME: PublishedRouter complexities...
Mock.Of()
);
diff --git a/src/Umbraco.Tests/Runtimes/CoreRuntimeTests.cs b/src/Umbraco.Tests/Runtimes/CoreRuntimeTests.cs
index c894659865..ee3bca42e9 100644
--- a/src/Umbraco.Tests/Runtimes/CoreRuntimeTests.cs
+++ b/src/Umbraco.Tests/Runtimes/CoreRuntimeTests.cs
@@ -110,7 +110,7 @@ namespace Umbraco.Tests.Runtimes
return configs;
}
- // fixme so how the f* should we do it now?
+ // FIXME: so how the f* should we do it now?
/*
// pretend we have the proper migration
// else BootFailedException because our mock IUmbracoDatabaseFactory does not provide databases
diff --git a/src/Umbraco.Tests/Runtimes/StandaloneTests.cs b/src/Umbraco.Tests/Runtimes/StandaloneTests.cs
index 3a52eea17c..3790a49cfc 100644
--- a/src/Umbraco.Tests/Runtimes/StandaloneTests.cs
+++ b/src/Umbraco.Tests/Runtimes/StandaloneTests.cs
@@ -53,13 +53,13 @@ namespace Umbraco.Tests.Runtimes
// settings
// reset the current version to 0.0.0, clear connection strings
ConfigurationManager.AppSettings["umbracoConfigurationStatus"] = "";
- // fixme we need a better management of settings here (and, true config files?)
+ // FIXME: we need a better management of settings here (and, true config files?)
// create the very basic and essential things we need
var logger = new ConsoleLogger();
var profiler = new LogProfiler(logger);
var profilingLogger = new ProfilingLogger(logger, profiler);
- var appCaches = new AppCaches(); // fixme has HttpRuntime stuff?
+ var appCaches = new AppCaches(); // FIXME: has HttpRuntime stuff?
var databaseFactory = new UmbracoDatabaseFactory(logger, new Lazy(() => factory.GetInstance()));
var typeLoader = new TypeLoader(appCaches.RuntimeCache, LocalTempStorage.Default, profilingLogger);
var mainDom = new SimpleMainDom();
@@ -87,7 +87,7 @@ namespace Umbraco.Tests.Runtimes
composers.Compose();
// must registers stuff that WebRuntimeComponent would register otherwise
- // fixme UmbracoContext creates a snapshot that it does not register with the accessor
+ // FIXME: UmbracoContext creates a snapshot that it does not register with the accessor
// and so, we have to use the UmbracoContextPublishedSnapshotAccessor
// the UmbracoContext does not know about the accessor
// else that would be a catch-22 where they both know about each other?
@@ -177,7 +177,7 @@ namespace Umbraco.Tests.Runtimes
Assert.AreEqual("test", content.Name);
// need an UmbracoCOntext to access the cache
- // fixme - not exactly pretty, should not depend on HttpContext
+ // FIXME: not exactly pretty, should not depend on HttpContext
var httpContext = Mock.Of();
var withUmbracoContext = UmbracoContext.EnsureContext(httpContext);
var umbracoContext = Umbraco.Web.Composing.Current.UmbracoContext;
diff --git a/src/Umbraco.Tests/Scoping/PassThroughEventDispatcherTests.cs b/src/Umbraco.Tests/Scoping/PassThroughEventDispatcherTests.cs
index 68e69f4cd6..c955f88f67 100644
--- a/src/Umbraco.Tests/Scoping/PassThroughEventDispatcherTests.cs
+++ b/src/Umbraco.Tests/Scoping/PassThroughEventDispatcherTests.cs
@@ -11,7 +11,7 @@ namespace Umbraco.Tests.Scoping
[NUnit.Framework.Ignore("Cannot dispatch events on NoScope!")]
public class PassThroughEventDispatcherTests
{
- // fixme so... should we remove, or enable, these tests?
+ // FIXME: so... should we remove, or enable, these tests?
// [Test]
// public void TriggersCancelableEvents()
diff --git a/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs b/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
index e8f3463ca7..d70b736bc2 100644
--- a/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
+++ b/src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
@@ -43,7 +43,7 @@ namespace Umbraco.Tests.Scoping
// the cache refresher component needs to trigger to refresh caches
// but then, it requires a lot of plumbing ;(
- // fixme - and we cannot inject a DistributedCache yet
+ // FIXME: and we cannot inject a DistributedCache yet
// so doing all this mess
Composition.RegisterUnique();
Composition.RegisterUnique(f => Mock.Of());
diff --git a/src/Umbraco.Tests/Scoping/ScopedRepositoryTests.cs b/src/Umbraco.Tests/Scoping/ScopedRepositoryTests.cs
index dee7a99ad0..b85a79f326 100644
--- a/src/Umbraco.Tests/Scoping/ScopedRepositoryTests.cs
+++ b/src/Umbraco.Tests/Scoping/ScopedRepositoryTests.cs
@@ -29,7 +29,7 @@ namespace Umbraco.Tests.Scoping
// the cache refresher component needs to trigger to refresh caches
// but then, it requires a lot of plumbing ;(
- // fixme - and we cannot inject a DistributedCache yet
+ // FIXME: and we cannot inject a DistributedCache yet
// so doing all this mess
Composition.RegisterUnique();
Composition.RegisterUnique(f => Mock.Of());
diff --git a/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs b/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs
index 568bafa4e6..11479ea3eb 100644
--- a/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs
+++ b/src/Umbraco.Tests/Scoping/ScopedXmlTests.cs
@@ -32,7 +32,7 @@ namespace Umbraco.Tests.Scoping
// the cache refresher component needs to trigger to refresh caches
// but then, it requires a lot of plumbing ;(
- // fixme - and we cannot inject a DistributedCache yet
+ // FIXME: and we cannot inject a DistributedCache yet
// so doing all this mess
Composition.RegisterUnique();
Composition.RegisterUnique(f => Mock.Of());
diff --git a/src/Umbraco.Tests/Security/BackOfficeCookieManagerTests.cs b/src/Umbraco.Tests/Security/BackOfficeCookieManagerTests.cs
index 23e5e472a3..f0409d8928 100644
--- a/src/Umbraco.Tests/Security/BackOfficeCookieManagerTests.cs
+++ b/src/Umbraco.Tests/Security/BackOfficeCookieManagerTests.cs
@@ -69,6 +69,6 @@ namespace Umbraco.Tests.Security
Assert.IsTrue(result);
}
- //TODO : Write remaining tests for `ShouldAuthenticateRequest`
+ // TODO: Write remaining tests for `ShouldAuthenticateRequest`
}
}
diff --git a/src/Umbraco.Tests/Services/ContentServiceTagsTests.cs b/src/Umbraco.Tests/Services/ContentServiceTagsTests.cs
index 62a3526af5..5e97bea2c1 100644
--- a/src/Umbraco.Tests/Services/ContentServiceTagsTests.cs
+++ b/src/Umbraco.Tests/Services/ContentServiceTagsTests.cs
@@ -35,7 +35,7 @@ namespace Umbraco.Tests.Services
{
base.Compose();
- // fixme - do it differently
+ // FIXME: do it differently
Composition.Register(factory => factory.GetInstance().TextService);
}
@@ -392,11 +392,11 @@ namespace Umbraco.Tests.Services
propertyType.Variations = ContentVariation.Nothing;
contentTypeService.Save(contentType);
- //fixme: This throws due to index violations
+ // FIXME: This throws due to index violations
propertyType.Variations = ContentVariation.Culture;
contentTypeService.Save(contentType);
- //TODO: Assert results
+ // TODO: Assert results
}
[Test]
@@ -526,7 +526,7 @@ namespace Umbraco.Tests.Services
tags = tagService.GetTagsForEntity(content1.Id);
Assert.AreEqual(5, tags.Count());
- // fixme tag & tree issue
+ // FIXME: tag & tree issue
// when we publish, we 'just' publish the top one and not the ones below = fails
// what we should do is... NOT clear tags when unpublishing or trashing or...
// and just update the tag service to NOT return anything related to trashed or
@@ -593,7 +593,7 @@ namespace Umbraco.Tests.Services
var tags = tagService.GetTagsForEntity(content1.Id);
Assert.AreEqual(0, tags.Count());
- // fixme tag & tree issue
+ // FIXME: tag & tree issue
// when we (un)publish, we 'just' publish the top one and not the ones below = fails
// see similar note above
tags = tagService.GetTagsForEntity(content2.Id);
diff --git a/src/Umbraco.Tests/Services/ContentServiceTests.cs b/src/Umbraco.Tests/Services/ContentServiceTests.cs
index 039bcaed24..75eb01e0e3 100644
--- a/src/Umbraco.Tests/Services/ContentServiceTests.cs
+++ b/src/Umbraco.Tests/Services/ContentServiceTests.cs
@@ -38,8 +38,8 @@ namespace Umbraco.Tests.Services
Logger = UmbracoTestOptions.Logger.Console)]
public class ContentServiceTests : TestWithSomeContentBase
{
- //TODO Add test to verify there is only ONE newest document/content in {Constants.DatabaseSchema.Tables.Document} table after updating.
- //TODO Add test to delete specific version (with and without deleting prior versions) and versions by date.
+ // TODO: Add test to verify there is only ONE newest document/content in {Constants.DatabaseSchema.Tables.Document} table after updating.
+ // TODO: Add test to delete specific version (with and without deleting prior versions) and versions by date.
public override void SetUp()
{
@@ -2422,13 +2422,13 @@ namespace Umbraco.Tests.Services
Assert.IsFalse(content.Published);
Assert.IsTrue(content.Edited);
- // fixme - depending on 1 line in ContentBaseFactory.BuildEntity
+ // FIXME: depending on 1 line in ContentBaseFactory.BuildEntity
// the published infos can be gone or not
// if gone, it's not consistent with above
Assert.AreEqual(vpk, ((Content) content).VersionId);
Assert.AreEqual(ppk, ((Content) content).PublishedVersionId); // still there
- // fixme - depending on 1 line in ContentRepository.MapDtoToContent
+ // FIXME: depending on 1 line in ContentRepository.MapDtoToContent
// the published values can be null or not
// if null, it's not consistent with above
//Assert.IsNull(content.GetValue("title", published: true));
@@ -2444,7 +2444,7 @@ namespace Umbraco.Tests.Services
//
//contentService.SaveAndPublish(content);
- // fixme - what shall we do of all this?
+ // FIXME: what shall we do of all this?
/*
// this basically republishes a content
// what if it never was published?
@@ -2455,11 +2455,11 @@ namespace Umbraco.Tests.Services
Assert.IsTrue(content.Published);
Assert.IsFalse(content.Edited);
- // fixme - should it be 2 or 3
+ // FIXME: should it be 2 or 3
versions = contentService.GetVersions(content.Id);
Assert.AreEqual(2, versions.Count());
- // fixme - now test rollbacks
+ // FIXME: now test rollbacks
var version = contentService.GetByVersion(content.Id); // test that it gets a version - should be GetVersion
var previousVersion = contentService.GetVersions(content.Id).Skip(1).FirstOrDefault(); // need an optimized way to do this
content.CopyValues(version); // copies the edited value - always
@@ -2498,7 +2498,7 @@ namespace Umbraco.Tests.Services
//the name will be set to the default culture variant name
Assert.AreEqual("name-us", content.Name);
- //fixme - should we always sync the invariant name even on update? see EnsureInvariantNameValues
+ // FIXME: should we always sync the invariant name even on update? see EnsureInvariantNameValues
////updating the default culture variant name should also update the invariant name so they stay in sync
//content.SetName("name-us-2", langUk.IsoCode);
//contentService.Save(content);
@@ -2663,7 +2663,7 @@ namespace Umbraco.Tests.Services
var contentType = contentTypeService.Get("umbTextpage");
contentType.Variations = ContentVariation.Culture;
contentType.AddPropertyType(new PropertyType(Constants.PropertyEditors.Aliases.TextBox, ValueStorageType.Nvarchar, "prop") { Variations = ContentVariation.Culture });
- // fixme add test w/ an invariant prop
+ // FIXME: add test w/ an invariant prop
contentTypeService.Save(contentType);
var contentService = ServiceContext.ContentService;
diff --git a/src/Umbraco.Tests/Services/MemberServiceTests.cs b/src/Umbraco.Tests/Services/MemberServiceTests.cs
index 13cde1c659..0c9c543b0d 100644
--- a/src/Umbraco.Tests/Services/MemberServiceTests.cs
+++ b/src/Umbraco.Tests/Services/MemberServiceTests.cs
@@ -33,7 +33,7 @@ namespace Umbraco.Tests.Services
{
base.SetUp();
- //hack! but we have no choice until we remove the SavePassword method from IMemberService
+ // HACK: but we have no choice until we remove the SavePassword method from IMemberService
var providerMock = new Mock(ServiceContext.MemberService, ServiceContext.MemberTypeService) { CallBase = true };
providerMock.Setup(@base => @base.AllowManuallyChangingPassword).Returns(false);
providerMock.Setup(@base => @base.PasswordFormat).Returns(MembershipPasswordFormat.Hashed);
diff --git a/src/Umbraco.Tests/Services/PerformanceTests.cs b/src/Umbraco.Tests/Services/PerformanceTests.cs
index 09743b350f..7d73d95e74 100644
--- a/src/Umbraco.Tests/Services/PerformanceTests.cs
+++ b/src/Umbraco.Tests/Services/PerformanceTests.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Tests.Services
[NUnit.Framework.Ignore("These should not be run by the server, only directly as they are only benchmark tests")]
public class PerformanceTests : TestWithDatabaseBase
{
- // fixme probably making little sense in places due to scope creating a transaction?!
+ // FIXME: probably making little sense in places due to scope creating a transaction?!
protected override string GetDbConnectionString()
{
diff --git a/src/Umbraco.Tests/Services/SectionServiceTests.cs b/src/Umbraco.Tests/Services/SectionServiceTests.cs
index 84eb0d1cbc..d6bf26184b 100644
--- a/src/Umbraco.Tests/Services/SectionServiceTests.cs
+++ b/src/Umbraco.Tests/Services/SectionServiceTests.cs
@@ -48,7 +48,7 @@ namespace Umbraco.Tests.Services
};
userGroupA.AddAllowedSection("media");
userGroupA.AddAllowedSection("settings");
- //TODO: This is failing the test
+ // TODO: This is failing the test
ServiceContext.UserService.Save(userGroupA, new[] { user.Id }, false);
var userGroupB = new UserGroup
diff --git a/src/Umbraco.Tests/Strings/DefaultShortStringHelperTests.cs b/src/Umbraco.Tests/Strings/DefaultShortStringHelperTests.cs
index 0d39fcc9e5..5fd5710a79 100644
--- a/src/Umbraco.Tests/Strings/DefaultShortStringHelperTests.cs
+++ b/src/Umbraco.Tests/Strings/DefaultShortStringHelperTests.cs
@@ -68,7 +68,7 @@ namespace Umbraco.Tests.Strings
BreakTermsOnUpper = true
}));
- // fixme - move to a "compose" thing?
+ // FIXME: move to a "compose" thing?
Composition.RegisterUnique(f => _helper);
}
@@ -337,8 +337,8 @@ namespace Umbraco.Tests.Strings
}));
Assert.AreEqual("house*2", helper.CleanString("house (2)", CleanStringType.Alias));
- // FIXME but for a filename we want to keep them!
- // FIXME and what about a url?
+ // FIXME: but for a filename we want to keep them!
+ // FIXME: and what about a url?
}
[Test]
@@ -442,8 +442,8 @@ namespace Umbraco.Tests.Strings
// E is a word (too short to be an acronym)
// FF is an acronym
- // FIXME "C" can't be an acronym
- // FIXME "DBXreview" = acronym?!
+ // FIXME: "C" can't be an acronym
+ // FIXME: "DBXreview" = acronym?!
Assert.AreEqual("aaa BBB CCc Ddd E FF", helper.CleanString("aaa BBB CCc Ddd E FF", CleanStringType.Alias)); // unchanged
Assert.AreEqual("aaa Bbb Ccc Ddd E FF", helper.CleanString("aaa BBB CCc Ddd E FF", CleanStringType.Alias | CleanStringType.CamelCase));
diff --git a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs
index 5978820601..602b5907d8 100644
--- a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs
+++ b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestControllerActivatorBase.cs
@@ -64,7 +64,7 @@ namespace Umbraco.Tests.TestHelpers.ControllerTesting
var globalSettings = SettingsForTests.GenerateMockGlobalSettings();
- // fixme v8?
+ // FIXME: v8?
////new app context
//var dbCtx = new Mock(Mock.Of(), Mock.Of(), Mock.Of(), "test");
////ensure these are set so that the appctx is 'Configured'
diff --git a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs
index 6ba6b672db..95b5a3bfeb 100644
--- a/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs
+++ b/src/Umbraco.Tests/TestHelpers/ControllerTesting/TestStartup.cs
@@ -29,7 +29,7 @@ namespace Umbraco.Tests.TestHelpers.ControllerTesting
{
var httpConfig = new HttpConfiguration();
- //TODO: Enable this if you can't see the errors produced
+ // TODO: Enable this if you can't see the errors produced
//var traceWriter = httpConfig.EnableSystemDiagnosticsTracing();
//traceWriter.IsVerbose = true;
//traceWriter.MinimumLevel = TraceLevel.Debug;
diff --git a/src/Umbraco.Tests/TestHelpers/SettingsForTests.cs b/src/Umbraco.Tests/TestHelpers/SettingsForTests.cs
index cfd935cd82..37be4aea6d 100644
--- a/src/Umbraco.Tests/TestHelpers/SettingsForTests.cs
+++ b/src/Umbraco.Tests/TestHelpers/SettingsForTests.cs
@@ -129,7 +129,7 @@ namespace Umbraco.Tests.TestHelpers
{
if (_defaultUmbracoSettings == null)
{
- //TODO: Just make this mocks instead of reading from the config
+ // TODO: Just make this mocks instead of reading from the config
var config = new FileInfo(TestHelper.MapPathForTest("~/Configurations/UmbracoSettings/web.config"));
diff --git a/src/Umbraco.Tests/TestHelpers/TestHelper.cs b/src/Umbraco.Tests/TestHelpers/TestHelper.cs
index b6f597bf46..dc692af36a 100644
--- a/src/Umbraco.Tests/TestHelpers/TestHelper.cs
+++ b/src/Umbraco.Tests/TestHelpers/TestHelper.cs
@@ -98,7 +98,7 @@ namespace Umbraco.Tests.TestHelpers
File.Delete(umbracoSettingsFile);
}
- // fixme obsolete the dateTimeFormat thing and replace with dateDelta
+ // FIXME: obsolete the dateTimeFormat thing and replace with dateDelta
public static void AssertPropertyValuesAreEqual(object actual, object expected, string dateTimeFormat = null, Func sorter = null, string[] ignoreProperties = null)
{
const int dateDeltaMilliseconds = 500; // .5s
diff --git a/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs b/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs
index c56eae9cd8..660d0f201e 100644
--- a/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs
+++ b/src/Umbraco.Tests/TestHelpers/TestObjects-Mocks.cs
@@ -55,7 +55,7 @@ namespace Umbraco.Tests.TestHelpers
/// A ServiceContext.
public ServiceContext GetServiceContextMock(IFactory container = null)
{
- // fixme - else some tests break - figure it out
+ // FIXME: else some tests break - figure it out
container = null;
return ServiceContext.CreatePartial(
@@ -125,8 +125,8 @@ namespace Umbraco.Tests.TestHelpers
public IUmbracoSettingsSection GetUmbracoSettings()
{
- //fixme Why not use the SettingsForTest.GenerateMock ... ?
- //fixme Shouldn't we use the default ones so they are the same instance for each test?
+ // FIXME: Why not use the SettingsForTest.GenerateMock ... ?
+ // FIXME: Shouldn't we use the default ones so they are the same instance for each test?
var umbracoSettingsMock = new Mock();
var webRoutingSectionMock = new Mock();
diff --git a/src/Umbraco.Tests/TestHelpers/TestObjects.cs b/src/Umbraco.Tests/TestHelpers/TestObjects.cs
index 109860146c..7a9702031b 100644
--- a/src/Umbraco.Tests/TestHelpers/TestObjects.cs
+++ b/src/Umbraco.Tests/TestHelpers/TestObjects.cs
@@ -236,9 +236,9 @@ namespace Umbraco.Tests.TestHelpers
{
if (databaseFactory == null)
{
- //var mappersBuilder = new MapperCollectionBuilder(Current.Container); // fixme
- //mappersBuilder.AddCore();
- //var mappers = mappersBuilder.CreateCollection();
+ // var mappersBuilder = new MapperCollectionBuilder(Current.Container); // FIXME:
+ // mappersBuilder.AddCore();
+ // var mappers = mappersBuilder.CreateCollection();
var mappers = Current.Factory.GetInstance();
databaseFactory = new UmbracoDatabaseFactory(Constants.System.UmbracoConnectionName, logger, new Lazy(() => mappers));
}
diff --git a/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs b/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs
index 2deb30bbdd..35085ddd85 100644
--- a/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs
+++ b/src/Umbraco.Tests/TestHelpers/TestWithDatabaseBase.cs
@@ -102,10 +102,10 @@ namespace Umbraco.Tests.TestHelpers
public override void TearDown()
{
var profilingLogger = Factory.TryGetInstance();
- var timer = profilingLogger?.TraceDuration("teardown"); // fixme move that one up
+ var timer = profilingLogger?.TraceDuration("teardown"); // FIXME: move that one up
try
{
- // fixme - should we first kill all scopes?
+ // FIXME: should we first kill all scopes?
if (Options.Database == UmbracoTestOptions.Database.NewSchemaPerTest)
RemoveDatabaseFile();
@@ -127,7 +127,7 @@ namespace Umbraco.Tests.TestHelpers
{
using (ProfilingLogger.TraceDuration("Create database."))
{
- CreateSqlCeDatabase(); // todo faster!
+ CreateSqlCeDatabase(); // TODO: faster!
}
// ensure the configuration matches the current version for tests
@@ -136,7 +136,7 @@ namespace Umbraco.Tests.TestHelpers
using (ProfilingLogger.TraceDuration("Initialize database."))
{
- InitializeDatabase(); // todo faster!
+ InitializeDatabase(); // TODO: faster!
}
}
@@ -229,7 +229,7 @@ namespace Umbraco.Tests.TestHelpers
protected IPublishedSnapshotService PublishedSnapshotService { get; set; }
- protected override void Initialize() // fixme - should NOT be here!
+ protected override void Initialize() // FIXME: should NOT be here!
{
base.Initialize();
@@ -313,7 +313,7 @@ namespace Umbraco.Tests.TestHelpers
}
}
- // fixme is this needed?
+ // FIXME: is this needed?
private void CloseDbConnections(IUmbracoDatabase database)
{
//Ensure that any database connections from a previous test is disposed.
diff --git a/src/Umbraco.Tests/Testing/UmbracoTestAttribute.cs b/src/Umbraco.Tests/Testing/UmbracoTestAttribute.cs
index 2bf4ba2716..4013d93cd3 100644
--- a/src/Umbraco.Tests/Testing/UmbracoTestAttribute.cs
+++ b/src/Umbraco.Tests/Testing/UmbracoTestAttribute.cs
@@ -24,8 +24,9 @@ namespace Umbraco.Tests.Testing
public bool AutoMapper { get => _autoMapper.ValueOrDefault(WithApplication); set => _autoMapper.Set(value); }
private readonly Settable _autoMapper = new Settable();
+ // FIXME: to be completed
///
- /// Gets or sets a value indicating ... FIXME to be completed
+ /// Gets or sets a value indicating ...
///
public bool PublishedRepositoryEvents { get => _publishedRepositoryEvents.ValueOrDefault(false); set => _publishedRepositoryEvents.Set(value); }
private readonly Settable _publishedRepositoryEvents = new Settable();
diff --git a/src/Umbraco.Tests/Testing/UmbracoTestBase.cs b/src/Umbraco.Tests/Testing/UmbracoTestBase.cs
index 7cd7be240b..9616a26891 100644
--- a/src/Umbraco.Tests/Testing/UmbracoTestBase.cs
+++ b/src/Umbraco.Tests/Testing/UmbracoTestBase.cs
@@ -123,7 +123,7 @@ namespace Umbraco.Tests.Testing
// get/merge the attributes marking the method and/or the classes
Options = TestOptionAttributeBase.GetTestOptions();
- // fixme - align to runtimes & components - don't redo everything here
+ // FIXME: align to runtimes & components - don't redo everything here
var (logger, profiler) = GetLoggers(Options.Logger);
var proflogger = new ProfilingLogger(logger, profiler);
@@ -427,7 +427,7 @@ namespace Umbraco.Tests.Testing
// reset all other static things that should not be static ;(
UriUtility.ResetAppDomainAppVirtualPath();
- SettingsForTests.Reset(); // fixme - should it be optional?
+ SettingsForTests.Reset(); // FIXME: should it be optional?
Mapper.Reset();
diff --git a/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataContentService.cs b/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataContentService.cs
index 5bc1fbfdaa..2c71d1fe3e 100644
--- a/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataContentService.cs
+++ b/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataContentService.cs
@@ -9,7 +9,7 @@ using Umbraco.Examine;
namespace Umbraco.Tests.UmbracoExamine
{
- //TODO: This is ultra hack and still left over from legacy but still works for testing atm
+ // TODO: This is ultra hack and still left over from legacy but still works for testing atm
public class ExamineDemoDataContentService
{
public const int ProtectedNode = 1142;
diff --git a/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataMediaService.cs b/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataMediaService.cs
index 8dcb170816..035a31b240 100644
--- a/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataMediaService.cs
+++ b/src/Umbraco.Tests/UmbracoExamine/ExamineDemoDataMediaService.cs
@@ -7,7 +7,7 @@ using System.Xml.XPath;
namespace Umbraco.Tests.UmbracoExamine
{
- //TODO: This is ultra hack and still left over from legacy but still works for testing atm
+ // TODO: This is ultra hack and still left over from legacy but still works for testing atm
internal class ExamineDemoDataMediaService
{
public ExamineDemoDataMediaService()
diff --git a/src/Umbraco.Tests/Web/Controllers/ContentControllerTests.cs b/src/Umbraco.Tests/Web/Controllers/ContentControllerTests.cs
index 7bd47bed66..cf0bf689a1 100644
--- a/src/Umbraco.Tests/Web/Controllers/ContentControllerTests.cs
+++ b/src/Umbraco.Tests/Web/Controllers/ContentControllerTests.cs
@@ -393,7 +393,7 @@ namespace Umbraco.Tests.Web.Controllers
Assert.IsTrue(display.Errors.ContainsKey("_content_variant_en-US_"));
}
- //TODO: There are SOOOOO many more tests we should write - a lot of them to do with validation
+ // TODO: There are SOOOOO many more tests we should write - a lot of them to do with validation
}
}
diff --git a/src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs b/src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs
index e95ae7b785..4bcad4f4d3 100644
--- a/src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs
+++ b/src/Umbraco.Tests/Web/TemplateUtilitiesTests.cs
@@ -30,13 +30,13 @@ namespace Umbraco.Tests.Web
{
Current.Reset();
- // fixme - now UrlProvider depends on EntityService for GetUrl(guid) - this is bad
+ // FIXME: now UrlProvider depends on EntityService for GetUrl(guid) - this is bad
// should not depend on more than IdkMap maybe - fix this!
var entityService = new Mock();
entityService.Setup(x => x.GetId(It.IsAny(), It.IsAny())).Returns(Attempt.Fail());
var serviceContext = ServiceContext.CreatePartial(entityService: entityService.Object);
- // fixme - bad in a unit test - but Udi has a static ctor that wants it?!
+ // FIXME: bad in a unit test - but Udi has a static ctor that wants it?!
var factory = new Mock();
factory.Setup(x => x.GetInstance(typeof(TypeLoader))).Returns(
new TypeLoader(NoAppCache.Instance, LocalTempStorage.Default, new ProfilingLogger(Mock.Of(), Mock.Of())));
diff --git a/src/Umbraco.Web.UI.Client/lib/bootstrap/less/forms.less b/src/Umbraco.Web.UI.Client/lib/bootstrap/less/forms.less
index 9f4ef4b8f9..6bbbacd1e3 100644
--- a/src/Umbraco.Web.UI.Client/lib/bootstrap/less/forms.less
+++ b/src/Umbraco.Web.UI.Client/lib/bootstrap/less/forms.less
@@ -239,7 +239,7 @@ textarea {
}
// Radios and checkboxes on same line
-// TODO v3: Convert .inline to .control-inline
+// TODO: v3: Convert .inline to .control-inline
.radio.inline,
.checkbox.inline {
display: inline-block;
diff --git a/src/Umbraco.Web.UI.Client/lib/umbraco/LegacySpeechBubble.js b/src/Umbraco.Web.UI.Client/lib/umbraco/LegacySpeechBubble.js
index f973cbac49..05568354e6 100644
--- a/src/Umbraco.Web.UI.Client/lib/umbraco/LegacySpeechBubble.js
+++ b/src/Umbraco.Web.UI.Client/lib/umbraco/LegacySpeechBubble.js
@@ -1,5 +1,5 @@
-//TODO: WE NEED TO CONVERT ALL OF THESE METHODS TO PROXY TO OUR APPLICATION SINCE MANY CUSTOM APPS USE THIS!
+// TODO: WE NEED TO CONVERT ALL OF THESE METHODS TO PROXY TO OUR APPLICATION SINCE MANY CUSTOM APPS USE THIS!
Umbraco.Sys.registerNamespace("Umbraco.Application");
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umblogin.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umblogin.directive.js
index b92f8c0807..891e8f0e7b 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umblogin.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/application/umblogin.directive.js
@@ -178,7 +178,7 @@
function loginSubmit(login, password) {
- //TODO: Do validation properly like in the invite password update
+ // TODO: Do validation properly like in the invite password update
//if the login and password are not empty we need to automatically
// validate them - this is because if there are validation errors on the server
@@ -242,7 +242,7 @@
function requestPasswordResetSubmit(email) {
- //TODO: Do validation properly like in the invite password update
+ // TODO: Do validation properly like in the invite password update
if (email && email.length > 0) {
vm.requestPasswordResetForm.email.$setValidity('auth', true);
@@ -286,7 +286,7 @@
return;
}
- //TODO: All of this logic can/should be shared! We should do validation the nice way instead of all of this manual stuff, see: inviteSavePassword
+ // TODO: All of this logic can/should be shared! We should do validation the nice way instead of all of this manual stuff, see: inviteSavePassword
authResource.performSetPassword(vm.resetPasswordCodeInfo.resetCodeModel.userId, password, confirmPassword, vm.resetPasswordCodeInfo.resetCodeModel.resetCode)
.then(function () {
vm.showSetPasswordConfirmation = true;
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
index 923cac80f5..8ad71226ba 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/buttons/umbbutton.directive.js
@@ -99,7 +99,7 @@ Use this directive to render an umbraco button. The directive can be used to gen
}
});
- //TODO: This doesn't seem necessary?
+ // TODO: This doesn't seem necessary?
UmbButtonController.$inject = ['$timeout', 'localizationService'];
function UmbButtonController($timeout, localizationService) {
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbvariantcontenteditors.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbvariantcontenteditors.directive.js
index af07925021..addbb3b11b 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbvariantcontenteditors.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/content/umbvariantcontenteditors.directive.js
@@ -8,7 +8,7 @@
templateUrl: 'views/components/content/umb-variant-content-editors.html',
bindings: {
page: "<",
- content: "<", //TODO: Not sure if this should be = since we are changing the 'active' property of a variant
+ content: "<", // TODO: Not sure if this should be = since we are changing the 'active' property of a variant
culture: "<",
onSelectApp: "&?"
},
@@ -243,7 +243,7 @@
}
}
- //TODO: hacking animation states - these should hopefully be easier to do when we upgrade angular
+ // TODO: hacking animation states - these should hopefully be easier to do when we upgrade angular
editor.collapsed = true;
editor.loading = true;
$timeout(function () {
@@ -255,7 +255,7 @@
/** Closes the split view */
function closeSplitView(editorIndex) {
- //TODO: hacking animation states - these should hopefully be easier to do when we upgrade angular
+ // TODO: hacking animation states - these should hopefully be easier to do when we upgrade angular
var editor = vm.editors[editorIndex];
editor.loading = true;
editor.collapsed = true;
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js
index d4b0fb158e..b7bcfa9eb4 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/editor/umbeditorcontainer.directive.js
@@ -46,7 +46,7 @@ Use this directive to construct a main content area inside the main editor windo
scope.numberOfOverlays = 0;
- //TODO: this shouldn't be a watch, this should be based on an event handler
+ // TODO: this shouldn't be a watch, this should be based on an event handler
scope.$watch(function () {
return overlayHelper.getNumberOfOverlays();
}, function (newValue) {
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/grid/grid.rte.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/grid/grid.rte.directive.js
index 372fb472fa..0a8846f975 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/grid/grid.rte.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/grid/grid.rte.directive.js
@@ -10,7 +10,7 @@ angular.module("umbraco.directives")
replace: true,
link: function (scope, element, attrs) {
- //TODO: A lot of the code below should be shared between the grid rte and the normal rte
+ // TODO: A lot of the code below should be shared between the grid rte and the normal rte
var promises = [];
@@ -73,7 +73,7 @@ angular.module("umbraco.directives")
});
- //TODO: Perhaps we should pin the toolbar for the rte always, regardless of if it's in the grid or not?
+ // TODO: Perhaps we should pin the toolbar for the rte always, regardless of if it's in the grid or not?
// this would mean moving this code into the tinyMceService.initializeEditor
//when we leave the editor (maybe)
@@ -116,7 +116,7 @@ angular.module("umbraco.directives")
loadTinyMce();
- //TODO: This should probably be in place for all RTE, not just for the grid, which means
+ // TODO: This should probably be in place for all RTE, not just for the grid, which means
// this code can live in tinyMceService.initializeEditor
var tabShownListener = eventsService.on("app.tabChange", function (e, args) {
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagegravity.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagegravity.directive.js
index a70b8ca33e..5732fa0eac 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagegravity.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagegravity.directive.js
@@ -131,7 +131,7 @@
function onDestroy() {
$(window).off('resize.umbImageGravity');
if (htmlOverlay) {
- //TODO: This should be destroyed but this will throw an exception:
+ // TODO: This should be destroyed but this will throw an exception:
// "cannot call methods on draggable prior to initialization; attempted to call method 'destroy'"
// I've tried lots of things and cannot get this to work, we weren't destroying before so hopefully
// there's no mem leaks?
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/overlays/umboverlaybackdrop.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/overlays/umboverlaybackdrop.directive.js
index 927481952a..6c5fb86134 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/overlays/umboverlaybackdrop.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/overlays/umboverlaybackdrop.directive.js
@@ -7,7 +7,7 @@
scope.numberOfOverlays = 0;
- //TODO: this shouldn't be a watch, this should be based on an event handler
+ // TODO: this shouldn't be a watch, this should be based on an event handler
scope.$watch(function () {
return overlayHelper.getNumberOfOverlays();
}, function (newValue) {
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtree.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtree.directive.js
index 052f497ee9..c3243993c1 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtree.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtree.directive.js
@@ -80,7 +80,7 @@ function umbTreeDirective($q, $rootScope, treeService, notificationsService, use
// entire tree again since we already still have it in memory. Of course if the section is different we will
// reload it. This saves a lot on processing if someone is navigating in and out of the same section many times
// since it saves on data retreival and DOM processing.
- //TODO: This isn't used!?
+ // TODO: This isn't used!?
var lastSection = "";
/** Helper function to emit tree events */
@@ -92,7 +92,7 @@ function umbTreeDirective($q, $rootScope, treeService, notificationsService, use
}
}
- //TODO: This isn't used!?
+ // TODO: This isn't used!?
function clearCache(section) {
treeService.clearCache({ section: section });
}
@@ -300,7 +300,7 @@ function umbTreeDirective($q, $rootScope, treeService, notificationsService, use
return '';
}
- //TODO: This is called constantly because as a method in a template it's re-evaluated pretty much all the time
+ // TODO: This is called constantly because as a method in a template it's re-evaluated pretty much all the time
// it would be better if we could cache the processing. The problem is that some of these things are dynamic.
var css = [];
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtreeitem.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtreeitem.directive.js
index 4440ceeb4b..19ecdaf8d9 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtreeitem.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/tree/umbtreeitem.directive.js
@@ -61,7 +61,7 @@ angular.module("umbraco.directives")
return '';
}
- //TODO: This is called constantly because as a method in a template it's re-evaluated pretty much all the time
+ // TODO: This is called constantly because as a method in a template it's re-evaluated pretty much all the time
// it would be better if we could cache the processing. The problem is that some of these things are dynamic.
var css = [];
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js
index 11c94d04c0..15f5a1d46a 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/umbgroupsbuilder.directive.js
@@ -301,7 +301,7 @@
//based on the selection, we need to filter the available composite types list
filterAvailableCompositions(selectedContentType, newSelection).then(function () {
- //TODO: Here we could probably re-enable selection if we previously showed a throbber or something
+ // TODO: Here we could probably re-enable selection if we previously showed a throbber or something
});
});
}
@@ -311,7 +311,7 @@
//based on the selection, we need to filter the available composite types list
filterAvailableCompositions(selectedContentType, newSelection).then(function () {
- //TODO: Here we could probably re-enable selection if we previously showed a throbber or something
+ // TODO: Here we could probably re-enable selection if we previously showed a throbber or something
});
}
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js
index 7ace23a988..e5bdd3ca78 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js
@@ -92,7 +92,7 @@
vm.culture = null;
}
- //TODO: need to figure out what we can do for things like Nested Content
+ // TODO: need to figure out what we can do for things like Nested Content
var existingClientFiles = checkPendingClientFiles();
//create the property to show the list of files currently saved
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/users/changepassword.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/users/changepassword.directive.js
index 7cc109a5c0..f8dbefa5d7 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/components/users/changepassword.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/users/changepassword.directive.js
@@ -135,7 +135,7 @@
!$scope.config.enablePasswordRetrieval && !$scope.showReset;
};
- //TODO: I don't think we need this or the cancel button, this can be up to the editor rendering this directive
+ // TODO: I don't think we need this or the cancel button, this can be up to the editor rendering this directive
$scope.showCancelBtn = function () {
return $scope.config.disableToggle !== true && $scope.config.hasPassword;
};
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js
index 5568b4b276..9ee83dc2ba 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js
@@ -42,12 +42,12 @@ function valPropertyMsg(serverValidationManager) {
return err.errorMsg;
}
else {
- //TODO: localize
+ // TODO: localize
return scope.currentProperty.propertyErrorMessage ? scope.currentProperty.propertyErrorMessage : "Property has errors";
}
}
- //TODO: localize
+ // TODO: localize
return "Property has errors";
}
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/validation/valsubview.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/validation/valsubview.directive.js
index d5a21e0ba6..524b5f7efe 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/validation/valsubview.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/validation/valsubview.directive.js
@@ -15,7 +15,7 @@
return {
valStatusChanged: function (args) {
- //TODO: Verify this is correct, does $scope.model ever exist?
+ // TODO: Verify this is correct, does $scope.model ever exist?
if ($scope.model) {
if (!args.form.$valid) {
var subViewContent = $element.find(".ng-invalid");
diff --git a/src/Umbraco.Web.UI.Client/src/common/mocks/resources/dashboard.mocks.js b/src/Umbraco.Web.UI.Client/src/common/mocks/resources/dashboard.mocks.js
index 7582db6740..e19fabfe61 100644
--- a/src/Umbraco.Web.UI.Client/src/common/mocks/resources/dashboard.mocks.js
+++ b/src/Umbraco.Web.UI.Client/src/common/mocks/resources/dashboard.mocks.js
@@ -8,7 +8,7 @@ angular.module('umbraco.mocks').
return [401, null, null];
}
else {
- //TODO: return real mocked data
+ // TODO: return real mocked data
return [200, [], null];
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/common/resources/auth.resource.js b/src/Umbraco.Web.UI.Client/src/common/resources/auth.resource.js
index 4f9b9a21f8..678cffe42e 100644
--- a/src/Umbraco.Web.UI.Client/src/common/resources/auth.resource.js
+++ b/src/Umbraco.Web.UI.Client/src/common/resources/auth.resource.js
@@ -130,7 +130,7 @@ function authResource($q, $http, umbRequestHelper, angularHelper) {
});
}
- //TODO: This validation shouldn't really be done here, the validation on the login dialog
+ // TODO: This validation shouldn't really be done here, the validation on the login dialog
// is pretty hacky which is why this is here, ideally validation on the login dialog would
// be done properly.
var emailRegex = /\S+@\S+\.\S+/;
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/appstate.service.js b/src/Umbraco.Web.UI.Client/src/common/services/appstate.service.js
index 86d5510ca4..9b1d92f2b0 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/appstate.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/appstate.service.js
@@ -358,7 +358,7 @@ angular.module('umbraco.services').factory("editorState", function() {
}
};
- //TODO: This shouldn't be removed! use getCurrent() method instead of a hacked readonly property which is confusing.
+ // TODO: This shouldn't be removed! use getCurrent() method instead of a hacked readonly property which is confusing.
//create a get/set property but don't allow setting
Object.defineProperty(state, "current", {
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
index 1258ec4099..b9bc4eb499 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/contenteditinghelper.service.js
@@ -35,7 +35,7 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica
return {
/** Used by the content editor and mini content editor to perform saving operations */
- //TODO: Make this a more helpful/reusable method for other form operations! we can simplify this form most forms
+ // TODO: Make this a more helpful/reusable method for other form operations! we can simplify this form most forms
// = this is already done in the formhelper service
contentEditorPerformSave: function (args) {
if (!angular.isObject(args)) {
@@ -421,7 +421,7 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica
*/
reBindChangedProperties: function (origContent, savedContent) {
- //TODO: We should probably split out this logic to deal with media/members separately to content
+ // TODO: We should probably split out this logic to deal with media/members separately to content
//a method to ignore built-in prop changes
var shouldIgnore = function (propName) {
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
index 191e0a22c0..b6bcafbddf 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/formhelper.service.js
@@ -121,7 +121,7 @@ function formHelper(angularHelper, serverValidationManager, notificationsService
}
else {
- //TODO: All YSOD handling should be done with an interceptor
+ // TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(err);
}
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/iconhelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/iconhelper.service.js
index a57fd606aa..0fa2d0df1a 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/iconhelper.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/iconhelper.service.js
@@ -56,7 +56,7 @@ function iconHelper($q, $timeout) {
{ oldIcon: ".sprTreeSettingDataType", newIcon: "icon-autofill" },
- //TODO:
+ // TODO: Something needs to be done with the old tree icons that are commented out.
/*
{ oldIcon: ".sprTreeSettingAgent", newIcon: "" },
{ oldIcon: ".sprTreeSettingCss", newIcon: "" },
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/localization.service.js b/src/Umbraco.Web.UI.Client/src/common/services/localization.service.js
index 1b7a6da764..2a9afdfa94 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/localization.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/localization.service.js
@@ -24,7 +24,7 @@
angular.module('umbraco.services')
.factory('localizationService', function ($http, $q, eventsService, $window, $filter, userService) {
- //TODO: This should be injected as server vars
+ // TODO: This should be injected as server vars
var url = "LocalizedText";
var resourceFileLoadStatus = "none";
var resourceLoadingPromise = [];
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/mediahelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/mediahelper.service.js
index 5db9e9c77e..16c5b38a79 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/mediahelper.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/mediahelper.service.js
@@ -66,7 +66,7 @@ function mediaHelper(umbRequestHelper) {
});
//for now we'll just return the first image in the collection.
- //TODO: we should enable returning many to be displayed in the picker if the uploader supports many.
+ // TODO: we should enable returning many to be displayed in the picker if the uploader supports many.
if (mediaVal.length && mediaVal.length > 0) {
if (!options.imageOnly || (options.imageOnly === true && mediaVal[0].isImage)) {
return mediaVal[0].file;
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/mediatypehelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/mediatypehelper.service.js
index 7e0e1db24f..a347279fdb 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/mediatypehelper.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/mediatypehelper.service.js
@@ -22,7 +22,7 @@ function mediaTypeHelper(mediaTypeResource, $q) {
getAllowedImagetypes: function (mediaId){
- //TODO: This is horribly inneficient - why make one request per type!?
+ // TODO: This is horribly inneficient - why make one request per type!?
//This should make a call to c# to get exactly what it's looking for instead of returning every single media type and doing
//some filtering on the client side.
//This is also called multiple times when it's not needed! Example, when launching the media picker, this will be called twice
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/search.service.js b/src/Umbraco.Web.UI.Client/src/common/services/search.service.js
index f0a3239602..04c431767c 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/search.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/search.service.js
@@ -151,7 +151,7 @@ angular.module('umbraco.services')
},
- //TODO: This doesn't do anything!
+ // TODO: This doesn't do anything!
setCurrent: function (sectionAlias) {
var currentSection = sectionAlias;
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js
index 97d939bac1..ffb9fe0f36 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/tinymce.service.js
@@ -680,7 +680,7 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
//supported keys to move to the next or prev element (13-enter, 27-esc, 38-up, 40-down, 39-right, 37-left)
//supported keys to remove the macro (8-backspace, 46-delete)
- //TODO: Should we make the enter key insert a line break before or leave it as moving to the next element?
+ // TODO: Should we make the enter key insert a line break before or leave it as moving to the next element?
if ($.inArray(e.keyCode, [13, 40, 39]) !== -1) {
//move to next element
moveSibling(macroElement, true);
@@ -1358,7 +1358,7 @@ function tinyMceService($rootScope, $q, imageHelper, $locale, $http, $timeout, s
self.createAceCodeEditor(args.editor, function () {
- //TODO: CHECK TO SEE WHAT WE NEED TO DO WIT MACROS (See code block?)
+ // TODO: CHECK TO SEE WHAT WE NEED TO DO WIT MACROS (See code block?)
/*
var html = editor.getContent({source_view: true});
html = html.replace(/]*)>([^<]*)<\/span>/gm, String.fromCharCode(chr));
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js b/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js
index 28ac7f6485..e102da5d34 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/tour.service.js
@@ -114,7 +114,7 @@
* @returns {Object} Returns the current tour
*/
function getCurrentTour() {
- //TODO: This should be reset if a new user logs in
+ // TODO: This should be reset if a new user logs in
return currentTour;
}
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/umbdataformatter.service.js b/src/Umbraco.Web.UI.Client/src/common/services/umbdataformatter.service.js
index 1e6fc5d643..cbe9b561a0 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/umbdataformatter.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/umbdataformatter.service.js
@@ -66,7 +66,7 @@
'alias', 'description', 'thumbnail', 'name', 'id', 'icon', 'trashed',
'key', 'parentId', 'alias', 'path', 'allowCultureVariant', 'isElement');
- //TODO: Map these
+ // TODO: Map these
saveModel.allowedTemplates = _.map(displayModel.allowedTemplates, function (t) { return t.alias; });
saveModel.defaultTemplate = displayModel.defaultTemplate ? displayModel.defaultTemplate.alias : null;
var realGroups = _.reject(displayModel.groups, function (g) {
diff --git a/src/Umbraco.Web.UI.Client/src/common/services/umbrequesthelper.service.js b/src/Umbraco.Web.UI.Client/src/common/services/umbrequesthelper.service.js
index fb1a1b8d5e..6991c5d386 100644
--- a/src/Umbraco.Web.UI.Client/src/common/services/umbrequesthelper.service.js
+++ b/src/Umbraco.Web.UI.Client/src/common/services/umbrequesthelper.service.js
@@ -177,7 +177,7 @@ function umbRequestHelper($http, $q, notificationsService, eventsService, formHe
//show a ysod dialog
if (Umbraco.Sys.ServerVariables["isDebuggingEnabled"] === true) {
const error = { errorMsg: 'An error occured', data: response.data };
- //TODO: All YSOD handling should be done with an interceptor
+ // TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(error);
}
else {
@@ -270,7 +270,7 @@ function umbRequestHelper($http, $q, notificationsService, eventsService, formHe
formHelper.showNotifications(response.data);
}
- //TODO: Do we need to pass the result through umbDataFormatter.formatContentGetData? Right now things work so not sure but we should check
+ // TODO: Do we need to pass the result through umbDataFormatter.formatContentGetData? Right now things work so not sure but we should check
//the data returned is the up-to-date data so the UI will refresh
return $q.resolve(response.data);
@@ -289,7 +289,7 @@ function umbRequestHelper($http, $q, notificationsService, eventsService, formHe
else if (Umbraco.Sys.ServerVariables["isDebuggingEnabled"] === true) {
//show a ysod dialog
const error = { errorMsg: 'An error occured', data: response.data };
- //TODO: All YSOD handling should be done with an interceptor
+ // TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(error);
}
else {
diff --git a/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js b/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js
index e023c6d23c..96f3115185 100644
--- a/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js
@@ -137,7 +137,7 @@ function NavigationController($scope, $rootScope, $location, $log, $q, $routePar
navigationService.showSearch();
});
- ////TODO: remove this it's not a thing
+ //// TODO: remove this it's not a thing
//$scope.selectedId = navigationService.currentId;
var evts = [];
@@ -423,7 +423,7 @@ function NavigationController($scope, $rootScope, $location, $log, $q, $routePar
var path = treeService.getPath(currNode);
promises.push($scope.treeApi.syncTree({ path: path, activate: true }));
}
- //TODO: If we want to keep all paths expanded ... but we need more testing since we need to deal with unexpanding
+ // TODO: If we want to keep all paths expanded ... but we need more testing since we need to deal with unexpanding
//for (var i = 0; i < expandedPaths.length; i++) {
// promises.push($scope.treeApi.syncTree({ path: expandedPaths[i], activate: false, forceReload: true }));
//}
@@ -441,16 +441,16 @@ function NavigationController($scope, $rootScope, $location, $log, $q, $routePar
};
//this reacts to the options item in the tree
- //TODO: migrate to nav service
- //TODO: is this used?
+ // TODO: migrate to nav service
+ // TODO: is this used?
$scope.searchShowMenu = function (ev, args) {
//always skip default
args.skipDefault = true;
navigationService.showMenu(args);
};
- //TODO: migrate to nav service
- //TODO: is this used?
+ // TODO: migrate to nav service
+ // TODO: is this used?
$scope.searchHide = function () {
navigationService.hideSearch();
};
diff --git a/src/Umbraco.Web.UI.Client/src/installer/installer.controller.js b/src/Umbraco.Web.UI.Client/src/installer/installer.controller.js
index cdf5f8c980..3dbc4e119b 100644
--- a/src/Umbraco.Web.UI.Client/src/installer/installer.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/installer/installer.controller.js
@@ -1,7 +1,7 @@
angular.module("umbraco.install").controller("Umbraco.InstallerController",
function ($scope, installerService) {
- //TODO: Decouple the service from the controller - the controller should be responsible
+ // TODO: Decouple the service from the controller - the controller should be responsible
// for the model (state) and the service should be responsible for helping the controller,
// the controller should be passing the model into it's methods for manipulation and not hold
// state. We should not be assigning properties from a service to a controller's scope.
diff --git a/src/Umbraco.Web.UI.Client/src/less/components/tree/umb-tree.less b/src/Umbraco.Web.UI.Client/src/less/components/tree/umb-tree.less
index bd493cf0d3..38860e6d22 100644
--- a/src/Umbraco.Web.UI.Client/src/less/components/tree/umb-tree.less
+++ b/src/Umbraco.Web.UI.Client/src/less/components/tree/umb-tree.less
@@ -15,7 +15,7 @@
outline: none;
text-decoration: none;
- // TODO => confirm not in use
+ // TODO: => confirm not in use
// &.noSpr {
// background-position: 0
// }
diff --git a/src/Umbraco.Web.UI.Client/src/less/components/umb-grid.less b/src/Umbraco.Web.UI.Client/src/less/components/umb-grid.less
index a4c744bf7f..9dc6aa1906 100644
--- a/src/Umbraco.Web.UI.Client/src/less/components/umb-grid.less
+++ b/src/Umbraco.Web.UI.Client/src/less/components/umb-grid.less
@@ -1,4 +1,4 @@
-// TODO General cleanup in !important (Round 2)
+// TODO: General cleanup in !important (Round 2)
// Gridview
// -------------------------
diff --git a/src/Umbraco.Web.UI.Client/src/less/forms.less b/src/Umbraco.Web.UI.Client/src/less/forms.less
index e3350b4956..f9bb860b5e 100644
--- a/src/Umbraco.Web.UI.Client/src/less/forms.less
+++ b/src/Umbraco.Web.UI.Client/src/less/forms.less
@@ -368,7 +368,7 @@ textarea {
}
// Radios and checkboxes on same line
-// TODO v3: Convert .inline to .control-inline
+// TODO: v3: Convert .inline to .control-inline
.radio.inline,
.checkbox.inline {
display: inline-block;
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/treepicker/treepicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/treepicker/treepicker.controller.js
index 346bddf00f..4a43c340db 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/treepicker/treepicker.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/treepicker/treepicker.controller.js
@@ -63,7 +63,7 @@ angular.module("umbraco").controller("Umbraco.Editors.TreePickerController",
function initDialogTree() {
vm.dialogTreeApi.callbacks.treeLoaded(treeLoadedHandler);
- //TODO: Also deal with unexpanding!!
+ // TODO: Also deal with unexpanding!!
vm.dialogTreeApi.callbacks.treeNodeExpanded(nodeExpandedHandler);
vm.dialogTreeApi.callbacks.treeNodeSelect(nodeSelectHandler);
}
@@ -111,7 +111,7 @@ angular.module("umbraco").controller("Umbraco.Editors.TreePickerController",
}
}
- //TODO: Seems odd this logic is here, i don't think it needs to be and should just exist on the property editor using this
+ // TODO: Seems odd this logic is here, i don't think it needs to be and should just exist on the property editor using this
if ($scope.model.minNumber) {
$scope.model.minNumber = parseInt($scope.model.minNumber, 10);
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js
index 2bde680bf4..2a3f67a7e3 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/content/apps/content/content.controller.js
@@ -26,7 +26,7 @@
if (newVal !== oldVal) {
vm.loading = true;
- //TODO: Can we minimize the flicker?
+ // TODO: Can we minimize the flicker?
$timeout(function () {
onInit();
}, 100);
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js
index e594bae2f4..56ce67a0dc 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/content/content.delete.controller.js
@@ -65,7 +65,7 @@ function ContentDeleteController($scope, $timeout, contentResource, treeService,
//check if response is ysod
if (err.status && err.status >= 500) {
- //TODO: All YSOD handling should be done with an interceptor
+ // TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(err);
}
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js
index 9074834ee6..82432ba78d 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publish.controller.js
@@ -27,7 +27,7 @@
//and it's not publishable or not selected to be published
//then we cannot continue
- //TODO: Show a message when this occurs
+ // TODO: Show a message when this occurs
return false;
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
index c2ffbced04..0ca2fe65c9 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/publishdescendants.controller.js
@@ -69,7 +69,7 @@
//and not flagged for saving
//then we cannot continue
- //TODO: Show a message when this occurs
+ // TODO: Show a message when this occurs
return false;
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.controller.js b/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.controller.js
index 6991a7b509..d97bfc77b1 100644
--- a/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/content/overlays/schedule.controller.js
@@ -333,7 +333,7 @@
//and it's not publishable or not selected to be published
//then we cannot continue
- //TODO: Show a message when this occurs
+ // TODO: Show a message when this occurs
return false;
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/contentblueprints/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/contentblueprints/delete.controller.js
index cc5e4b32a9..80c716732e 100644
--- a/src/Umbraco.Web.UI.Client/src/views/contentblueprints/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/contentblueprints/delete.controller.js
@@ -18,7 +18,7 @@ function ContentBlueprintDeleteController($scope, contentResource, treeService,
$scope.currentNode.loading = false;
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/dashboard/content/redirecturls.controller.js b/src/Umbraco.Web.UI.Client/src/views/dashboard/content/redirecturls.controller.js
index 9cef913e79..8206d0a114 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dashboard/content/redirecturls.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/dashboard/content/redirecturls.controller.js
@@ -2,12 +2,11 @@
"use strict";
function RedirectUrlsController($scope, redirectUrlsResource, notificationsService, localizationService, $q) {
- //...todo
- //search by url or url part
- //search by domain
- //display domain in dashboard results?
+ // TODO: search by url or url part
+ // TODO: search by domain
+ // TODO: display domain in dashboard results?
- //used to cancel any request in progress if another one needs to take it's place
+ // used to cancel any request in progress if another one needs to take it's place
var vm = this;
var canceler = null;
diff --git a/src/Umbraco.Web.UI.Client/src/views/dashboard/settings/examinemanagement.controller.js b/src/Umbraco.Web.UI.Client/src/views/dashboard/settings/examinemanagement.controller.js
index a5e4125742..10037db166 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dashboard/settings/examinemanagement.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/dashboard/settings/examinemanagement.controller.js
@@ -148,8 +148,8 @@ function ExamineManagementController($scope, umbRequestHelper, $http, $q, $timeo
'Failed to rebuild index')
.then(function() {
- //rebuilding has started, nothing is returned accept a 200 status code.
- //lets poll to see if it is done.
+ // rebuilding has started, nothing is returned accept a 200 status code.
+ // lets poll to see if it is done.
$timeout(() => { checkProcessing(index, "PostCheckRebuildIndex"), 1000 });
});
@@ -157,7 +157,7 @@ function ExamineManagementController($scope, umbRequestHelper, $http, $q, $timeo
}
function init() {
- //go get the data
+ // go get the data
//combine two promises and execute when they are both done
$q.all([
diff --git a/src/Umbraco.Web.UI.Client/src/views/datatypes/create.controller.js b/src/Umbraco.Web.UI.Client/src/views/datatypes/create.controller.js
index 6cce37943e..15e1a9402e 100644
--- a/src/Umbraco.Web.UI.Client/src/views/datatypes/create.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/datatypes/create.controller.js
@@ -32,7 +32,7 @@ function DataTypeCreateController($scope, $location, navigationService, dataType
}, function(err) {
- //TODO: Handle errors
+ // TODO: Handle errors
});
};
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/datatypes/datatype.delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/datatypes/datatype.delete.controller.js
index 101d74b16b..470e9b5f1e 100644
--- a/src/Umbraco.Web.UI.Client/src/views/datatypes/datatype.delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/datatypes/datatype.delete.controller.js
@@ -18,7 +18,7 @@ function DataTypeDeleteController($scope, dataTypeResource, treeService, navigat
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
@@ -35,7 +35,7 @@ function DataTypeDeleteController($scope, dataTypeResource, treeService, navigat
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/documenttypes/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/documenttypes/delete.controller.js
index c920e05480..d7d8082048 100644
--- a/src/Umbraco.Web.UI.Client/src/views/documenttypes/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/documenttypes/delete.controller.js
@@ -18,7 +18,7 @@ function DocumentTypesDeleteController($scope, dataTypeResource, contentTypeReso
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
@@ -35,7 +35,7 @@ function DocumentTypesDeleteController($scope, dataTypeResource, contentTypeReso
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/media/media.delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/media/media.delete.controller.js
index 70b5120ebe..ab057f87a4 100644
--- a/src/Umbraco.Web.UI.Client/src/views/media/media.delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/media/media.delete.controller.js
@@ -59,7 +59,7 @@ function MediaDeleteController($scope, mediaResource, treeService, navigationSer
//check if response is ysod
if (err.status && err.status >= 500) {
- //TODO: All YSOD handling should be done with an interceptor
+ // TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(err);
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/mediatypes/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/mediatypes/delete.controller.js
index 785550684b..f4b61d55dd 100644
--- a/src/Umbraco.Web.UI.Client/src/views/mediatypes/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/mediatypes/delete.controller.js
@@ -18,7 +18,7 @@ function MediaTypesDeleteController($scope, dataTypeResource, mediaTypeResource,
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
@@ -35,7 +35,7 @@ function MediaTypesDeleteController($scope, dataTypeResource, mediaTypeResource,
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/membergroups/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/membergroups/delete.controller.js
index 22deb6df4b..7e434b6f3b 100644
--- a/src/Umbraco.Web.UI.Client/src/views/membergroups/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/membergroups/delete.controller.js
@@ -18,7 +18,7 @@ function MemberGroupsDeleteController($scope, memberGroupResource, treeService,
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/membertypes/create.controller.js b/src/Umbraco.Web.UI.Client/src/views/membertypes/create.controller.js
index af2457d099..adf6cbc8a6 100644
--- a/src/Umbraco.Web.UI.Client/src/views/membertypes/create.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/membertypes/create.controller.js
@@ -35,7 +35,7 @@ function MemberTypesCreateController($scope, $location, navigationService, membe
}, function(err) {
- //TODO: Handle errors
+ // TODO: Handle errors
});
};
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/membertypes/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/membertypes/delete.controller.js
index c0cd0c8598..8b8c966790 100644
--- a/src/Umbraco.Web.UI.Client/src/views/membertypes/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/membertypes/delete.controller.js
@@ -18,7 +18,7 @@ function MemberTypesDeleteController($scope, memberTypeResource, treeService, na
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/partialviewmacros/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/partialviewmacros/delete.controller.js
index 02b89dd279..17e7fa1bd9 100644
--- a/src/Umbraco.Web.UI.Client/src/views/partialviewmacros/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/partialviewmacros/delete.controller.js
@@ -18,7 +18,7 @@ function PartialViewMacrosDeleteController($scope, codefileResource, treeService
$scope.currentNode.loading = false;
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/partialviews/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/partialviews/delete.controller.js
index 1e615ad0d4..a848b77a82 100644
--- a/src/Umbraco.Web.UI.Client/src/views/partialviews/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/partialviews/delete.controller.js
@@ -21,7 +21,7 @@ function PartialViewsDeleteController($scope, codefileResource, treeService, nav
$scope.currentNode.loading = false;
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
}, function (err) {
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/colorpicker/colorpicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/colorpicker/colorpicker.controller.js
index 79ae34ea21..d6fe709962 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/colorpicker/colorpicker.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/colorpicker/colorpicker.controller.js
@@ -12,7 +12,7 @@ function ColorPickerController($scope) {
//map back to the model
$scope.model.config = config;
- //TODO: This isn't used
+ // TODO: This isn't used
function convertArrayToDictionaryArray(model) {
//now we need to format the items in the dictionary because we always want to have an array
var newItems = [];
@@ -23,7 +23,7 @@ function ColorPickerController($scope) {
return newItems;
}
- //TODO: This isn't used
+ // TODO: This isn't used
function convertObjectToDictionaryArray(model) {
//now we need to format the items in the dictionary because we always want to have an array
var newItems = [];
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
index 1e7e3fa0ed..a3fc33d2ea 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js
@@ -766,7 +766,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs
case "published":
return "content_isPublished";
case "contentTypeAlias":
- //TODO: Check for members
+ // TODO: Check for members
return $scope.entityType === "content" ? "content_documentType" : "content_mediatype";
case "email":
return "general_email";
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js
index 67a5630909..f05b1e31d8 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/markdowneditor/markdowneditor.controller.js
@@ -69,7 +69,7 @@ function MarkdownEditorController($scope, $element, assetsService, editorService
}, 200);
});
- //load the seperat css for the editor to avoid it blocking our js loading TEMP HACK
+ // HACK: load the separate css for the editor to avoid it blocking our js loading TEMP HACK
assetsService.loadCss("lib/markdown/markdown.css", $scope);
})
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
index d6cc35bacd..884b661beb 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/nestedcontent/nestedcontent.controller.js
@@ -300,7 +300,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.NestedContent.Prop
function (property) {
if (_.find(notSupported, function (x) { return x === property.editor; })) {
property.notSupported = true;
- //TODO: Not supported message to be replaced with 'content_nestedContentEditorNotSupported' dictionary key. Currently not possible due to async/timing quirk.
+ // TODO: Not supported message to be replaced with 'content_nestedContentEditorNotSupported' dictionary key. Currently not possible due to async/timing quirk.
property.notSupportedMessage = "Property " + property.label + " uses editor " + property.editor + " which is not supported by Nested Content.";
}
});
@@ -433,7 +433,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.NestedContent.Prop
unsubscribe();
});
- //TODO: Move this into a shared location?
+ // TODO: Move this into a shared location?
var UUID = (function () {
var self = {};
var lut = []; for (var i = 0; i < 256; i++) { lut[i] = (i < 16 ? '0' : '') + (i).toString(16); }
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/codeeditor.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/codeeditor.controller.js
index b795c49855..f455e99fe7 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/codeeditor.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/codeeditor.controller.js
@@ -32,7 +32,7 @@
// set default title
if(!$scope.model.title) {
- // TODO localize
+ // TODO: localize
$scope.model.title = "Edit source code";
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js
index 2181361470..960e66edfe 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.controller.js
@@ -2,7 +2,7 @@ angular.module("umbraco")
.controller("Umbraco.PropertyEditors.RTEController",
function ($scope, $q, assetsService, $timeout, tinyMceService, angularHelper, editorService, macroService, editorState) {
- //TODO: A lot of the code below should be shared between the grid rte and the normal rte
+ // TODO: A lot of the code below should be shared between the grid rte and the normal rte
$scope.isLoading = true;
diff --git a/src/Umbraco.Web.UI.Client/src/views/scripts/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/scripts/delete.controller.js
index 82c11a2242..4757399224 100644
--- a/src/Umbraco.Web.UI.Client/src/views/scripts/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/scripts/delete.controller.js
@@ -18,7 +18,7 @@ function ScriptsDeleteController($scope, codefileResource, treeService, navigati
$scope.currentNode.loading = false;
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
});
diff --git a/src/Umbraco.Web.UI.Client/src/views/scripts/edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/scripts/edit.controller.js
index 62c5ace83a..2ca93fba4c 100644
--- a/src/Umbraco.Web.UI.Client/src/views/scripts/edit.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/scripts/edit.controller.js
@@ -145,7 +145,7 @@
//As conflicts with our own tree search shortcut
_editor.commands.bindKey("ctrl-space", null);
- //TODO: Move all these keybinding config out into some helper/service
+ // TODO: Move all these keybinding config out into some helper/service
_editor.commands.addCommands([
//Disable (alt+shift+K)
//Conflicts with our own show shortcuts dialog - this overrides it
diff --git a/src/Umbraco.Web.UI.Client/src/views/stylesheets/edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/stylesheets/edit.controller.js
index a05836be06..541d329e05 100644
--- a/src/Umbraco.Web.UI.Client/src/views/stylesheets/edit.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/stylesheets/edit.controller.js
@@ -205,7 +205,7 @@
//As conflicts with our own tree search shortcut
_editor.commands.bindKey("ctrl-space", null);
- //TODO: Move all these keybinding config out into some helper/service
+ // TODO: Move all these keybinding config out into some helper/service
_editor.commands.addCommands([
//Disable (alt+shift+K)
//Conflicts with our own show shortcuts dialog - this overrides it
diff --git a/src/Umbraco.Web.UI.Client/src/views/templates/delete.controller.js b/src/Umbraco.Web.UI.Client/src/views/templates/delete.controller.js
index d019a44a10..32e9477133 100644
--- a/src/Umbraco.Web.UI.Client/src/views/templates/delete.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/templates/delete.controller.js
@@ -22,7 +22,7 @@ function TemplatesDeleteController($scope, templateResource , treeService, navig
//get the root node before we remove it
var rootNode = treeService.getTreeRoot($scope.currentNode);
- //TODO: Need to sync tree, etc...
+ // TODO: Need to sync tree, etc...
treeService.removeNode($scope.currentNode);
navigationService.hideMenu();
}, function (err) {
diff --git a/src/Umbraco.Web.UI.Client/src/views/templates/edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/templates/edit.controller.js
index 1f6fb8863a..dee2705638 100644
--- a/src/Umbraco.Web.UI.Client/src/views/templates/edit.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/templates/edit.controller.js
@@ -634,7 +634,7 @@
templateCode = templateCode.replace(layoutDefRegex, "$1\"" + newValue + "\"$3");
} else {
// Declaration doesn't exist, so prepend to start of doc
- //TODO: Maybe insert at the cursor position, rather than just at the top of the doc?
+ // TODO: Maybe insert at the cursor position, rather than just at the top of the doc?
templateCode = "@{\n\tLayout = \"" + newValue + "\";\n}\n" + templateCode;
}
} else {
diff --git a/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js b/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js
index e939c25576..ac49709ee4 100644
--- a/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js
+++ b/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js
@@ -117,7 +117,7 @@
}, 1000);
});
- ////TODO: THIS FAILED
+ //// TODO: THIS FAILED
//it("changes layout value when masterpage is selected", function() {
// var newTemplate;
// ace.clearSelection = nada;
diff --git a/src/Umbraco.Web.UI.Client/test/unit/common/directives/val-email.spec.js b/src/Umbraco.Web.UI.Client/test/unit/common/directives/val-email.spec.js
index 9a6e884ff6..1a1c850b15 100644
--- a/src/Umbraco.Web.UI.Client/test/unit/common/directives/val-email.spec.js
+++ b/src/Umbraco.Web.UI.Client/test/unit/common/directives/val-email.spec.js
@@ -5,7 +5,7 @@
beforeEach(module('umbraco'));
beforeEach(inject(function ($injector) {
- //TODO: I have no idea why this doesn't work!!?? it freakin should
+ // TODO: I have no idea why this doesn't work!!?? it freakin should
//valEmailExpression = $injector.get('valEmailExpression');
//in the meantime, i've had to hard code the regex statement here
diff --git a/src/Umbraco.Web.UI.Client/test/unit/common/services/server-validation-manager.spec.js b/src/Umbraco.Web.UI.Client/test/unit/common/services/server-validation-manager.spec.js
index 7510b766a8..3f953fffcd 100644
--- a/src/Umbraco.Web.UI.Client/test/unit/common/services/server-validation-manager.spec.js
+++ b/src/Umbraco.Web.UI.Client/test/unit/common/services/server-validation-manager.spec.js
@@ -268,7 +268,7 @@
expect(numCalled).toEqual(3);
});
- //TODO: Finish testing the rest!
+ // TODO: Finish testing the rest!
});
diff --git a/src/Umbraco.Web/Actions/ActionChangeDocType.cs b/src/Umbraco.Web/Actions/ActionChangeDocType.cs
index 56868e9fb0..dcdff94037 100644
--- a/src/Umbraco.Web/Actions/ActionChangeDocType.cs
+++ b/src/Umbraco.Web/Actions/ActionChangeDocType.cs
@@ -5,7 +5,7 @@ using Umbraco.Web.UI.Pages;
namespace Umbraco.Web.Actions
{
- //TODO: Add this back in when we support this functionality again
+ // TODO: Add this back in when we support this functionality again
/////
///// This action is invoked when the document type of a piece of content is changed
/////
diff --git a/src/Umbraco.Web/Cache/ContentCacheRefresher.cs b/src/Umbraco.Web/Cache/ContentCacheRefresher.cs
index 944157db9d..99a1e6c803 100644
--- a/src/Umbraco.Web/Cache/ContentCacheRefresher.cs
+++ b/src/Umbraco.Web/Cache/ContentCacheRefresher.cs
@@ -92,7 +92,7 @@ namespace Umbraco.Web.Cache
// content and when the PublishedCachesService is notified of changes it does not see
// the new content...
- // todo - what about this?
+ // TODO: what about this?
// should rename it, and then, this is only for Deploy, and then, ???
//if (Suspendable.PageCacheRefresher.CanUpdateDocumentCache)
// ...
diff --git a/src/Umbraco.Web/Cache/DataTypeCacheRefresher.cs b/src/Umbraco.Web/Cache/DataTypeCacheRefresher.cs
index 6916b40f2d..9bd275bc3e 100644
--- a/src/Umbraco.Web/Cache/DataTypeCacheRefresher.cs
+++ b/src/Umbraco.Web/Cache/DataTypeCacheRefresher.cs
@@ -56,7 +56,7 @@ namespace Umbraco.Web.Cache
_idkMap.ClearCache(payload.Id);
}
- // todo - not sure I like these?
+ // TODO: not sure I like these?
TagsValueConverter.ClearCaches();
SliderValueConverter.ClearCaches();
diff --git a/src/Umbraco.Web/Cache/DistributedCacheBinder.cs b/src/Umbraco.Web/Cache/DistributedCacheBinder.cs
index ce8267dfc8..c64951810a 100644
--- a/src/Umbraco.Web/Cache/DistributedCacheBinder.cs
+++ b/src/Umbraco.Web/Cache/DistributedCacheBinder.cs
@@ -71,7 +71,7 @@ namespace Umbraco.Web.Cache
var handler = FindHandler(e);
if (handler == null)
{
- // todo - should this be fatal (ie, an exception)?
+ // TODO: should this be fatal (ie, an exception)?
var name = e.Sender.GetType().Name + "_" + e.EventName;
_logger.Warn("Dropping event {EventName} because no corresponding handler was found.", name);
continue;
diff --git a/src/Umbraco.Web/Cache/DistributedCacheBinder_Handlers.cs b/src/Umbraco.Web/Cache/DistributedCacheBinder_Handlers.cs
index 4f05abc9ee..951b7f79df 100644
--- a/src/Umbraco.Web/Cache/DistributedCacheBinder_Handlers.cs
+++ b/src/Umbraco.Web/Cache/DistributedCacheBinder_Handlers.cs
@@ -196,7 +196,7 @@ namespace Umbraco.Web.Cache
_distributedCache.RefreshContentCache(args.Changes.ToArray());
}
- // todo our weird events handling wants this for now
+ // TODO: our weird events handling wants this for now
private void ContentService_Deleted(IContentService sender, DeleteEventArgs e) { }
private void ContentService_Moved(IContentService sender, MoveEventArgs e) { }
private void ContentService_Trashed(IContentService sender, MoveEventArgs e) { }
@@ -307,7 +307,7 @@ namespace Umbraco.Web.Cache
_distributedCache.RefreshContentTypeCache(args.Changes.ToArray());
}
- // todo our weird events handling wants this for now
+ // TODO: our weird events handling wants this for now
private void ContentTypeService_Saved(IContentTypeService sender, SaveEventArgs args) { }
private void MediaTypeService_Saved(IMediaTypeService sender, SaveEventArgs args) { }
private void MemberTypeService_Saved(IMemberTypeService sender, SaveEventArgs args) { }
@@ -321,7 +321,7 @@ namespace Umbraco.Web.Cache
private void UserService_UserGroupPermissionsAssigned(IUserService sender, SaveEventArgs e)
{
- //TODO: Not sure if we need this yet depends if we start caching permissions
+ // TODO: Not sure if we need this yet depends if we start caching permissions
//var groupIds = e.SavedEntities.Select(x => x.UserGroupId).Distinct();
//foreach (var groupId in groupIds)
//{
@@ -379,7 +379,7 @@ namespace Umbraco.Web.Cache
_distributedCache.RefreshTemplateCache(entity.Id);
}
- // todo our weird events handling wants this for now
+ // TODO: our weird events handling wants this for now
private void FileService_DeletedStylesheet(IFileService sender, DeleteEventArgs e) { }
private void FileService_SavedStylesheet(IFileService sender, SaveEventArgs e) { }
@@ -408,7 +408,7 @@ namespace Umbraco.Web.Cache
_distributedCache.RefreshMediaCache(args.Changes.ToArray());
}
- // todo our weird events handling wants this for now
+ // TODO: our weird events handling wants this for now
private void MediaService_Saved(IMediaService sender, SaveEventArgs e) { }
private void MediaService_Deleted(IMediaService sender, DeleteEventArgs e) { }
private void MediaService_Moved(IMediaService sender, MoveEventArgs e) { }
diff --git a/src/Umbraco.Web/Composing/Composers/InstallerComposer.cs b/src/Umbraco.Web/Composing/Composers/InstallerComposer.cs
index b848425736..f73491f1fb 100644
--- a/src/Umbraco.Web/Composing/Composers/InstallerComposer.cs
+++ b/src/Umbraco.Web/Composing/Composers/InstallerComposer.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Web.Composing.Composers
composition.Register(Lifetime.Scope);
composition.Register(Lifetime.Scope);
- //TODO: Add these back once we have a compatible starter kit
+ // TODO: Add these back once we have a compatible starter kit
//container.Register(Lifetime.Scope);
//container.Register(Lifetime.Scope);
//container.Register(Lifetime.Scope);
diff --git a/src/Umbraco.Web/Composing/Current.cs b/src/Umbraco.Web/Composing/Current.cs
index bd0e3d02dc..70b0927c43 100644
--- a/src/Umbraco.Web/Composing/Current.cs
+++ b/src/Umbraco.Web/Composing/Current.cs
@@ -63,7 +63,7 @@ namespace Umbraco.Web.Composing
#region Temp & Special
- // todo - have to keep this until tests are refactored
+ // TODO: have to keep this until tests are refactored
// but then, it should all be managed properly in the container
public static IUmbracoContextAccessor UmbracoContextAccessor
{
diff --git a/src/Umbraco.Web/Controllers/UmbRegisterController.cs b/src/Umbraco.Web/Controllers/UmbRegisterController.cs
index 66c8a8143c..726797c26a 100644
--- a/src/Umbraco.Web/Controllers/UmbRegisterController.cs
+++ b/src/Umbraco.Web/Controllers/UmbRegisterController.cs
@@ -64,7 +64,7 @@ namespace Umbraco.Web.Controllers
break;
case MembershipCreateStatus.InvalidQuestion:
case MembershipCreateStatus.InvalidAnswer:
- //TODO: Support q/a http://issues.umbraco.org/issue/U4-3213
+ // TODO: Support q/a http://issues.umbraco.org/issue/U4-3213
throw new NotImplementedException(status.ToString());
case MembershipCreateStatus.InvalidEmail:
ModelState.AddModelError("registerModel.Email", "Email is invalid");
diff --git a/src/Umbraco.Web/Editors/BackOfficeController.cs b/src/Umbraco.Web/Editors/BackOfficeController.cs
index 7e45797107..2665105120 100644
--- a/src/Umbraco.Web/Editors/BackOfficeController.cs
+++ b/src/Umbraco.Web/Editors/BackOfficeController.cs
@@ -390,7 +390,7 @@ namespace Umbraco.Web.Editors
var user = await UserManager.FindAsync(loginInfo.Login);
if (user != null)
{
- //TODO: It might be worth keeping some of the claims associated with the ExternalLoginInfo, in which case we
+ // TODO: It might be worth keeping some of the claims associated with the ExternalLoginInfo, in which case we
// wouldn't necessarily sign the user in here with the standard login, instead we'd update the
// UseUmbracoBackOfficeExternalCookieAuthentication extension method to have the correct provider and claims factory,
// ticket format, etc.. to create our back office user including the claims assigned and in this method we'd just ensure
diff --git a/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs b/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
index 66289a3c7c..c499749591 100644
--- a/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
+++ b/src/Umbraco.Web/Editors/BackOfficeServerVariables.cs
@@ -87,7 +87,7 @@ namespace Umbraco.Web.Editors
}
}
- //TODO: This is ultra confusing! this same key is used for different things, when returning the full app when authenticated it is this URL but when not auth'd it's actually the ServerVariables address
+ // TODO: This is ultra confusing! this same key is used for different things, when returning the full app when authenticated it is this URL but when not auth'd it's actually the ServerVariables address
// so based on compat and how things are currently working we need to replace the serverVarsJs one
((Dictionary)defaults["umbracoUrls"])["serverVarsJs"] = _urlHelper.Action("ServerVariables", "BackOffice");
@@ -105,7 +105,7 @@ namespace Umbraco.Web.Editors
{
"umbracoUrls", new Dictionary
{
- //TODO: Add 'umbracoApiControllerBaseUrl' which people can use in JS
+ // TODO: Add 'umbracoApiControllerBaseUrl' which people can use in JS
// to prepend their URL. We could then also use this in our own resources instead of
// having each url defined here explicitly - we can do that in v8! for now
// for umbraco services we'll stick to explicitly defining the endpoints.
@@ -114,7 +114,7 @@ namespace Umbraco.Web.Editors
{"externalLinkLoginsUrl", _urlHelper.Action("LinkLogin", "BackOffice")},
{"manifestAssetList", _urlHelper.Action("GetManifestAssetList", "BackOffice")},
{"gridConfig", _urlHelper.Action("GetGridConfig", "BackOffice")},
- //TODO: This is ultra confusing! this same key is used for different things, when returning the full app when authenticated it is this URL but when not auth'd it's actually the ServerVariables address
+ // TODO: This is ultra confusing! this same key is used for different things, when returning the full app when authenticated it is this URL but when not auth'd it's actually the ServerVariables address
{"serverVarsJs", _urlHelper.Action("Application", "BackOffice")},
//API URLs
{
@@ -370,7 +370,7 @@ namespace Umbraco.Web.Editors
.Select(p => new
{
authType = p.AuthenticationType, caption = p.Caption,
- //TODO: Need to see if this exposes any sensitive data!
+ // TODO: Need to see if this exposes any sensitive data!
properties = p.Properties
})
.ToArray()
@@ -429,7 +429,7 @@ namespace Umbraco.Web.Editors
/// it's resolving which is unnecessary and annoying.
///
private static readonly Lazy> TreeControllerTypes
- = new Lazy>(() => Current.TypeLoader.GetAttributedTreeControllers().ToArray()); // todo inject
+ = new Lazy>(() => Current.TypeLoader.GetAttributedTreeControllers().ToArray()); // TODO: inject
///
/// Returns the server variables regarding the application state
diff --git a/src/Umbraco.Web/Editors/Binders/ContentModelBinderHelper.cs b/src/Umbraco.Web/Editors/Binders/ContentModelBinderHelper.cs
index dd6d22a967..6fc0e123a5 100644
--- a/src/Umbraco.Web/Editors/Binders/ContentModelBinderHelper.cs
+++ b/src/Umbraco.Web/Editors/Binders/ContentModelBinderHelper.cs
@@ -50,7 +50,7 @@ namespace Umbraco.Web.Editors.Binders
}
}
- //TODO: anything after 3 parts we can put in metadata
+ // TODO: anything after 3 parts we can put in metadata
var fileName = file.Headers.ContentDisposition.FileName.Trim('\"');
diff --git a/src/Umbraco.Web/Editors/Binders/MemberBinder.cs b/src/Umbraco.Web/Editors/Binders/MemberBinder.cs
index f54fd12c30..393fab98a9 100644
--- a/src/Umbraco.Web/Editors/Binders/MemberBinder.cs
+++ b/src/Umbraco.Web/Editors/Binders/MemberBinder.cs
@@ -82,7 +82,7 @@ namespace Umbraco.Web.Editors.Binders
throw new InvalidOperationException("Could not find member with key " + model.Key);
}
- //TODO: Support this scenario!
+ // TODO: Support this scenario!
//if (scenario == MembershipScenario.CustomProviderWithUmbracoLink)
//{
// //if there's a 'Member' type then we should be able to just go get it from the db since it was created with a link
diff --git a/src/Umbraco.Web/Editors/CodeFileController.cs b/src/Umbraco.Web/Editors/CodeFileController.cs
index 6db0c6a8f9..63b6c173b5 100644
--- a/src/Umbraco.Web/Editors/CodeFileController.cs
+++ b/src/Umbraco.Web/Editors/CodeFileController.cs
@@ -23,7 +23,7 @@ using StylesheetRule = Umbraco.Web.Models.ContentEditing.StylesheetRule;
namespace Umbraco.Web.Editors
{
- //TODO: Put some exception filters in our webapi to return 404 instead of 500 when we throw ArgumentNullException
+ // TODO: Put some exception filters in our webapi to return 404 instead of 500 when we throw ArgumentNullException
// ref: https://www.exceptionnotfound.net/the-asp-net-web-api-exception-handling-pipeline-a-guided-tour/
[PluginController("UmbracoApi")]
[PrefixlessBodyModelValidator]
diff --git a/src/Umbraco.Web/Editors/ContentController.cs b/src/Umbraco.Web/Editors/ContentController.cs
index 841c60938a..0fba76e84b 100644
--- a/src/Umbraco.Web/Editors/ContentController.cs
+++ b/src/Umbraco.Web/Editors/ContentController.cs
@@ -175,7 +175,7 @@ namespace Umbraco.Web.Editors
var content = Services.ContentService.GetById(contentId);
if (content == null) throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound));
- //TODO: Should non-admins be able to see detailed permissions?
+ // TODO: Should non-admins be able to see detailed permissions?
var allUserGroups = Services.UserService.GetAllUserGroups();
@@ -271,7 +271,7 @@ namespace Umbraco.Web.Editors
content.AllowedActions = new[] { "A" };
content.IsBlueprint = true;
- //todo - exclude the content apps here
+ // TODO: exclude the content apps here
//var excludeProps = new[] { "_umb_urls", "_umb_releasedate", "_umb_expiredate", "_umb_template" };
//var propsTab = content.Tabs.Last();
//propsTab.Properties = propsTab.Properties
@@ -433,7 +433,7 @@ namespace Umbraco.Web.Editors
[FilterAllowedOutgoingContent(typeof(IEnumerable>), "Items")]
public PagedResult> GetChildren(
int id,
- int pageNumber = 0, //TODO: This should be '1' as it's not the index
+ int pageNumber = 0, // TODO: This should be '1' as it's not the index
int pageSize = 0,
string orderBy = "SortOrder",
Direction orderDirection = Direction.Ascending,
@@ -1091,7 +1091,7 @@ namespace Umbraco.Web.Editors
{
//its invariant, proceed normally
var publishStatus = Services.ContentService.SaveAndPublishBranch(contentItem.PersistedContent, force, userId: Security.CurrentUser.Id);
- //TODO: Deal with multiple cancellations
+ // TODO: Deal with multiple cancellations
wasCancelled = publishStatus.Any(x => x.Result == PublishResultType.FailedPublishCancelledByEvent);
successfulCultures = Array.Empty();
return publishStatus;
@@ -1124,7 +1124,7 @@ namespace Umbraco.Web.Editors
{
//proceed to publish if all validation still succeeds
var publishStatus = Services.ContentService.SaveAndPublishBranch(contentItem.PersistedContent, force, culturesToPublish, Security.CurrentUser.Id);
- //TODO: Deal with multiple cancellations
+ // TODO: Deal with multiple cancellations
wasCancelled = publishStatus.Any(x => x.Result == PublishResultType.FailedPublishCancelledByEvent);
successfulCultures = contentItem.Variants.Where(x => x.Publish).Select(x => x.Culture).ToArray();
return publishStatus;
@@ -1431,7 +1431,7 @@ namespace Umbraco.Web.Editors
if (!sortResult.Success)
{
Logger.Warn("Content sorting failed, this was probably caused by an event being cancelled");
- //TODO: Now you can cancel sorting, does the event messages bubble up automatically?
+ // TODO: Now you can cancel sorting, does the event messages bubble up automatically?
return Request.CreateValidationErrorResponse("Content sorting failed, this was probably caused by an event being cancelled");
}
@@ -1907,7 +1907,7 @@ namespace Umbraco.Web.Editors
{
case PublishResultType.SuccessPublishAlready:
{
- //TODO: Here we should have messaging for when there are release dates specified like https://github.com/umbraco/Umbraco-CMS/pull/3507
+ // TODO: Here we should have messaging for when there are release dates specified like https://github.com/umbraco/Umbraco-CMS/pull/3507
// but this will take a bit of effort because we need to deal with variants, different messaging, etc... A quick attempt was made here:
// http://github.com/umbraco/Umbraco-CMS/commit/9b3de7b655e07c612c824699b48a533c0448131a
@@ -1938,7 +1938,7 @@ namespace Umbraco.Web.Editors
break;
case PublishResultType.SuccessPublish:
{
- //TODO: Here we should have messaging for when there are release dates specified like https://github.com/umbraco/Umbraco-CMS/pull/3507
+ // TODO: Here we should have messaging for when there are release dates specified like https://github.com/umbraco/Umbraco-CMS/pull/3507
// but this will take a bit of effort because we need to deal with variants, different messaging, etc... A quick attempt was made here:
// http://github.com/umbraco/Umbraco-CMS/commit/9b3de7b655e07c612c824699b48a533c0448131a
@@ -2148,7 +2148,7 @@ namespace Umbraco.Web.Editors
default:
notificationModel.AddErrorNotification(
Services.TextService.Localize("speechBubbles/operationFailedHeader"),
- null); //TODO: There is no specific failed to save error message AFAIK
+ null); // TODO: There is no specific failed to save error message AFAIK
break;
case OperationResultType.FailedCancelledByEvent:
notificationModel.AddErrorNotification(
diff --git a/src/Umbraco.Web/Editors/ContentControllerBase.cs b/src/Umbraco.Web/Editors/ContentControllerBase.cs
index 904e6911c9..d7c4d4f7f7 100644
--- a/src/Umbraco.Web/Editors/ContentControllerBase.cs
+++ b/src/Umbraco.Web/Editors/ContentControllerBase.cs
@@ -148,7 +148,7 @@ namespace Umbraco.Web.Editors
string[] messageParams = null)
{
//if there's already a default event message, don't add our default one
- //todo inject
+ // TODO: inject
var msgs = Current.EventMessages;
if (msgs != null && msgs.GetAll().Any(x => x.IsDefaultEventMessage)) return;
diff --git a/src/Umbraco.Web/Editors/ContentTypeController.cs b/src/Umbraco.Web/Editors/ContentTypeController.cs
index d5a72a7378..3800871f88 100644
--- a/src/Umbraco.Web/Editors/ContentTypeController.cs
+++ b/src/Umbraco.Web/Editors/ContentTypeController.cs
@@ -35,7 +35,7 @@ using Notification = Umbraco.Web.Models.ContentEditing.Notification;
namespace Umbraco.Web.Editors
{
- //TODO: We'll need to be careful about the security on this controller, when we start implementing
+ // TODO: We'll need to be careful about the security on this controller, when we start implementing
// methods to modify content types we'll need to enforce security on the individual methods, we
// cannot put security on the whole controller because things like
// GetAllowedChildren, GetPropertyTypeScaffold, GetAllPropertyTypeAliases are required for content editing.
diff --git a/src/Umbraco.Web/Editors/CurrentUserController.cs b/src/Umbraco.Web/Editors/CurrentUserController.cs
index f759a9e604..30f3a431ad 100644
--- a/src/Umbraco.Web/Editors/CurrentUserController.cs
+++ b/src/Umbraco.Web/Editors/CurrentUserController.cs
@@ -177,7 +177,7 @@ namespace Umbraco.Web.Editors
var userMgr = this.TryGetOwinContext().Result.GetBackOfficeUserManager();
//raise the reset event
- //TODO: I don't think this is required anymore since from 7.7 we no longer display the reset password checkbox since that didn't make sense.
+ // TODO: I don't think this is required anymore since from 7.7 we no longer display the reset password checkbox since that didn't make sense.
if (data.Reset.HasValue && data.Reset.Value)
{
userMgr.RaisePasswordResetEvent(Security.CurrentUser.Id);
diff --git a/src/Umbraco.Web/Editors/DashboardSecurity.cs b/src/Umbraco.Web/Editors/DashboardSecurity.cs
index fdbf5af7d9..2e3fc4123b 100644
--- a/src/Umbraco.Web/Editors/DashboardSecurity.cs
+++ b/src/Umbraco.Web/Editors/DashboardSecurity.cs
@@ -15,7 +15,7 @@ namespace Umbraco.Web.Editors
///
internal class DashboardSecurity
{
- //TODO: Unit test all this!!! :/
+ // TODO: Unit test all this!!! :/
public static bool AuthorizeAccess(ISection dashboardSection, IUser user, ISectionService sectionService)
{
diff --git a/src/Umbraco.Web/Editors/DataTypeController.cs b/src/Umbraco.Web/Editors/DataTypeController.cs
index 0af3a1cfe7..4446373cd3 100644
--- a/src/Umbraco.Web/Editors/DataTypeController.cs
+++ b/src/Umbraco.Web/Editors/DataTypeController.cs
@@ -204,7 +204,7 @@ namespace Umbraco.Web.Editors
{
//If we've made it here, then everything has been wired up and validated by the attribute
- //TODO: Check if the property editor has changed, if it has ensure we don't pass the
+ // TODO: Check if the property editor has changed, if it has ensure we don't pass the
// existing values to the new property editor!
// get the current configuration,
diff --git a/src/Umbraco.Web/Editors/EditorValidator.cs b/src/Umbraco.Web/Editors/EditorValidator.cs
index 537ae834d3..af355206a5 100644
--- a/src/Umbraco.Web/Editors/EditorValidator.cs
+++ b/src/Umbraco.Web/Editors/EditorValidator.cs
@@ -16,7 +16,7 @@ namespace Umbraco.Web.Editors
{
var modelType = model.GetType();
- var validationResults = Current.EditorValidators // todo inject
+ var validationResults = Current.EditorValidators // TODO: inject
.Where(x => x.ModelType == modelType)
.SelectMany(x => x.Validate(model))
.Where(x => !string.IsNullOrWhiteSpace(x.ErrorMessage) && x.MemberNames.Any());
diff --git a/src/Umbraco.Web/Editors/EntityController.cs b/src/Umbraco.Web/Editors/EntityController.cs
index 6fcf5b0e2d..5cf248d2a6 100644
--- a/src/Umbraco.Web/Editors/EntityController.cs
+++ b/src/Umbraco.Web/Editors/EntityController.cs
@@ -107,7 +107,7 @@ namespace Umbraco.Web.Editors
[HttpGet]
public IEnumerable Search(string query, UmbracoEntityTypes type, string searchFrom = null)
{
- //TODO: Should we restrict search results based on what app the user has access to?
+ // TODO: Should we restrict search results based on what app the user has access to?
// - Theoretically you shouldn't be able to see member data if you don't have access to members right?
if (string.IsNullOrEmpty(query))
@@ -252,7 +252,7 @@ namespace Umbraco.Web.Editors
///
public EntityBasic GetByQuery(string query, int nodeContextId, UmbracoEntityTypes type)
{
- //TODO: Rename this!!! It's misleading, it should be GetByXPath
+ // TODO: Rename this!!! It's misleading, it should be GetByXPath
if (type != UmbracoEntityTypes.Document)
@@ -628,7 +628,7 @@ namespace Umbraco.Web.Editors
var objectType = ConvertToObjectType(entityType);
if (objectType.HasValue)
{
- //TODO: Need to check for Object types that support hierarchic here, some might not.
+ // TODO: Need to check for Object types that support hierarchic here, some might not.
return Services.EntityService.GetChildren(id, objectType.Value)
.WhereNotNull()
@@ -651,7 +651,7 @@ namespace Umbraco.Web.Editors
var objectType = ConvertToObjectType(entityType);
if (objectType.HasValue)
{
- //TODO: Need to check for Object types that support hierarchic here, some might not.
+ // TODO: Need to check for Object types that support hierarchic here, some might not.
var ids = Services.EntityService.Get(id).Path.Split(',').Select(int.Parse).Distinct().ToArray();
@@ -880,7 +880,7 @@ namespace Umbraco.Web.Editors
var objectType = ConvertToObjectType(entityType);
if (objectType.HasValue)
{
- //TODO: Should we order this by something ?
+ // TODO: Should we order this by something ?
var entities = Services.EntityService.GetAll(objectType.Value).WhereNotNull().Select(Mapper.Map);
return ExecutePostFilter(entities, postFilter, postFilterParams);
}
@@ -957,7 +957,7 @@ namespace Umbraco.Web.Editors
// if a post filter is assigned then try to execute it
if (postFilter.IsNullOrWhiteSpace() == false)
{
- // fixme/task/critical - trouble is, we've killed the dynamic Where thing!
+ // FIXME: task/critical - trouble is, we've killed the dynamic Where thing!
throw new NotImplementedException("oops");
//return postFilterParams == null
// ? entities.AsQueryable().Where(postFilter).ToArray()
diff --git a/src/Umbraco.Web/Editors/Filters/ContentItemValidationHelper.cs b/src/Umbraco.Web/Editors/Filters/ContentItemValidationHelper.cs
index e54bb3ef71..eacc904d9b 100644
--- a/src/Umbraco.Web/Editors/Filters/ContentItemValidationHelper.cs
+++ b/src/Umbraco.Web/Editors/Filters/ContentItemValidationHelper.cs
@@ -96,7 +96,7 @@ namespace Umbraco.Web.Editors.Filters
{
if (persistedProperties.Any(property => property.Alias == p.Alias) == false)
{
- //TODO: Do we return errors here ? If someone deletes a property whilst their editing then should we just
+ // TODO: Do we return errors here ? If someone deletes a property whilst their editing then should we just
//save the property data that remains? Or inform them they need to reload... not sure. This problem exists currently too i think.
var message = $"property with alias: {p.Alias} was not found";
diff --git a/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs b/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs
index 64e1c76417..a0565c1d2f 100644
--- a/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs
+++ b/src/Umbraco.Web/Editors/Filters/ContentSaveValidationAttribute.cs
@@ -152,7 +152,7 @@ namespace Umbraco.Web.Editors.Filters
case ContentSaveAction.PublishWithDescendantsNew:
case ContentSaveAction.PublishWithDescendantsForceNew:
//Publish new requires both ActionNew AND ActionPublish
- //TODO: Shouldn't publish also require ActionUpdate since it will definitely perform an update to publish but maybe that's just implied
+ // TODO: Shouldn't publish also require ActionUpdate since it will definitely perform an update to publish but maybe that's just implied
permissionToCheck.Add(ActionNew.ActionLetter);
permissionToCheck.Add(ActionPublish.ActionLetter);
diff --git a/src/Umbraco.Web/Editors/Filters/UserGroupValidateAttribute.cs b/src/Umbraco.Web/Editors/Filters/UserGroupValidateAttribute.cs
index 3481c754d3..fe6a049768 100644
--- a/src/Umbraco.Web/Editors/Filters/UserGroupValidateAttribute.cs
+++ b/src/Umbraco.Web/Editors/Filters/UserGroupValidateAttribute.cs
@@ -27,7 +27,7 @@ namespace Umbraco.Web.Editors.Filters
_userService = userService;
}
- private IUserService UserService => _userService ?? Current.Services.UserService; // todo inject
+ private IUserService UserService => _userService ?? Current.Services.UserService; // TODO: inject
public override void OnActionExecuting(HttpActionContext actionContext)
{
@@ -70,7 +70,7 @@ namespace Umbraco.Web.Editors.Filters
actionContext.ModelState.AddModelError("Alias", "A user group with this alias already exists");
}
- //TODO: Validate the name is unique?
+ // TODO: Validate the name is unique?
if (actionContext.ModelState.IsValid == false)
{
diff --git a/src/Umbraco.Web/Editors/MediaController.cs b/src/Umbraco.Web/Editors/MediaController.cs
index fe081c1cb4..5441b80264 100644
--- a/src/Umbraco.Web/Editors/MediaController.cs
+++ b/src/Umbraco.Web/Editors/MediaController.cs
@@ -227,7 +227,7 @@ namespace Umbraco.Web.Editors
[FilterAllowedOutgoingMedia(typeof(IEnumerable>))]
public IEnumerable> GetRootMedia()
{
- //TODO: Add permissions check!
+ // TODO: Add permissions check!
return Services.MediaService.GetRootMedia()
.Select(Mapper.Map>);
diff --git a/src/Umbraco.Web/Editors/MediaTypeController.cs b/src/Umbraco.Web/Editors/MediaTypeController.cs
index dd1f53f8af..bb126ed1dd 100644
--- a/src/Umbraco.Web/Editors/MediaTypeController.cs
+++ b/src/Umbraco.Web/Editors/MediaTypeController.cs
@@ -24,7 +24,7 @@ using Umbraco.Web.Composing;
namespace Umbraco.Web.Editors
{
- //TODO: We'll need to be careful about the security on this controller, when we start implementing
+ // TODO: We'll need to be careful about the security on this controller, when we start implementing
// methods to modify content types we'll need to enforce security on the individual methods, we
// cannot put security on the whole controller because things like GetAllowedChildren are required for content editing.
diff --git a/src/Umbraco.Web/Editors/MemberController.cs b/src/Umbraco.Web/Editors/MemberController.cs
index 2211bea76b..f4a8dfbd56 100644
--- a/src/Umbraco.Web/Editors/MemberController.cs
+++ b/src/Umbraco.Web/Editors/MemberController.cs
@@ -179,7 +179,7 @@ namespace Umbraco.Web.Editors
return Mapper.Map(foundMember);
case MembershipScenario.CustomProviderWithUmbracoLink:
- //TODO: Support editing custom properties for members with a custom membership provider here.
+ // TODO: Support editing custom properties for members with a custom membership provider here.
//foundMember = Services.MemberService.GetByKey(key);
//if (foundMember == null)
@@ -238,7 +238,7 @@ namespace Umbraco.Web.Editors
emptyContent.AdditionalData["NewPassword"] = Membership.GeneratePassword(provider.MinRequiredPasswordLength, provider.MinRequiredNonAlphanumericCharacters);
return Mapper.Map(emptyContent);
case MembershipScenario.CustomProviderWithUmbracoLink:
- //TODO: Support editing custom properties for members with a custom membership provider here.
+ // TODO: Support editing custom properties for members with a custom membership provider here.
case MembershipScenario.StandaloneCustomProvider:
default:
@@ -275,7 +275,7 @@ namespace Umbraco.Web.Editors
{
ModelState.Remove("ContentTypeAlias");
- //TODO: We're removing this because we are not displaying it but when we support the CustomProviderWithUmbracoLink scenario
+ // TODO: We're removing this because we are not displaying it but when we support the CustomProviderWithUmbracoLink scenario
// we will be able to have a real name associated so do not remove this state once that is implemented!
ModelState.Remove("Name");
}
@@ -291,7 +291,7 @@ namespace Umbraco.Web.Editors
throw new HttpResponseException(Request.CreateValidationErrorResponse(forDisplay));
}
- //TODO: WE need to support this! - requires UI updates, etc...
+ // TODO: WE need to support this! - requires UI updates, etc...
if (_provider.RequiresQuestionAndAnswer)
{
throw new NotSupportedException("Currently the member editor does not support providers that have RequiresQuestionAndAnswer specified");
@@ -334,7 +334,7 @@ namespace Umbraco.Web.Editors
}
//save the IMember -
- //TODO: When we support the CustomProviderWithUmbracoLink scenario, we'll need to save the custom properties for that here too
+ // TODO: When we support the CustomProviderWithUmbracoLink scenario, we'll need to save the custom properties for that here too
if (MembershipScenario == MembershipScenario.NativeUmbraco)
{
//save the item
@@ -584,7 +584,7 @@ namespace Umbraco.Web.Editors
UpdateName(contentItem);
- //re-assign the mapped values that are not part of the membership provider properties.
+ // re-assign the mapped values that are not part of the membership provider properties.
var builtInAliases = Constants.Conventions.Member.GetStandardPropertyTypeStubs().Select(x => x.Key).ToArray();
foreach (var p in contentItem.PersistedContent.Properties)
{
@@ -593,10 +593,10 @@ namespace Umbraco.Web.Editors
{
p.SetValue(valueMapped.GetValue());
- // fixme/task - ok, I give up, at that point tags are dead here, until we figure it out
- //p.TagChanges.Behavior = valueMapped.TagChanges.Behavior;
- //p.TagChanges.Enable = valueMapped.TagChanges.Enable;
- //p.TagChanges.Tags = valueMapped.TagChanges.Tags;
+ // FIXME: /task - ok, I give up, at that point tags are dead here, until we figure it out
+ // p.TagChanges.Behavior = valueMapped.TagChanges.Behavior;
+ // p.TagChanges.Enable = valueMapped.TagChanges.Enable;
+ // p.TagChanges.Tags = valueMapped.TagChanges.Tags;
}
}
}
@@ -652,7 +652,7 @@ namespace Umbraco.Web.Editors
case MembershipScenario.NativeUmbraco:
//We are using the umbraco membership provider, create the member using the membership provider first.
var umbracoMembershipProvider = (UmbracoMembershipProviderBase)_provider;
- //TODO: We are not supporting q/a - passing in empty here
+ // TODO: We are not supporting q/a - passing in empty here
membershipUser = umbracoMembershipProvider.CreateUser(
contentItem.ContentTypeAlias, contentItem.Username,
contentItem.Password.NewPassword,
@@ -668,7 +668,7 @@ namespace Umbraco.Web.Editors
//create it - this persisted item has already been set in the MemberBinder based on the 'Member' member type:
Services.MemberService.Save(contentItem.PersistedContent);
- //TODO: We are not supporting q/a - passing in empty here
+ // TODO: We are not supporting q/a - passing in empty here
membershipUser = _provider.CreateUser(
contentItem.Username,
contentItem.Password.NewPassword,
@@ -685,7 +685,7 @@ namespace Umbraco.Web.Editors
// link back to the umbraco data
var newKey = Guid.NewGuid();
- //TODO: We are not supporting q/a - passing in empty here
+ // TODO: We are not supporting q/a - passing in empty here
membershipUser = _provider.CreateUser(
contentItem.Username,
contentItem.Password.NewPassword,
@@ -701,7 +701,7 @@ namespace Umbraco.Web.Editors
throw new ArgumentOutOfRangeException();
}
- //TODO: Localize these!
+ // TODO: Localize these!
switch (status)
{
case MembershipCreateStatus.Success:
diff --git a/src/Umbraco.Web/HealthCheck/Checks/Config/ConfigurationService.cs b/src/Umbraco.Web/HealthCheck/Checks/Config/ConfigurationService.cs
index 8b080af88c..95b458b142 100644
--- a/src/Umbraco.Web/HealthCheck/Checks/Config/ConfigurationService.cs
+++ b/src/Umbraco.Web/HealthCheck/Checks/Config/ConfigurationService.cs
@@ -7,7 +7,7 @@ using Umbraco.Web.Composing;
namespace Umbraco.Web.HealthCheck.Checks.Config
{
- //TODO: Add config transform for when config with specified XPath is not found
+ // TODO: Add config transform for when config with specified XPath is not found
public class ConfigurationService
{
diff --git a/src/Umbraco.Web/HealthCheck/HealthCheck.cs b/src/Umbraco.Web/HealthCheck/HealthCheck.cs
index 2c8b0c3c84..81aa1e47d4 100644
--- a/src/Umbraco.Web/HealthCheck/HealthCheck.cs
+++ b/src/Umbraco.Web/HealthCheck/HealthCheck.cs
@@ -50,6 +50,6 @@ namespace Umbraco.Web.HealthCheck
///
public abstract HealthCheckStatus ExecuteAction(HealthCheckAction action);
- //TODO: What else?
+ // TODO: What else?
}
}
diff --git a/src/Umbraco.Web/HealthCheck/HealthCheckAttribute.cs b/src/Umbraco.Web/HealthCheck/HealthCheckAttribute.cs
index 35a8e022fb..fe206f3186 100644
--- a/src/Umbraco.Web/HealthCheck/HealthCheckAttribute.cs
+++ b/src/Umbraco.Web/HealthCheck/HealthCheckAttribute.cs
@@ -21,6 +21,6 @@ namespace Umbraco.Web.HealthCheck
public Guid Id { get; private set; }
- //TODO: Do we need more metadata?
+ // TODO: Do we need more metadata?
}
}
diff --git a/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs b/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs
index da906c30f9..61028699f0 100644
--- a/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs
+++ b/src/Umbraco.Web/HealthCheck/HealthCheckResults.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Web.HealthCheck
private readonly Dictionary> _results;
public readonly bool AllChecksSuccessful;
- private ILogger Logger => Current.Logger; // todo inject
+ private ILogger Logger => Current.Logger; // TODO: inject
public HealthCheckResults(IEnumerable checks)
{
diff --git a/src/Umbraco.Web/HealthCheck/HealthCheckStatus.cs b/src/Umbraco.Web/HealthCheck/HealthCheckStatus.cs
index 2db0b1f2e7..1d06f352c0 100644
--- a/src/Umbraco.Web/HealthCheck/HealthCheckStatus.cs
+++ b/src/Umbraco.Web/HealthCheck/HealthCheckStatus.cs
@@ -49,6 +49,6 @@ namespace Umbraco.Web.HealthCheck
[DataMember(Name = "actions")]
public IEnumerable Actions { get; set; }
- //TODO: What else?
+ // TODO: What else?
}
}
diff --git a/src/Umbraco.Web/Install/Controllers/InstallApiController.cs b/src/Umbraco.Web/Install/Controllers/InstallApiController.cs
index bf371bacf0..dc315c571a 100644
--- a/src/Umbraco.Web/Install/Controllers/InstallApiController.cs
+++ b/src/Umbraco.Web/Install/Controllers/InstallApiController.cs
@@ -52,7 +52,7 @@ namespace Umbraco.Web.Install.Controllers
{
var setup = new InstallSetup();
- //TODO: Check for user/site token
+ // TODO: Check for user/site token
var steps = new List();
diff --git a/src/Umbraco.Web/Install/InstallStepCollection.cs b/src/Umbraco.Web/Install/InstallStepCollection.cs
index d5c32d0ce6..fd8f248325 100644
--- a/src/Umbraco.Web/Install/InstallStepCollection.cs
+++ b/src/Umbraco.Web/Install/InstallStepCollection.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Web.Install
{
_installHelper = installHelper;
- // todo this is ugly but I have a branch where it's nicely refactored - for now we just want to manage ordering
+ // TODO: this is ugly but I have a branch where it's nicely refactored - for now we just want to manage ordering
var a = installerSteps.ToArray();
_orderedInstallerSteps = new InstallSetupStep[]
{
@@ -26,7 +26,7 @@ namespace Umbraco.Web.Install
a.OfType().First(),
a.OfType().First(),
- //TODO: Add these back once we have a compatible starter kit
+ // TODO: Add these back once we have a compatible starter kit
//orderedInstallerSteps.OfType().First(),
//orderedInstallerSteps.OfType().First(),
//orderedInstallerSteps.OfType().First(),
diff --git a/src/Umbraco.Web/Install/InstallSteps/NewInstallStep.cs b/src/Umbraco.Web/Install/InstallSteps/NewInstallStep.cs
index 7b53ecb966..151265f394 100644
--- a/src/Umbraco.Web/Install/InstallSteps/NewInstallStep.cs
+++ b/src/Umbraco.Web/Install/InstallSteps/NewInstallStep.cs
@@ -42,7 +42,7 @@ namespace Umbraco.Web.Install.InstallSteps
_globalSettings = globalSettings;
}
- //TODO: Change all logic in this step to use ASP.NET Identity NOT MembershipProviders
+ // TODO: Change all logic in this step to use ASP.NET Identity NOT MembershipProviders
private MembershipProvider CurrentProvider
{
get
diff --git a/src/Umbraco.Web/Install/InstallSteps/StarterKitCleanupStep.cs b/src/Umbraco.Web/Install/InstallSteps/StarterKitCleanupStep.cs
index 3ddc675405..6b90ff0a78 100644
--- a/src/Umbraco.Web/Install/InstallSteps/StarterKitCleanupStep.cs
+++ b/src/Umbraco.Web/Install/InstallSteps/StarterKitCleanupStep.cs
@@ -26,7 +26,7 @@ namespace Umbraco.Web.Install.InstallSteps
{
packageFile = HttpUtility.UrlDecode(packageFile);
- //todo: When does the zip file get deleted?
+ // TODO: When does the zip file get deleted?
}
public override bool RequiresExecution(object model)
diff --git a/src/Umbraco.Web/Install/InstallSteps/UpgradeStep.cs b/src/Umbraco.Web/Install/InstallSteps/UpgradeStep.cs
index 1477105797..3cab550a87 100644
--- a/src/Umbraco.Web/Install/InstallSteps/UpgradeStep.cs
+++ b/src/Umbraco.Web/Install/InstallSteps/UpgradeStep.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Web.Install.InstallSteps
{
get
{
- // todo- if UmbracoVersion.Local is null?
+ // TODO: if UmbracoVersion.Local is null?
// it means that there is a database but the web.config version is cleared
// that was a "normal" way to force the upgrader to execute, and we would detect the current
// version via the DB like DatabaseSchemaResult.DetermineInstalledVersion - magic, do we really
@@ -37,7 +37,7 @@ namespace Umbraco.Web.Install.InstallSteps
return value;
}
- var state = Current.RuntimeState; // todo inject
+ var state = Current.RuntimeState; // TODO: inject
var currentState = FormatGuidState(state.CurrentMigrationState);
var newState = FormatGuidState(state.FinalMigrationState);
diff --git a/src/Umbraco.Web/Install/Models/InstallPackageModel.cs b/src/Umbraco.Web/Install/Models/InstallPackageModel.cs
index 10335c48fc..0c7d270033 100644
--- a/src/Umbraco.Web/Install/Models/InstallPackageModel.cs
+++ b/src/Umbraco.Web/Install/Models/InstallPackageModel.cs
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Umbraco.Web.Install.Models
{
- //todo : do we need this?
+ // TODO: do we need this?
[Obsolete("This is only used for the obsolete controller InstallPackageController")]
[DataContract(Name = "installPackage", Namespace = "")]
public class InstallPackageModel
diff --git a/src/Umbraco.Web/Media/EmbedProviders/AbstractOEmbedProvider.cs b/src/Umbraco.Web/Media/EmbedProviders/AbstractOEmbedProvider.cs
index 921036c75a..c73e732268 100644
--- a/src/Umbraco.Web/Media/EmbedProviders/AbstractOEmbedProvider.cs
+++ b/src/Umbraco.Web/Media/EmbedProviders/AbstractOEmbedProvider.cs
@@ -10,7 +10,7 @@ using Umbraco.Core.Media;
namespace Umbraco.Web.Media.EmbedProviders
{
- //TODO: Make all Http calls async
+ // TODO: Make all Http calls async
public abstract class AbstractOEmbedProvider : IEmbedProvider
{
diff --git a/src/Umbraco.Web/MembershipProviderExtensions.cs b/src/Umbraco.Web/MembershipProviderExtensions.cs
index b833028850..133e886e1f 100644
--- a/src/Umbraco.Web/MembershipProviderExtensions.cs
+++ b/src/Umbraco.Web/MembershipProviderExtensions.cs
@@ -30,7 +30,7 @@ namespace Umbraco.Web
{"requiresQuestionAnswer", membershipProvider.RequiresQuestionAndAnswer},
{"allowManuallyChangingPassword", baseProvider != null && baseProvider.AllowManuallyChangingPassword},
{"minNonAlphaNumericChars", membershipProvider.MinRequiredNonAlphanumericCharacters}
- //TODO: Inject the other parameters in here to change the behavior of this control - based on the membership provider settings.
+ // TODO: Inject the other parameters in here to change the behavior of this control - based on the membership provider settings.
};
}
diff --git a/src/Umbraco.Web/Models/ContentEditing/MemberSave.cs b/src/Umbraco.Web/Models/ContentEditing/MemberSave.cs
index b25a210083..5132dbc3ec 100644
--- a/src/Umbraco.Web/Models/ContentEditing/MemberSave.cs
+++ b/src/Umbraco.Web/Models/ContentEditing/MemberSave.cs
@@ -37,6 +37,6 @@ namespace Umbraco.Web.Models.ContentEditing
public bool IsApproved { get; set; }
- //TODO: Need to add question / answer support
+ // TODO: Need to add question / answer support
}
}
diff --git a/src/Umbraco.Web/Models/ContentEditing/UserGroupPermissionsSave.cs b/src/Umbraco.Web/Models/ContentEditing/UserGroupPermissionsSave.cs
index e61f9debfa..4c9a751573 100644
--- a/src/Umbraco.Web/Models/ContentEditing/UserGroupPermissionsSave.cs
+++ b/src/Umbraco.Web/Models/ContentEditing/UserGroupPermissionsSave.cs
@@ -17,7 +17,7 @@ namespace Umbraco.Web.Models.ContentEditing
AssignedPermissions = new Dictionary>();
}
- //TODO: we should have an option to clear the permissions assigned to this node and instead just have them inherit - yes once we actually have inheritance!
+ // TODO: we should have an option to clear the permissions assigned to this node and instead just have them inherit - yes once we actually have inheritance!
[DataMember(Name = "contentId", IsRequired = true)]
[Required]
diff --git a/src/Umbraco.Web/Models/Mapping/ActionButtonsResolver.cs b/src/Umbraco.Web/Models/Mapping/ActionButtonsResolver.cs
index 6de0e704d5..c2f7abd487 100644
--- a/src/Umbraco.Web/Models/Mapping/ActionButtonsResolver.cs
+++ b/src/Umbraco.Web/Models/Mapping/ActionButtonsResolver.cs
@@ -35,7 +35,7 @@ namespace Umbraco.Web.Models.Mapping
path = parent == null ? "-1" : parent.Path;
}
- //TODO: This is certainly not ideal usage here - perhaps the best way to deal with this in the future is
+ // TODO: This is certainly not ideal usage here - perhaps the best way to deal with this in the future is
// with the IUmbracoContextAccessor. In the meantime, if used outside of a web app this will throw a null
// reference exception :(
return UserService.GetPermissionsForPath(UmbracoContext.Current.Security.CurrentUser, path).GetAllPermissions();
diff --git a/src/Umbraco.Web/Models/Mapping/ContentPropertyDisplayConverter.cs b/src/Umbraco.Web/Models/Mapping/ContentPropertyDisplayConverter.cs
index 3c2dd01c9c..84eaabf52b 100644
--- a/src/Umbraco.Web/Models/Mapping/ContentPropertyDisplayConverter.cs
+++ b/src/Umbraco.Web/Models/Mapping/ContentPropertyDisplayConverter.cs
@@ -29,7 +29,7 @@ namespace Umbraco.Web.Models.Mapping
var config = DataTypeService.GetDataType(originalProp.PropertyType.DataTypeId).Configuration;
- // todo - IDataValueEditor configuration - general issue
+ // TODO: IDataValueEditor configuration - general issue
// GetValueEditor() returns a non-configured IDataValueEditor
// - for richtext and nested, configuration determines HideLabel, so we need to configure the value editor
// - could configuration also determines ValueType, everywhere?
diff --git a/src/Umbraco.Web/Models/Mapping/ContentTypeBasicResolver.cs b/src/Umbraco.Web/Models/Mapping/ContentTypeBasicResolver.cs
index 01ff458bd5..cb745096ab 100644
--- a/src/Umbraco.Web/Models/Mapping/ContentTypeBasicResolver.cs
+++ b/src/Umbraco.Web/Models/Mapping/ContentTypeBasicResolver.cs
@@ -17,7 +17,7 @@ namespace Umbraco.Web.Models.Mapping
{
public ContentTypeBasic Resolve(TSource source, TDestination destination, ContentTypeBasic destMember, ResolutionContext context)
{
- //TODO: We can resolve the UmbracoContext from the IValueResolver options!
+ // TODO: We can resolve the UmbracoContext from the IValueResolver options!
// OMG
if (HttpContext.Current != null && UmbracoContext.Current != null && UmbracoContext.Current.Security.CurrentUser != null
&& UmbracoContext.Current.Security.CurrentUser.AllowedSections.Any(x => x.Equals(Constants.Applications.Settings)))
diff --git a/src/Umbraco.Web/Models/Mapping/ContentTypeProfileExtensions.cs b/src/Umbraco.Web/Models/Mapping/ContentTypeProfileExtensions.cs
index 257a53cf1a..0181fc25be 100644
--- a/src/Umbraco.Web/Models/Mapping/ContentTypeProfileExtensions.cs
+++ b/src/Umbraco.Web/Models/Mapping/ContentTypeProfileExtensions.cs
@@ -25,7 +25,7 @@ namespace Umbraco.Web.Models.Mapping
where TPropertyTypeBasic : PropertyTypeBasic
{
return mapping
- .ConstructUsing(x => new PropertyGroup(false)) // todo - we have NO idea of isPublishing here = wtf?
+ .ConstructUsing(x => new PropertyGroup(false)) // TODO: we have NO idea of isPublishing here = wtf?
.IgnoreEntityCommonProperties()
.ForMember(dest => dest.Id, map => map.Condition(src => src.Id > 0))
.ForMember(dest => dest.Key, map => map.Ignore())
@@ -66,7 +66,7 @@ namespace Umbraco.Web.Models.Mapping
foreach (var a in add)
{
- //TODO: Remove N+1 lookup
+ // TODO: Remove N+1 lookup
var addCt = contentTypeService.Get(a);
if (addCt != null)
dest.AddContentType(addCt);
@@ -91,7 +91,7 @@ namespace Umbraco.Web.Models.Mapping
foreach (var a in add)
{
- //TODO: Remove N+1 lookup
+ // TODO: Remove N+1 lookup
var addCt = mediaTypeService.Get(a);
if (addCt != null)
dest.AddContentType(addCt);
@@ -160,7 +160,7 @@ namespace Umbraco.Web.Models.Mapping
where TDestination : IContentTypeComposition
where TSourcePropertyType : PropertyTypeBasic
{
- // todo not so clean really
+ // TODO: not so clean really
var isPublishing = typeof(IContentType).IsAssignableFrom(typeof(TDestination));
mapping = mapping
diff --git a/src/Umbraco.Web/Models/Mapping/DatabaseTypeResolver.cs b/src/Umbraco.Web/Models/Mapping/DatabaseTypeResolver.cs
index c8fc9ea4b2..35702719dc 100644
--- a/src/Umbraco.Web/Models/Mapping/DatabaseTypeResolver.cs
+++ b/src/Umbraco.Web/Models/Mapping/DatabaseTypeResolver.cs
@@ -16,7 +16,7 @@ namespace Umbraco.Web.Models.Mapping
if (!Current.PropertyEditors.TryGet(source.EditorAlias, out var editor))
throw new InvalidOperationException($"Could not find property editor \"{source.EditorAlias}\".");
- // todo - what about source.PropertyEditor? can we get the configuration here? 'cos it may change the storage type?!
+ // TODO: what about source.PropertyEditor? can we get the configuration here? 'cos it may change the storage type?!
var valueType = editor.GetValueEditor().ValueType;
return ValueTypes.ToStorageType(valueType);
}
diff --git a/src/Umbraco.Web/Models/Mapping/EntityMapperProfile.cs b/src/Umbraco.Web/Models/Mapping/EntityMapperProfile.cs
index 8f99fe03dc..90e98822b1 100644
--- a/src/Umbraco.Web/Models/Mapping/EntityMapperProfile.cs
+++ b/src/Umbraco.Web/Models/Mapping/EntityMapperProfile.cs
@@ -124,7 +124,7 @@ namespace Umbraco.Web.Models.Mapping
.ForMember(dest => dest.AdditionalData, opt => opt.Ignore())
.AfterMap((src, dest) =>
{
- //TODO: Properly map this (not aftermap)
+ // TODO: Properly map this (not aftermap)
//get the icon if there is one
dest.Icon = src.Values.ContainsKey(UmbracoExamineIndex.IconFieldName)
@@ -204,7 +204,7 @@ namespace Umbraco.Web.Models.Mapping
// if there's no culture here, the issue is somewhere else (UI, whatever) - throw!
if (culture == null)
//throw new InvalidOperationException("Missing culture in mapping options.");
- // todo we should throw, but this is used in various places that won't set a culture yet
+ // TODO: we should throw, but this is used in various places that won't set a culture yet
return source.Name;
// if we don't have a name for a culture, it means the culture is not available, and
diff --git a/src/Umbraco.Web/Models/Mapping/MacroMapperProfile.cs b/src/Umbraco.Web/Models/Mapping/MacroMapperProfile.cs
index 1be74ce583..be1bcdefdc 100644
--- a/src/Umbraco.Web/Models/Mapping/MacroMapperProfile.cs
+++ b/src/Umbraco.Web/Models/Mapping/MacroMapperProfile.cs
@@ -36,7 +36,7 @@ namespace Umbraco.Web.Models.Mapping
{
//map the view and the config
// we need to show the deprecated ones for backwards compatibility
- var paramEditor = Current.ParameterEditors[property.EditorAlias]; // todo - include/filter deprecated?!
+ var paramEditor = Current.ParameterEditors[property.EditorAlias]; // TODO: include/filter deprecated?!
if (paramEditor == null)
{
//we'll just map this to a text box
diff --git a/src/Umbraco.Web/Models/Mapping/MemberMapperProfile.cs b/src/Umbraco.Web/Models/Mapping/MemberMapperProfile.cs
index 62afdd88c7..dbdac1f91f 100644
--- a/src/Umbraco.Web/Models/Mapping/MemberMapperProfile.cs
+++ b/src/Umbraco.Web/Models/Mapping/MemberMapperProfile.cs
@@ -56,7 +56,7 @@ namespace Umbraco.Web.Models.Mapping
.ForMember(dest => dest.FailedPasswordAttempts, opt => opt.Ignore())
.ForMember(dest => dest.DeleteDate, opt => opt.Ignore())
.ForMember(dest => dest.WriterId, opt => opt.Ignore())
- //TODO: Support these eventually
+ // TODO: Support these eventually
.ForMember(dest => dest.PasswordQuestion, opt => opt.Ignore())
.ForMember(dest => dest.RawPasswordAnswerValue, opt => opt.Ignore());
diff --git a/src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesResolver.cs b/src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesResolver.cs
index c8391abdb4..6134275c76 100644
--- a/src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesResolver.cs
+++ b/src/Umbraco.Web/Models/Mapping/MemberTabsAndPropertiesResolver.cs
@@ -139,7 +139,7 @@ namespace Umbraco.Web.Models.Mapping
// only when creating a new member and we want to have a generated password pre-filled.
Value = new Dictionary
{
- // todo why ignoreCase, what are we doing here?!
+ // TODO: why ignoreCase, what are we doing here?!
{"generatedPassword", member.GetAdditionalDataValueIgnoreCase("GeneratedPassword", null)},
{"newPassword", member.GetAdditionalDataValueIgnoreCase("NewPassword", null)},
},
diff --git a/src/Umbraco.Web/Models/Mapping/TabsAndPropertiesResolver.cs b/src/Umbraco.Web/Models/Mapping/TabsAndPropertiesResolver.cs
index 2f2af047f7..e8d7fb38b2 100644
--- a/src/Umbraco.Web/Models/Mapping/TabsAndPropertiesResolver.cs
+++ b/src/Umbraco.Web/Models/Mapping/TabsAndPropertiesResolver.cs
@@ -27,7 +27,7 @@ namespace Umbraco.Web.Models.Mapping
IgnoreProperties = ignoreProperties ?? throw new ArgumentNullException(nameof(ignoreProperties));
}
- //TODO: This should deserialize to ListViewConfiguration
+ // TODO: This should deserialize to ListViewConfiguration
private static int GetTabNumberFromConfig(IDictionary listViewConfig)
{
if (!listViewConfig.TryGetValue("displayAtTabNumber", out var displayTabNum))
diff --git a/src/Umbraco.Web/Models/PublishedContent/PublishedValueFallback.cs b/src/Umbraco.Web/Models/PublishedContent/PublishedValueFallback.cs
index ae011c01f9..7b467b6d15 100644
--- a/src/Umbraco.Web/Models/PublishedContent/PublishedValueFallback.cs
+++ b/src/Umbraco.Web/Models/PublishedContent/PublishedValueFallback.cs
@@ -267,8 +267,7 @@ namespace Umbraco.Web.Models.PublishedContent
var visited = new HashSet();
- // todo
- // _localizationService.GetXxx() is expensive, it deep clones objects
+ // TODO: _localizationService.GetXxx() is expensive, it deep clones objects
// we want _localizationService.GetReadOnlyXxx() returning IReadOnlyLanguage which cannot be saved back = no need to clone
var language = _localizationService.GetLanguageByIsoCode(culture);
diff --git a/src/Umbraco.Web/Models/PublishedContentBase.cs b/src/Umbraco.Web/Models/PublishedContentBase.cs
index c7e38ab7f0..dd6afbd97f 100644
--- a/src/Umbraco.Web/Models/PublishedContentBase.cs
+++ b/src/Umbraco.Web/Models/PublishedContentBase.cs
@@ -15,7 +15,7 @@ namespace Umbraco.Web.Models
[DebuggerDisplay("Content Id: {Id}, Name: {Name}")]
public abstract class PublishedContentBase : IPublishedContent
{
- private string _url; // fixme/task - cannot cache urls, they depends on the current request
+ private string _url; // FIXME: task - cannot cache urls, they depends on the current request
#region ContentType
@@ -79,12 +79,12 @@ namespace Umbraco.Web.Models
/// The url of documents are computed by the document url providers. The url of medias are, at the moment,
/// computed here from the 'umbracoFile' property -- but we should move to media url providers at some point.
///
- public virtual string GetUrl(string culture = null) // todo - consider .GetCulture("fr-FR").Url
+ public virtual string GetUrl(string culture = null) // TODO: consider .GetCulture("fr-FR").Url
{
switch (ItemType)
{
case PublishedItemType.Content:
- // todo - consider injecting an umbraco context accessor
+ // TODO: consider injecting an umbraco context accessor
if (UmbracoContext.Current == null)
throw new InvalidOperationException("Cannot compute Url for a content item when UmbracoContext.Current is null.");
if (UmbracoContext.Current.UrlProvider == null)
@@ -103,7 +103,7 @@ namespace Umbraco.Web.Models
var propType = ContentType.GetPropertyType(Constants.Conventions.Media.File);
- // todo - consider implementing media url providers
+ // TODO: consider implementing media url providers
// note: that one does not support variations
//This is a hack - since we now have 2 properties that support a URL: upload and cropper, we need to detect this since we always
// want to return the normal URL and the cropper stores data as json
diff --git a/src/Umbraco.Web/Models/PublishedProperty.cs b/src/Umbraco.Web/Models/PublishedProperty.cs
index 05d6b5cfe0..d32612c54c 100644
--- a/src/Umbraco.Web/Models/PublishedProperty.cs
+++ b/src/Umbraco.Web/Models/PublishedProperty.cs
@@ -25,7 +25,7 @@ namespace Umbraco.Web.Models
var propertyEditors = Current.PropertyEditors;
var dataTypeService = Current.Services.DataTypeService;
- // todo not dealing with variants
+ // TODO: not dealing with variants
// but the entire thing should die anyways
return propertyTypes.Select(x =>
diff --git a/src/Umbraco.Web/Models/Trees/MenuItem.cs b/src/Umbraco.Web/Models/Trees/MenuItem.cs
index 89239f43f7..9dd5524f76 100644
--- a/src/Umbraco.Web/Models/Trees/MenuItem.cs
+++ b/src/Umbraco.Web/Models/Trees/MenuItem.cs
@@ -106,7 +106,7 @@ namespace Umbraco.Web.Models.Trees
///
internal const string ActionUrlKey = "actionUrl";
- //TODO: some action's want to launch a new window like live editing, we support this in the menu item's metadata with
+ // TODO: some action's want to launch a new window like live editing, we support this in the menu item's metadata with
// a key called: "actionUrlMethod" which can be set to either: Dialog, BlankWindow. Normally this is always set to Dialog
// if a URL is specified in the "actionUrl" metadata. For now I'm not going to implement launching in a blank window,
// though would be v-easy, just not sure we want to ever support that?
diff --git a/src/Umbraco.Web/Models/UmbracoProperty.cs b/src/Umbraco.Web/Models/UmbracoProperty.cs
index 98ee9fd628..8b41141b95 100644
--- a/src/Umbraco.Web/Models/UmbracoProperty.cs
+++ b/src/Umbraco.Web/Models/UmbracoProperty.cs
@@ -28,7 +28,7 @@ namespace Umbraco.Web.Models
[ReadOnly(true)]
public string Name { get; set; }
- //TODO: Perhaps one day we'll ship with our own EditorTempates but for now developers can just render their own inside the view
+ // TODO: Perhaps one day we'll ship with our own EditorTempates but for now developers can just render their own inside the view
/////
///// This can dynamically be set to a custom template name to change
diff --git a/src/Umbraco.Web/Mvc/RenderRouteHandler.cs b/src/Umbraco.Web/Mvc/RenderRouteHandler.cs
index 10efb54552..e88bab61e5 100644
--- a/src/Umbraco.Web/Mvc/RenderRouteHandler.cs
+++ b/src/Umbraco.Web/Mvc/RenderRouteHandler.cs
@@ -44,7 +44,7 @@ namespace Umbraco.Web.Mvc
private UmbracoContext UmbracoContext => _umbracoContext ?? _umbracoContextAccessor.UmbracoContext;
- private UmbracoFeatures Features => Current.Factory.GetInstance(); // todo inject
+ private UmbracoFeatures Features => Current.Factory.GetInstance(); // TODO: inject
#region IRouteHandler Members
diff --git a/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs b/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs
index 806a4bd250..a16f9661aa 100644
--- a/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs
+++ b/src/Umbraco.Web/Mvc/UmbracoViewPageOfTModel.cs
@@ -41,8 +41,7 @@ namespace Umbraco.Web.Mvc
///
public AppCaches AppCaches { get; set; }
- // todo
- // previously, Services and ApplicationCache would derive from UmbracoContext.Application, which
+ // TODO: previously, Services and ApplicationCache would derive from UmbracoContext.Application, which
// was an ApplicationContext - so that everything derived from UmbracoContext.
// UmbracoContext is fetched from the data tokens, thus allowing the view to be rendered with a
// custom context and NOT the Current.UmbracoContext - eg outside the normal Umbraco routing
diff --git a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs
index 0c95e1d446..48e16b48d7 100644
--- a/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs
+++ b/src/Umbraco.Web/Mvc/UmbracoVirtualNodeRouteHandler.cs
@@ -11,7 +11,7 @@ namespace Umbraco.Web.Mvc
{
public abstract class UmbracoVirtualNodeRouteHandler : IRouteHandler
{
- // TODO: - try lazy property injection?
+ // TODO: try lazy property injection?
private PublishedRouter PublishedRouter => Core.Composing.Current.Factory.GetInstance();
///
@@ -28,7 +28,7 @@ namespace Umbraco.Web.Mvc
/// //check if context is null, we know it will be null if we are dealing with a request that
/// //has an extension and by default no Umb ctx is created for the request
/// if (ctx == null) {
- /// //TODO: Here you can EnsureContext , please note that the requestContext is passed in
+ /// // TODO: Here you can EnsureContext , please note that the requestContext is passed in
/// //therefore your should refrain from using other singletons like HttpContext.Current since
/// //you will already have a reference to it. Also if you need an ApplicationContext you should
/// //pass this in via a ctor instead of using the ApplicationContext.Current singleton.
diff --git a/src/Umbraco.Web/PropertyEditors/FileUploadPropertyValueEditor.cs b/src/Umbraco.Web/PropertyEditors/FileUploadPropertyValueEditor.cs
index f36dd6bfa8..81239caec0 100644
--- a/src/Umbraco.Web/PropertyEditors/FileUploadPropertyValueEditor.cs
+++ b/src/Umbraco.Web/PropertyEditors/FileUploadPropertyValueEditor.cs
@@ -108,7 +108,7 @@ namespace Umbraco.Web.PropertyEditors
using (var filestream = File.OpenRead(file.TempFilePath))
{
- //TODO: Here it would make sense to do the auto-fill properties stuff but the API doesn't allow us to do that right
+ // TODO: Here it would make sense to do the auto-fill properties stuff but the API doesn't allow us to do that right
// since we'd need to be able to return values for other properties from these methods
_mediaFileSystem.AddFile(filepath, filestream, true); // must overwrite!
diff --git a/src/Umbraco.Web/PropertyEditors/GridConfiguration.cs b/src/Umbraco.Web/PropertyEditors/GridConfiguration.cs
index 8c2f7ac488..e2b46b360d 100644
--- a/src/Umbraco.Web/PropertyEditors/GridConfiguration.cs
+++ b/src/Umbraco.Web/PropertyEditors/GridConfiguration.cs
@@ -8,11 +8,11 @@ namespace Umbraco.Web.PropertyEditors
///
public class GridConfiguration
{
- //todo: Make these strongly typed, for now this works though
+ // TODO: Make these strongly typed, for now this works though
[ConfigurationField("items", "Grid", "views/propertyeditors/grid/grid.prevalues.html", Description = "Grid configuration")]
public JObject Items { get; set; }
- //todo: Make these strongly typed, for now this works though
+ // TODO: Make these strongly typed, for now this works though
[ConfigurationField("rte", "Rich text editor", "views/propertyeditors/rte/rte.prevalues.html", Description = "Rich text editor configuration")]
public JObject Rte { get; set; }
}
diff --git a/src/Umbraco.Web/PropertyEditors/GridPropertyIndexValueFactory.cs b/src/Umbraco.Web/PropertyEditors/GridPropertyIndexValueFactory.cs
index 83279ae975..085d66f3c6 100644
--- a/src/Umbraco.Web/PropertyEditors/GridPropertyIndexValueFactory.cs
+++ b/src/Umbraco.Web/PropertyEditors/GridPropertyIndexValueFactory.cs
@@ -41,7 +41,7 @@ namespace Umbraco.Web.PropertyEditors
{
var controlVal = control.Value;
- //TODO: If it's not a string, then it's a json formatted value -
+ // TODO: If it's not a string, then it's a json formatted value -
// we cannot really index this in a smart way since it could be 'anything'
if (controlVal.Type == JTokenType.String)
{
diff --git a/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyEditor.cs
index fff11a28a5..86f3412593 100644
--- a/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyEditor.cs
+++ b/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyEditor.cs
@@ -37,7 +37,7 @@ namespace Umbraco.Web.PropertyEditors
_contentSettings = contentSettings ?? throw new ArgumentNullException(nameof(contentSettings));
_dataTypeService = dataTypeService;
- //todo: inject?
+ // TODO: inject?
_autoFillProperties = new UploadAutoFillProperties(_mediaFileSystem, logger, _contentSettings);
}
diff --git a/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyValueEditor.cs b/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyValueEditor.cs
index 78f2189829..7bea542521 100644
--- a/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyValueEditor.cs
+++ b/src/Umbraco.Web/PropertyEditors/ImageCropperPropertyValueEditor.cs
@@ -16,7 +16,7 @@ namespace Umbraco.Web.PropertyEditors
///
/// The value editor for the image cropper property editor.
///
- internal class ImageCropperPropertyValueEditor : DataValueEditor // todo core vs web?
+ internal class ImageCropperPropertyValueEditor : DataValueEditor // TODO: core vs web?
{
private readonly ILogger _logger;
private readonly IMediaFileSystem _mediaFileSystem;
@@ -151,7 +151,7 @@ namespace Umbraco.Web.PropertyEditors
using (var filestream = File.OpenRead(file.TempFilePath))
{
- //TODO: Here it would make sense to do the auto-fill properties stuff but the API doesn't allow us to do that right
+ // TODO: Here it would make sense to do the auto-fill properties stuff but the API doesn't allow us to do that right
// since we'd need to be able to return values for other properties from these methods
_mediaFileSystem.AddFile(filepath, filestream, true); // must overwrite!
diff --git a/src/Umbraco.Web/PropertyEditors/ListViewConfiguration.cs b/src/Umbraco.Web/PropertyEditors/ListViewConfiguration.cs
index 1b46a7a8a8..6448a3354c 100644
--- a/src/Umbraco.Web/PropertyEditors/ListViewConfiguration.cs
+++ b/src/Umbraco.Web/PropertyEditors/ListViewConfiguration.cs
@@ -62,7 +62,7 @@ namespace Umbraco.Web.PropertyEditors
[ConfigurationField("bulkActionPermissions", "Bulk Action Permissions", "views/propertyeditors/listview/bulkactionpermissions.prevalues.html",
Description = "The bulk actions that are allowed from the list view")]
- public BulkActionPermissionSettings BulkActionPermissions { get; set; } = new BulkActionPermissionSettings(); // todomanaging defaults?
+ public BulkActionPermissionSettings BulkActionPermissions { get; set; } = new BulkActionPermissionSettings(); // TODO: managing defaults?
[ConfigurationField("tabName", "Tab Name", "textstring", Description = "The name of the listview tab (default if empty: 'Child Items')")]
public string TabName { get; set; }
@@ -76,7 +76,7 @@ namespace Umbraco.Web.PropertyEditors
public string Header { get; set; }
[JsonProperty("isSystem")]
- public int IsSystem { get; set; } // todo bool
+ public int IsSystem { get; set; } // TODO: bool
}
public class Layout
@@ -91,7 +91,7 @@ namespace Umbraco.Web.PropertyEditors
public string Icon { get; set; }
[JsonProperty("isSystem")]
- public int IsSystem { get; set; } // todo bool
+ public int IsSystem { get; set; } // TODO: bool
[JsonProperty("selected")]
public bool Selected { get; set; }
diff --git a/src/Umbraco.Web/PropertyEditors/MacroContainerPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/MacroContainerPropertyEditor.cs
index 77c5c04985..d4d23da3a4 100644
--- a/src/Umbraco.Web/PropertyEditors/MacroContainerPropertyEditor.cs
+++ b/src/Umbraco.Web/PropertyEditors/MacroContainerPropertyEditor.cs
@@ -4,7 +4,7 @@ using Umbraco.Core.PropertyEditors;
namespace Umbraco.Web.PropertyEditors
{
- // todo - MacroContainerPropertyEditor is deprecated, but what's the alternative?
+ // TODO: MacroContainerPropertyEditor is deprecated, but what's the alternative?
[DataEditor(Constants.PropertyEditors.Aliases.MacroContainer, "(Obsolete) Macro Picker", "macrocontainer", ValueType = ValueTypes.Text, Group="rich content", Icon="icon-settings-alt", IsDeprecated = true)]
public class MacroContainerPropertyEditor : DataEditor
{
diff --git a/src/Umbraco.Web/PropertyEditors/MultipleTextStringConfigurationEditor.cs b/src/Umbraco.Web/PropertyEditors/MultipleTextStringConfigurationEditor.cs
index a7d05799d9..e7da4ca113 100644
--- a/src/Umbraco.Web/PropertyEditors/MultipleTextStringConfigurationEditor.cs
+++ b/src/Umbraco.Web/PropertyEditors/MultipleTextStringConfigurationEditor.cs
@@ -34,7 +34,7 @@ namespace Umbraco.Web.PropertyEditors
///
public override MultipleTextStringConfiguration FromConfigurationEditor(IDictionary editorValues, MultipleTextStringConfiguration configuration)
{
- // todo this isn't pretty
+ // TODO: this isn't pretty
//the values from the editor will be min/max fields and we need to format to json in one field
// is the editor sending strings or ints or?!
var min = (editorValues.ContainsKey("min") ? editorValues["min"].ToString() : "0").TryConvertTo();
diff --git a/src/Umbraco.Web/PropertyEditors/RichTextConfiguration.cs b/src/Umbraco.Web/PropertyEditors/RichTextConfiguration.cs
index df29687838..13bf269bcd 100644
--- a/src/Umbraco.Web/PropertyEditors/RichTextConfiguration.cs
+++ b/src/Umbraco.Web/PropertyEditors/RichTextConfiguration.cs
@@ -8,7 +8,7 @@ namespace Umbraco.Web.PropertyEditors
///
public class RichTextConfiguration
{
- //todo: Make these strongly typed, for now this works though
+ // TODO: Make these strongly typed, for now this works though
[ConfigurationField("editor", "Editor", "views/propertyeditors/rte/rte.prevalues.html", HideLabel = true)]
public JObject Editor { get; set; }
diff --git a/src/Umbraco.Web/PropertyEditors/TrueFalseConfiguration.cs b/src/Umbraco.Web/PropertyEditors/TrueFalseConfiguration.cs
index 1089f3d5aa..c6b3953e8c 100644
--- a/src/Umbraco.Web/PropertyEditors/TrueFalseConfiguration.cs
+++ b/src/Umbraco.Web/PropertyEditors/TrueFalseConfiguration.cs
@@ -8,7 +8,7 @@ namespace Umbraco.Web.PropertyEditors
public class TrueFalseConfiguration
{
[ConfigurationField("default", "Default Value", "boolean")]
- public string Default { get; set; } // todo - well, true or false?!
+ public string Default { get; set; } // TODO: well, true or false?!
[ConfigurationField("labelOn", "Write a label text", "textstring")]
public string Label { get; set; }
diff --git a/src/Umbraco.Web/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs b/src/Umbraco.Web/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs
index ca5489ac1f..0f8b75f6b1 100644
--- a/src/Umbraco.Web/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs
+++ b/src/Umbraco.Web/PropertyEditors/ValueConverters/MultiNodeTreePickerValueConverter.cs
@@ -66,7 +66,7 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
return null;
}
- //TODO: Inject an UmbracoHelper and create a GetUmbracoHelper method based on either injected or singleton
+ // TODO: Inject an UmbracoHelper and create a GetUmbracoHelper method based on either injected or singleton
if (UmbracoContext.Current != null)
{
if (propertyType.EditorAlias.Equals(Constants.PropertyEditors.Aliases.MultiNodeTreePicker))
diff --git a/src/Umbraco.Web/PublishedCache/IPublishedCache.cs b/src/Umbraco.Web/PublishedCache/IPublishedCache.cs
index 155e59133d..178d34cfa3 100644
--- a/src/Umbraco.Web/PublishedCache/IPublishedCache.cs
+++ b/src/Umbraco.Web/PublishedCache/IPublishedCache.cs
@@ -209,7 +209,7 @@ namespace Umbraco.Web.PublishedCache
/// The alias is case-insensitive.
PublishedContentType GetContentType(string alias);
- // todo - can we implement this, now? maybe only with NuCache else will throw NotImplemented...
+ // TODO: can we implement this, now? maybe only with NuCache else will throw NotImplemented...
IEnumerable GetByContentType(PublishedContentType contentType);
}
}
diff --git a/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs b/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs
index d983a880cc..cab6e7d759 100644
--- a/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs
+++ b/src/Umbraco.Web/PublishedCache/NuCache/ContentCache.cs
@@ -29,7 +29,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
#region Constructor
- // todo - figure this out
+ // TODO: figure this out
// after the current snapshot has been resync-ed
// it's too late for UmbracoContext which has captured previewDefault and stuff into these ctor vars
// but, no, UmbracoContext returns snapshot.Content which comes from elements SO a resync should create a new cache
diff --git a/src/Umbraco.Web/PublishedCache/NuCache/ContentStore.cs b/src/Umbraco.Web/PublishedCache/NuCache/ContentStore.cs
index 0cf2c231b5..353ac83eda 100644
--- a/src/Umbraco.Web/PublishedCache/NuCache/ContentStore.cs
+++ b/src/Umbraco.Web/PublishedCache/NuCache/ContentStore.cs
@@ -38,7 +38,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
private volatile int _wlocked;
private List> _wchanges;
- // todo - collection trigger (ok for now)
+ // TODO: collection trigger (ok for now)
// see SnapDictionary notes
private const long CollectMinGenDelta = 8;
@@ -104,7 +104,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
}
// gets a scope contextual representing a locked writer to the dictionary
- // todo GetScopedWriter? should the dict have a ref onto the scope provider?
+ // TODO: GetScopedWriter? should the dict have a ref onto the scope provider?
public IDisposable GetWriter(IScopeProvider scopeProvider)
{
return ScopeContextualBase.Get(scopeProvider, _instanceId, scoped => new ContentStoreWriter(this, scoped));
diff --git a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs
index ddf9023d84..107e74b7c3 100644
--- a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs
+++ b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/BTree.DictionaryOfCultureVariationSerializer.cs
@@ -36,7 +36,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
// write each variation
foreach (var (culture, variation) in variations)
{
- // todo - it's weird we're dealing with cultures here, and languageId in properties
+ // TODO: it's weird we're dealing with cultures here, and languageId in properties
PrimitiveSerializer.String.WriteTo(culture, stream); // should never be null
WriteObject(variation.Name, stream); // write an object in case it's null (though... should not happen)
diff --git a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
index 8e9e86b4fc..ca3abcca48 100644
--- a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
+++ b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/DatabaseDataSource.cs
@@ -15,7 +15,7 @@ using static Umbraco.Core.Persistence.NPocoSqlExtensions.Statics;
namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
- // todo - use SqlTemplate for these queries else it's going to be horribly slow!
+ // TODO: use SqlTemplate for these queries else it's going to be horribly slow!
// provides efficient database access for NuCache
internal class DatabaseDataSource : IDataSource
diff --git a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs
index 9e50f50c86..e14426a2e2 100644
--- a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs
+++ b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs
@@ -12,14 +12,14 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
public string Culture
{
get => _culture;
- set => _culture = value ?? throw new ArgumentNullException(nameof(value)); // todo or fallback to string.Empty? CANNOT be null
+ set => _culture = value ?? throw new ArgumentNullException(nameof(value)); // TODO: or fallback to string.Empty? CANNOT be null
}
[JsonProperty("seg")]
public string Segment
{
get => _segment;
- set => _segment = value ?? throw new ArgumentNullException(nameof(value)); // todo or fallback to string.Empty? CANNOT be null
+ set => _segment = value ?? throw new ArgumentNullException(nameof(value)); // TODO: or fallback to string.Empty? CANNOT be null
}
[JsonProperty("val")]
diff --git a/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs b/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
index 889ce72ce0..e1cd1ec764 100755
--- a/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
+++ b/src/Umbraco.Web/PublishedCache/NuCache/PublishedSnapshotService.cs
@@ -201,7 +201,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
private void InitializeRepositoryEvents()
{
- //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
// plug repository event handlers
@@ -584,7 +584,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
continue;
}
- // todo- should we do some RV check here? (later)
+ // TODO: should we do some RV check here? (later)
var capture = payload;
using (var scope = _scopeProvider.CreateScope())
@@ -674,7 +674,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
continue;
}
- // todo- should we do some RV checks here? (later)
+ // TODO: should we do some RV checks here? (later)
var capture = payload;
using (var scope = _scopeProvider.CreateScope())
@@ -773,7 +773,7 @@ namespace Umbraco.Web.PublishedCache.NuCache
using (_contentStore.GetWriter(_scopeProvider))
using (_mediaStore.GetWriter(_scopeProvider))
{
- // todo - need to add a datatype lock
+ // TODO: need to add a datatype lock
// this is triggering datatypes reload in the factory, and right after we create some
// content types by loading them ... there's a race condition here, which would require
// some locking on datatypes
diff --git a/src/Umbraco.Web/PublishedCache/PublishedMember.cs b/src/Umbraco.Web/PublishedCache/PublishedMember.cs
index cbe2250920..906cc7a4ae 100644
--- a/src/Umbraco.Web/PublishedCache/PublishedMember.cs
+++ b/src/Umbraco.Web/PublishedCache/PublishedMember.cs
@@ -140,10 +140,10 @@ namespace Umbraco.Web.PublishedCache
public override string UrlSegment => throw new NotSupportedException();
- //TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
+ // TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
public override string WriterName => _member.GetCreatorProfile().Name;
- //TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
+ // TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
public override string CreatorName => _member.GetCreatorProfile().Name;
public override int WriterId => _member.CreatorId;
diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
index 5521cabe76..a3aad608d5 100644
--- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
+++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedMediaCache.cs
@@ -122,7 +122,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
//Currently examine is throwing FileNotFound exceptions when we have a load balanced filestore and a node is published in umbraco
//See this thread: http://examine.cdodeplex.com/discussions/264341
//Catch the exception here for the time being, and just fallback to GetMedia
- //TODO: Need to fix examine in LB scenarios!
+ // TODO: Need to fix examine in LB scenarios!
Current.Logger.Error(ex, "Could not load data from Examine index for media");
}
else if (ex is AlreadyClosedException)
@@ -248,7 +248,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
//Currently examine is throwing FileNotFound exceptions when we have a load balanced filestore and a node is published in umbraco
//See this thread: http://examine.cdodeplex.com/discussions/264341
//Catch the exception here for the time being, and just fallback to GetMedia
- //TODO: Need to fix examine in LB scenarios!
+ // TODO: Need to fix examine in LB scenarios!
}
catch (NullReferenceException)
{
@@ -305,7 +305,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
//Currently examine is throwing FileNotFound exceptions when we have a load balanced filestore and a node is published in umbraco
//See this thread: http://examine.cdodeplex.com/discussions/264341
//Catch the exception here for the time being, and just fallback to GetMedia
- //TODO: Need to fix examine in LB scenarios!
+ // TODO: Need to fix examine in LB scenarios!
Current.Logger.Error(ex, "Could not load data from Examine index for media");
}
else if (ex is AlreadyClosedException)
diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/SafeXmlReaderWriter.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/SafeXmlReaderWriter.cs
index 672aad1e3e..37a6b666d4 100644
--- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/SafeXmlReaderWriter.cs
+++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/SafeXmlReaderWriter.cs
@@ -5,7 +5,7 @@ using Umbraco.Core.Scoping;
namespace Umbraco.Web.PublishedCache.XmlPublishedCache
{
- // todo should be a ScopeContextualBase
+ // TODO: should be a ScopeContextualBase
internal class SafeXmlReaderWriter : IDisposable
{
private readonly bool _scoped;
diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs
index c3cf22559d..b1037759dc 100644
--- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs
+++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlPublishedContent.cs
@@ -377,7 +377,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
}
catch (InvalidOperationException e)
{
- // todo - enable!
+ // TODO: enable!
//content.Instance.RefreshContentFromDatabase();
throw new InvalidOperationException($"{e.Message}. This usually indicates that the content cache is corrupt; the content cache has been rebuilt in an attempt to self-fix the issue.");
}
diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlStore.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlStore.cs
index 0153cca18b..36a8334782 100644
--- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlStore.cs
+++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlStore.cs
@@ -69,7 +69,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
// internal for unit tests
// no file nor db, no config check
- // todo - er, we DO have a DB?
+ // TODO: er, we DO have a DB?
internal XmlStore(IContentTypeService contentTypeService, IContentService contentService, IScopeProvider scopeProvider, RoutesCache routesCache, PublishedContentTypeCache contentTypeCache,
IPublishedSnapshotAccessor publishedSnapshotAccessor, MainDom mainDom,
bool testing, bool enableRepositoryEvents, IDocumentRepository documentRepository, IMediaRepository mediaRepository, IMemberRepository memberRepository, IGlobalSettings globalSettings, IEntityXmlSerializer entitySerializer)
@@ -602,7 +602,7 @@ AND (umbracoNode.id=@id)";
// should we have async versions that would do: ?
// var releaser = await _xmlLock.LockAsync();
//
- // todo - not sure about the "resync current published snapshot" thing here, see 7.6...
+ // TODO: not sure about the "resync current published snapshot" thing here, see 7.6...
// gets a locked safe read access to the main xml
private SafeXmlReaderWriter GetSafeXmlReader()
@@ -641,7 +641,7 @@ AND (umbracoNode.id=@id)";
public void EnsureFilePermission()
{
- // todo - but do we really have a store, initialized, at that point?
+ // TODO: but do we really have a store, initialized, at that point?
var filename = _xmlFileName + ".temp";
File.WriteAllText(filename, "TEMP");
File.Delete(filename);
@@ -1559,8 +1559,8 @@ ORDER BY umbracoNode.level, umbracoNode.sortOrder";
// need to update the published xml if we're saving the published version,
// or having an impact on that version - we update the published xml even when masked
- // todo - in the repo... either its 'unpublished' and 'publishing', or 'published' and 'published', this has changed!
- // todo - what are we serializing really? which properties?
+ // TODO: in the repo... either its 'unpublished' and 'publishing', or 'published' and 'published', this has changed!
+ // TODO: what are we serializing really? which properties?
// if not publishing, no change to published xml
if (((Content) entity).PublishedState != PublishedState.Publishing)
@@ -1669,7 +1669,7 @@ ORDER BY umbracoNode.level, umbracoNode.sortOrder";
// RepositoryCacheMode.Scoped because we do NOT want to use the L2 cache that may be out-of-sync
// hopefully this does not cause issues and we're not nested in another scope w/different mode
- // todo - well, guess what?
+ // TODO: well, guess what?
// original code made sure the repository used no cache
// now we're using the Scoped scope cache mode
// and then?
@@ -2027,7 +2027,7 @@ AND cmsPreviewXml.nodeId IS NULL OR cmsPreviewXml.xml NOT LIKE '% key=""'
{
// every non-trashed media item should have a corresponding row in cmsContentXml
// and that row should have the key="..." attribute
- // todo - where's the trashed test here?
+ // TODO: where's the trashed test here?
var mediaObjectType = Constants.ObjectTypes.Media;
var db = scope.Database;
diff --git a/src/Umbraco.Web/PublishedContentExtensions.cs b/src/Umbraco.Web/PublishedContentExtensions.cs
index c57d0249c1..e1bf60f558 100644
--- a/src/Umbraco.Web/PublishedContentExtensions.cs
+++ b/src/Umbraco.Web/PublishedContentExtensions.cs
@@ -251,7 +251,7 @@ namespace Umbraco.Web
public static IEnumerable SearchDescendants(this IPublishedContent content, string term, string indexName = null)
{
- //todo inject examine manager
+ // TODO: inject examine manager
indexName = string.IsNullOrEmpty(indexName) ? Constants.UmbracoIndexes.ExternalIndexName : indexName;
if (!ExamineManager.Instance.TryGetIndex(indexName, out var index))
@@ -272,7 +272,7 @@ namespace Umbraco.Web
public static IEnumerable SearchChildren(this IPublishedContent content, string term, string indexName = null)
{
- //todo inject examine manager
+ // TODO: inject examine manager
indexName = string.IsNullOrEmpty(indexName) ? Constants.UmbracoIndexes.ExternalIndexName : indexName;
if (!ExamineManager.Instance.TryGetIndex(indexName, out var index))
diff --git a/src/Umbraco.Web/Routing/ContentFinderByUrlAlias.cs b/src/Umbraco.Web/Routing/ContentFinderByUrlAlias.cs
index ff629609d3..60124a96a2 100644
--- a/src/Umbraco.Web/Routing/ContentFinderByUrlAlias.cs
+++ b/src/Umbraco.Web/Routing/ContentFinderByUrlAlias.cs
@@ -95,7 +95,7 @@ namespace Umbraco.Web.Routing
return v.InvariantContains(a1) || v.InvariantContains(a2);
}
- // todo - even with Linq, what happens below has to be horribly slow
+ // TODO: even with Linq, what happens below has to be horribly slow
// but the only solution is to entirely refactor url providers to stop being dynamic
if (rootNodeId > 0)
diff --git a/src/Umbraco.Web/Routing/CustomRouteUrlProvider.cs b/src/Umbraco.Web/Routing/CustomRouteUrlProvider.cs
index ae17ff6258..0c6998e7e1 100644
--- a/src/Umbraco.Web/Routing/CustomRouteUrlProvider.cs
+++ b/src/Umbraco.Web/Routing/CustomRouteUrlProvider.cs
@@ -25,7 +25,7 @@ namespace Umbraco.Web.Routing
//If we get this far, it means it's a custom route with published content assigned, check if the id being requested for is the same id as the assigned published content
//NOTE: This looks like it might cause an infinite loop because PublishedContentBase.Url calls into UmbracoContext.Current.UrlProvider.GetUrl which calls back into the IUrlProvider pipeline
// but the specific purpose of this is that a developer is using their own IPublishedContent that returns a specific Url and doesn't go back into the UrlProvider pipeline.
- //TODO: We could put a try/catch here just in case, else we could do some reflection checking to see if the implementation is PublishedContentBase and the Url property is not overridden.
+ // TODO: We could put a try/catch here just in case, else we could do some reflection checking to see if the implementation is PublishedContentBase and the Url property is not overridden.
return UrlInfo.Url(
content.Id == umbracoContext.PublishedRequest.PublishedContent.Id
? umbracoContext.PublishedRequest.PublishedContent.GetUrl(culture)
diff --git a/src/Umbraco.Web/Routing/DomainHelper.cs b/src/Umbraco.Web/Routing/DomainHelper.cs
index 8ba06363dc..88f2b17814 100644
--- a/src/Umbraco.Web/Routing/DomainHelper.cs
+++ b/src/Umbraco.Web/Routing/DomainHelper.cs
@@ -107,7 +107,7 @@ namespace Umbraco.Web.Routing
/// An optional function to filter the list of domains, if more than one applies.
/// The domain and its normalized uri, that best matches the specified uri and cultures.
///
- /// todo - must document and explain this all
+ /// TODO: must document and explain this all
/// If is null, pick the first domain that matches ,
/// else the first that matches , else the first one (ordered by id), else null.
/// If is not null, look for domains that would be a base uri of the current uri,
@@ -244,7 +244,7 @@ namespace Umbraco.Web.Routing
/// The domains and their normalized uris, that match the specified uri.
internal static IEnumerable SelectDomains(IEnumerable domains, Uri uri)
{
- // todo where are we matching ?!!?
+ // TODO: where are we matching ?!!?
return domains
.Where(d => d.IsWildcard == false)
.Select(d => new DomainAndUri(d, uri))
diff --git a/src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs b/src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
index 1a0e5ef873..38ecb09b2b 100644
--- a/src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
+++ b/src/Umbraco.Web/Routing/NotFoundHandlerHelper.cs
@@ -74,7 +74,7 @@ namespace Umbraco.Web.Routing
if (errorPage.HasContentKey)
{
//need to get the Id for the GUID
- //TODO: When we start storing GUIDs into the IPublishedContent, then we won't have to look this up
+ // TODO: When we start storing GUIDs into the IPublishedContent, then we won't have to look this up
// but until then we need to look it up in the db. For now we've implemented a cached service for
// converting Int -> Guid and vice versa.
var found = entityService.GetId(errorPage.ContentKey, UmbracoObjectTypes.Document);
diff --git a/src/Umbraco.Web/Routing/PublishedRouter.cs b/src/Umbraco.Web/Routing/PublishedRouter.cs
index 94980a7a10..63def7a1cd 100644
--- a/src/Umbraco.Web/Routing/PublishedRouter.cs
+++ b/src/Umbraco.Web/Routing/PublishedRouter.cs
@@ -19,7 +19,7 @@ using RenderingEngine = Umbraco.Core.RenderingEngine;
namespace Umbraco.Web.Routing
{
- // todo - making sense to have an interface?
+ // TODO: making sense to have an interface?
public class PublishedRouter
{
private readonly IWebRoutingSection _webRoutingSection;
@@ -52,8 +52,7 @@ namespace Umbraco.Web.Routing
GetRolesForLogin = s => Roles.Provider.GetRolesForUser(s);
}
- // todo
- // in 7.7 this is cached in the PublishedContentRequest, which ... makes little sense
+ // TODO: in 7.7 this is cached in the PublishedContentRequest, which ... makes little sense
// killing it entirely, if we need cache, just implement it properly !!
// this is all so weird
public Func> GetRolesForLogin { get; }
@@ -380,7 +379,7 @@ namespace Umbraco.Web.Routing
// NOTE: we could start with what's the current default?
- // todo - bad - we probably should be using the appropriate filesystems!
+ // TODO: bad - we probably should be using the appropriate filesystems!
if (FindTemplateRenderingEngineInDirectory(new DirectoryInfo(IOHelper.MapPath(SystemDirectories.MvcViews)),
alias, new[] { ".cshtml", ".vbhtml" }))
diff --git a/src/Umbraco.Web/Routing/RedirectTrackingComponent.cs b/src/Umbraco.Web/Routing/RedirectTrackingComponent.cs
index 7795543320..4843dd5522 100644
--- a/src/Umbraco.Web/Routing/RedirectTrackingComponent.cs
+++ b/src/Umbraco.Web/Routing/RedirectTrackingComponent.cs
@@ -182,7 +182,7 @@ namespace Umbraco.Web.Redirects
private static void ContentService_Moving(IContentService sender, MoveEventArgs e)
{
- //TODO: Use the new e.EventState to track state between Moving/Moved events!
+ // TODO: Use the new e.EventState to track state between Moving/Moved events!
Moving = true;
}
diff --git a/src/Umbraco.Web/Routing/SiteDomainHelper.cs b/src/Umbraco.Web/Routing/SiteDomainHelper.cs
index 7879b22402..6173dfb43c 100644
--- a/src/Umbraco.Web/Routing/SiteDomainHelper.cs
+++ b/src/Umbraco.Web/Routing/SiteDomainHelper.cs
@@ -181,7 +181,7 @@ namespace Umbraco.Web.Routing
///
public virtual IEnumerable MapDomains(IReadOnlyCollection domainAndUris, Uri current, bool excludeDefault, string culture, string defaultCulture)
{
- // todo ignoring cultures entirely?
+ // TODO: ignoring cultures entirely?
var currentAuthority = current.GetLeftPart(UriPartial.Authority);
KeyValuePair[] candidateSites = null;
@@ -279,7 +279,7 @@ namespace Umbraco.Web.Routing
if (domainAndUris == null) throw new ArgumentNullException(nameof(domainAndUris));
if (domainAndUris.Count == 0) throw new ArgumentException("Cannot be empty.", nameof(domainAndUris));
- // todo how shall we deal with cultures?
+ // TODO: how shall we deal with cultures?
// we do our best, but can't do the impossible
// get the "default" domain ie the first one for the culture, else the first one (exists, length > 0)
diff --git a/src/Umbraco.Web/Runtime/WebRuntimeComposer.cs b/src/Umbraco.Web/Runtime/WebRuntimeComposer.cs
index 832699b5d7..de30590e92 100644
--- a/src/Umbraco.Web/Runtime/WebRuntimeComposer.cs
+++ b/src/Umbraco.Web/Runtime/WebRuntimeComposer.cs
@@ -80,7 +80,7 @@ namespace Umbraco.Web.Runtime
// we should stop injecting UmbracoContext and always inject IUmbracoContextAccessor, however at the moment
// there are tons of places (controllers...) which require UmbracoContext in their ctor - so let's register
// a way to inject the UmbracoContext - and register it per-request to be more efficient
- //TODO: stop doing this
+ // TODO: stop doing this
composition.Register(factory => factory.GetInstance().UmbracoContext, Lifetime.Request);
// register the umbraco helper
diff --git a/src/Umbraco.Web/Scheduling/BackgroundTaskRunnerOptions.cs b/src/Umbraco.Web/Scheduling/BackgroundTaskRunnerOptions.cs
index 5813799f05..bc0369fee8 100644
--- a/src/Umbraco.Web/Scheduling/BackgroundTaskRunnerOptions.cs
+++ b/src/Umbraco.Web/Scheduling/BackgroundTaskRunnerOptions.cs
@@ -5,7 +5,7 @@
///
public class BackgroundTaskRunnerOptions
{
- //TODO: Could add options for using a stack vs queue if required
+ // TODO: Could add options for using a stack vs queue if required
///
/// Initializes a new instance of the class.
diff --git a/src/Umbraco.Web/Scheduling/IBackgroundTaskRunner.cs b/src/Umbraco.Web/Scheduling/IBackgroundTaskRunner.cs
index b478ed581c..9dd5722592 100644
--- a/src/Umbraco.Web/Scheduling/IBackgroundTaskRunner.cs
+++ b/src/Umbraco.Web/Scheduling/IBackgroundTaskRunner.cs
@@ -15,6 +15,6 @@ namespace Umbraco.Web.Scheduling
void Add(T task);
bool TryAdd(T task);
- // todo - complete the interface?
+ // TODO: complete the interface?
}
}
diff --git a/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs b/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs
index 0d533a4da2..4326ac3287 100644
--- a/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs
+++ b/src/Umbraco.Web/Scheduling/ScheduledPublishing.cs
@@ -56,8 +56,7 @@ namespace Umbraco.Web.Scheduling
// ensure we run with an UmbracoContext, because this may run in a background task,
// yet developers may be using the 'current' UmbracoContext in the event handlers
//
- // todo
- // - or maybe not, CacheRefresherComponent already ensures a context when handling events
+ // TODO: or maybe not, CacheRefresherComponent already ensures a context when handling events
// - UmbracoContext 'current' needs to be refactored and cleaned up
// - batched messenger should not depend on a current HttpContext
// but then what should be its "scope"? could we attach it to scopes?
diff --git a/src/Umbraco.Web/Scheduling/ScheduledTasks.cs b/src/Umbraco.Web/Scheduling/ScheduledTasks.cs
index 66037a0456..a26b8b23ac 100644
--- a/src/Umbraco.Web/Scheduling/ScheduledTasks.cs
+++ b/src/Umbraco.Web/Scheduling/ScheduledTasks.cs
@@ -11,7 +11,7 @@ using Umbraco.Core.Sync;
namespace Umbraco.Web.Scheduling
{
- //TODO: No scheduled task (i.e. URL) would be secured, so if people are actually using these each task
+ // TODO: No scheduled task (i.e. URL) would be secured, so if people are actually using these each task
// would need to be a publicly available task (URL) which isn't really very good :(
// We should really be using the AdminTokenAuthorizeAttribute for this stuff
@@ -72,7 +72,7 @@ namespace Umbraco.Web.Scheduling
var request = new HttpRequestMessage(HttpMethod.Get, url);
- //TODO: pass custom the authorization header, currently these aren't really secured!
+ // TODO: pass custom the authorization header, currently these aren't really secured!
//request.Headers.Authorization = AdminTokenAuthorizeAttribute.GetAuthenticationHeaderValue(_appContext);
try
diff --git a/src/Umbraco.Web/Search/ExamineComponent.cs b/src/Umbraco.Web/Search/ExamineComponent.cs
index 871f90a319..0db3f0b65e 100644
--- a/src/Umbraco.Web/Search/ExamineComponent.cs
+++ b/src/Umbraco.Web/Search/ExamineComponent.cs
@@ -122,7 +122,7 @@ namespace Umbraco.Web.Search
EnsureUnlocked(_logger, _examineManager);
- //TODO: Instead of waiting 5000 ms, we could add an event handler on to fulfilling the first request, then start?
+ // TODO: Instead of waiting 5000 ms, we could add an event handler on to fulfilling the first request, then start?
RebuildIndexes(_indexRebuilder, _logger, true, 5000);
}
@@ -138,7 +138,7 @@ namespace Umbraco.Web.Search
///
public static void RebuildIndexes(IndexRebuilder indexRebuilder, ILogger logger, bool onlyEmptyIndexes, int waitMilliseconds = 0)
{
- //TODO: need a way to disable rebuilding on startup
+ // TODO: need a way to disable rebuilding on startup
lock(RebuildLocker)
{
@@ -213,7 +213,7 @@ namespace Umbraco.Web.Search
// just ignore that payload
// so what?!
- //todo: Rebuild the index at this point?
+ // TODO: Rebuild the index at this point?
}
else // RefreshNode or RefreshBranch (maybe trashed)
{
diff --git a/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs b/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs
index 99f4c4b453..5ac5529be5 100644
--- a/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs
+++ b/src/Umbraco.Web/Search/UmbracoIndexesCreator.cs
@@ -14,7 +14,7 @@ namespace Umbraco.Web.Search
///
public class UmbracoIndexesCreator : LuceneIndexCreator, IUmbracoIndexesCreator
{
- //TODO: we should inject the different IValueSetValidator so devs can just register them instead of overriding this class?
+ // TODO: we should inject the different IValueSetValidator so devs can just register them instead of overriding this class?
public UmbracoIndexesCreator(IProfilingLogger profilingLogger,
ILocalizationService languageService,
diff --git a/src/Umbraco.Web/Search/UmbracoTreeSearcher.cs b/src/Umbraco.Web/Search/UmbracoTreeSearcher.cs
index a60e5f1d1b..2bb093a659 100644
--- a/src/Umbraco.Web/Search/UmbracoTreeSearcher.cs
+++ b/src/Umbraco.Web/Search/UmbracoTreeSearcher.cs
@@ -64,7 +64,7 @@ namespace Umbraco.Web.Search
var umbracoContext = _umbracoHelper.UmbracoContext;
- //TODO: WE should try to allow passing in a lucene raw query, however we will still need to do some manual string
+ // TODO: WE should try to allow passing in a lucene raw query, however we will still need to do some manual string
// manipulation for things like start paths, member types, etc...
//if (Examine.ExamineExtensions.TryParseLuceneQuery(query))
//{
diff --git a/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs b/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs
index 3ac74bd7c0..5b571f304e 100644
--- a/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs
+++ b/src/Umbraco.Web/Security/ActiveDirectoryBackOfficeUserPasswordChecker.cs
@@ -6,7 +6,7 @@ using Umbraco.Core.Models.Identity;
namespace Umbraco.Web.Security
{
- //TODO: This relies on an assembly that is not .NET Standard :(
+ // TODO: This relies on an assembly that is not .NET Standard :(
public class ActiveDirectoryBackOfficeUserPasswordChecker : IBackOfficeUserPasswordChecker
{
public virtual string ActiveDirectoryDomain
@@ -27,7 +27,7 @@ namespace Umbraco.Web.Security
if (isValid && user.HasIdentity == false)
{
- //TODO: the user will need to be created locally (i.e. auto-linked)
+ // TODO: the user will need to be created locally (i.e. auto-linked)
throw new NotImplementedException("The user " + user.UserName + " does not exist locally and currently the " + typeof(ActiveDirectoryBackOfficeUserPasswordChecker) + " doesn't support auto-linking, see http://issues.umbraco.org/issue/U4-10181");
}
diff --git a/src/Umbraco.Web/Security/BackOfficeSignInManager.cs b/src/Umbraco.Web/Security/BackOfficeSignInManager.cs
index 4315d3a762..3ce72852bf 100644
--- a/src/Umbraco.Web/Security/BackOfficeSignInManager.cs
+++ b/src/Umbraco.Web/Security/BackOfficeSignInManager.cs
@@ -14,7 +14,7 @@ using Constants = Umbraco.Core.Constants;
namespace Umbraco.Web.Security
{
- //TODO: In v8 we need to change this to use an int? nullable TKey instead, see notes against overridden TwoFactorSignInAsync
+ // TODO: In v8 we need to change this to use an int? nullable TKey instead, see notes against overridden TwoFactorSignInAsync
public class BackOfficeSignInManager : SignInManager
{
private readonly ILogger _logger;
diff --git a/src/Umbraco.Web/Security/BackOfficeUserManager.cs b/src/Umbraco.Web/Security/BackOfficeUserManager.cs
index a7256b257d..83cf06c6d9 100644
--- a/src/Umbraco.Web/Security/BackOfficeUserManager.cs
+++ b/src/Umbraco.Web/Security/BackOfficeUserManager.cs
@@ -125,13 +125,13 @@ namespace Umbraco.Web.Security
#region What we support do not currently
- //TODO: We could support this - but a user claims will mostly just be what is in the auth cookie
+ // TODO: We could support this - but a user claims will mostly just be what is in the auth cookie
public override bool SupportsUserClaim
{
get { return false; }
}
- //TODO: Support this
+ // TODO: Support this
public override bool SupportsQueryableUsers
{
get { return false; }
@@ -145,7 +145,7 @@ namespace Umbraco.Web.Security
get { return false; }
}
- //TODO: Support this
+ // TODO: Support this
public override bool SupportsUserPhoneNumber
{
get { return false; }
@@ -618,7 +618,7 @@ namespace Umbraco.Web.Security
OnPasswordChanged(new IdentityAuditEventArgs(AuditEvent.PasswordChanged, GetCurrentRequestIpAddress(), affectedUser: userId));
}
- //TODO: I don't think this is required anymore since from 7.7 we no longer display the reset password checkbox since that didn't make sense.
+ // TODO: I don't think this is required anymore since from 7.7 we no longer display the reset password checkbox since that didn't make sense.
internal void RaisePasswordResetEvent(int userId)
{
OnPasswordReset(new IdentityAuditEventArgs(AuditEvent.PasswordReset, GetCurrentRequestIpAddress(), affectedUser: userId));
@@ -702,7 +702,7 @@ namespace Umbraco.Web.Security
///
protected virtual string GetCurrentRequestIpAddress()
{
- //TODO: inject a service to get this value, we should not be relying on the old HttpContext.Current especially in the ASP.NET Identity world.
+ // TODO: inject a service to get this value, we should not be relying on the old HttpContext.Current especially in the ASP.NET Identity world.
var httpContext = HttpContext.Current == null ? (HttpContextBase)null : new HttpContextWrapper(HttpContext.Current);
return httpContext.GetCurrentRequestIpAddress();
}
diff --git a/src/Umbraco.Web/Security/GetUserSecondsMiddleWare.cs b/src/Umbraco.Web/Security/GetUserSecondsMiddleWare.cs
index dba7a8c33a..8da8ad23f8 100644
--- a/src/Umbraco.Web/Security/GetUserSecondsMiddleWare.cs
+++ b/src/Umbraco.Web/Security/GetUserSecondsMiddleWare.cs
@@ -84,7 +84,7 @@ namespace Umbraco.Web.Security
//if it's time to renew, then do it
if (timeRemaining < timeElapsed)
{
- //TODO: This would probably be simpler just to do: context.OwinContext.Authentication.SignIn(context.Properties, identity);
+ // TODO: This would probably be simpler just to do: context.OwinContext.Authentication.SignIn(context.Properties, identity);
// this will invoke the default Cookie middleware to basically perform this logic for us.
ticket.Properties.IssuedUtc = currentUtc;
@@ -123,7 +123,7 @@ namespace Umbraco.Web.Security
}
}
- //Hack! we need to suppress the stupid forms authentication module but we can only do that by using non owin stuff
+ // HACK: we need to suppress the stupid forms authentication module but we can only do that by using non owin stuff
if (HttpContext.Current != null && HttpContext.Current.Response != null)
{
HttpContext.Current.Response.SuppressFormsAuthenticationRedirect = true;
diff --git a/src/Umbraco.Web/Security/MembershipHelper.cs b/src/Umbraco.Web/Security/MembershipHelper.cs
index 79eb27bc3c..e053617806 100644
--- a/src/Umbraco.Web/Security/MembershipHelper.cs
+++ b/src/Umbraco.Web/Security/MembershipHelper.cs
@@ -216,7 +216,7 @@ namespace Umbraco.Web.Security
membershipUser = ((UmbracoMembershipProviderBase)provider).CreateUser(
model.MemberTypeAlias,
model.Username, model.Password, model.Email,
- //TODO: Support q/a http://issues.umbraco.org/issue/U4-3213
+ // TODO: Support q/a http://issues.umbraco.org/issue/U4-3213
null, null,
true, null, out status);
@@ -239,7 +239,7 @@ namespace Umbraco.Web.Security
else
{
membershipUser = provider.CreateUser(model.Username, model.Password, model.Email,
- //TODO: Support q/a http://issues.umbraco.org/issue/U4-3213
+ // TODO: Support q/a http://issues.umbraco.org/issue/U4-3213
null, null,
true, null, out status);
@@ -326,7 +326,7 @@ namespace Umbraco.Web.Security
switch (umbracoType)
{
case UmbracoObjectTypes.Member:
- // todo - need to implement Get(guid)!
+ // TODO: need to implement Get(guid)!
var memberAttempt = entityService.GetId(guidUdi.Guid, umbracoType);
if (memberAttempt.Success)
return GetById(memberAttempt.Result);
@@ -422,7 +422,7 @@ namespace Umbraco.Web.Security
}
//we can try to look up an associated member by the provider user key
- //TODO: Support this at some point!
+ // TODO: Support this at some point!
throw new NotSupportedException("Currently a member profile cannot be edited unless using the built-in Umbraco membership providers");
}
@@ -480,7 +480,7 @@ namespace Umbraco.Web.Security
Value = value
};
- //TODO: Perhaps one day we'll ship with our own EditorTempates but for now developers
+ // TODO: Perhaps one day we'll ship with our own EditorTempates but for now developers
// can just render their own.
////This is a rudimentary check to see what data template we should render
diff --git a/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs b/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs
index 413023c27c..1f7e2c8084 100644
--- a/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs
+++ b/src/Umbraco.Web/Security/Providers/UmbracoMembershipProvider.cs
@@ -414,7 +414,7 @@ namespace Umbraco.Web.Security.Providers
/// The new password for the specified user.
protected override string PerformResetPassword(string username, string answer, string generatedPassword)
{
- //TODO: This should be here - but how do we update failure count in this provider??
+ // TODO: This should be here - but how do we update failure count in this provider??
//if (answer == null && RequiresQuestionAndAnswer)
//{
// UpdateFailureCount(username, "passwordAnswer");
@@ -591,7 +591,7 @@ namespace Umbraco.Web.Security.Providers
//don't raise events for this! It just sets the member dates, if we do raise events this will
// cause all distributed cache to execute - which will clear out some caches we don't want.
// http://issues.umbraco.org/issue/U4-3451
- //TODO: In v8 we aren't going to have an overload to disable events, so we'll need to make a different method
+ // TODO: In v8 we aren't going to have an overload to disable events, so we'll need to make a different method
// for this type of thing (i.e. UpdateLastLogin or similar).
// when upgrading from 7.2 to 7.3 trying to save will throw
diff --git a/src/Umbraco.Web/Suspendable.cs b/src/Umbraco.Web/Suspendable.cs
index 0ca43ff595..86c83120ea 100644
--- a/src/Umbraco.Web/Suspendable.cs
+++ b/src/Umbraco.Web/Suspendable.cs
@@ -79,7 +79,7 @@ namespace Umbraco.Web
if (_tried == false) return;
_tried = false;
- //TODO: when resuming do we always want a full rebuild of all indexes?
+ // TODO: when resuming do we always want a full rebuild of all indexes?
ExamineComponent.RebuildIndexes(indexRebuilder, logger, false);
}
}
diff --git a/src/Umbraco.Web/Templates/TemplateRenderer.cs b/src/Umbraco.Web/Templates/TemplateRenderer.cs
index ff87719b12..60d54d8bcd 100644
--- a/src/Umbraco.Web/Templates/TemplateRenderer.cs
+++ b/src/Umbraco.Web/Templates/TemplateRenderer.cs
@@ -37,8 +37,8 @@ namespace Umbraco.Web.Templates
_umbracoContext = umbracoContext ?? throw new ArgumentNullException(nameof(umbracoContext));
}
- private IFileService FileService => Current.Services.FileService; // todo inject
- private PublishedRouter PublishedRouter => Core.Composing.Current.Factory.GetInstance(); // todo inject
+ private IFileService FileService => Current.Services.FileService; // TODO: inject
+ private PublishedRouter PublishedRouter => Core.Composing.Current.Factory.GetInstance(); // TODO: inject
///
diff --git a/src/Umbraco.Web/Trees/ApplicationTreeController.cs b/src/Umbraco.Web/Trees/ApplicationTreeController.cs
index b4a91f8ab8..205c38b8a1 100644
--- a/src/Umbraco.Web/Trees/ApplicationTreeController.cs
+++ b/src/Umbraco.Web/Trees/ApplicationTreeController.cs
@@ -298,7 +298,7 @@ namespace Umbraco.Web.Trees
if (instance == null)
throw new Exception("Failed to create tree " + appTree.TreeControllerType + ".");
- //TODO: Shouldn't we be applying the same proxying logic as above so that filters work? seems like an oversight
+ // TODO: Shouldn't we be applying the same proxying logic as above so that filters work? seems like an oversight
instance.ControllerContext = controllerContext;
instance.Request = controllerContext.Request;
diff --git a/src/Umbraco.Web/Trees/ContentTreeController.cs b/src/Umbraco.Web/Trees/ContentTreeController.cs
index b50f06e14e..1609e966e5 100644
--- a/src/Umbraco.Web/Trees/ContentTreeController.cs
+++ b/src/Umbraco.Web/Trees/ContentTreeController.cs
@@ -307,7 +307,7 @@ namespace Umbraco.Web.Trees
entity.Name = "[[" + entity.Id + "]]";
}
- //todo: Remove the need for converting to legacy
+ // TODO: Remove the need for converting to legacy
private void AddActionNode(IUmbracoEntity item, MenuItemCollection menu, bool hasSeparator = false, bool convert = false, bool opensDialog = false)
where TAction : IAction
{
diff --git a/src/Umbraco.Web/Trees/ContentTreeControllerBase.cs b/src/Umbraco.Web/Trees/ContentTreeControllerBase.cs
index 7c0e7c736d..bd35fd665f 100644
--- a/src/Umbraco.Web/Trees/ContentTreeControllerBase.cs
+++ b/src/Umbraco.Web/Trees/ContentTreeControllerBase.cs
@@ -414,7 +414,7 @@ namespace Umbraco.Web.Trees
internal IEnumerable GetAllowedUserMenuItemsForNode(IUmbracoEntity dd)
{
var permission = Services.UserService.GetPermissions(Security.CurrentUser, dd.Path);
- //todo: inject
+ // TODO: inject
var actions = Current.Actions.FromEntityPermission(permission)
.ToList();
@@ -437,7 +437,7 @@ namespace Umbraco.Web.Trees
///
internal bool CanUserAccessNode(IUmbracoEntity doc, IEnumerable allowedUserOptions, string culture)
{
- //TODO: At some stage when we implement permissions on languages we'll need to take care of culture
+ // TODO: At some stage when we implement permissions on languages we'll need to take care of culture
return allowedUserOptions.Select(x => x.Action).OfType().Any();
}
diff --git a/src/Umbraco.Web/Trees/FileSystemTreeController.cs b/src/Umbraco.Web/Trees/FileSystemTreeController.cs
index 11160ab282..9aea6e03dd 100644
--- a/src/Umbraco.Web/Trees/FileSystemTreeController.cs
+++ b/src/Umbraco.Web/Trees/FileSystemTreeController.cs
@@ -29,7 +29,7 @@ namespace Umbraco.Web.Trees
///
///
protected virtual void OnRenderFolderNode(ref TreeNode treeNode) {
- //TODO: This isn't the best way to ensure a noop process for clicking a node but it works for now.
+ // TODO: This isn't the best way to ensure a noop process for clicking a node but it works for now.
treeNode.AdditionalData["jsClickCallback"] = "javascript:void(0);";
}
diff --git a/src/Umbraco.Web/Trees/FilesTreeController.cs b/src/Umbraco.Web/Trees/FilesTreeController.cs
index 99c4ade09e..429b08e9ee 100644
--- a/src/Umbraco.Web/Trees/FilesTreeController.cs
+++ b/src/Umbraco.Web/Trees/FilesTreeController.cs
@@ -8,7 +8,7 @@ namespace Umbraco.Web.Trees
[Tree(Constants.Applications.Settings, "files", "Files", "icon-folder", "icon-folder", sortOrder: 13, initialize: false)]
public class FilesTreeController : FileSystemTreeController
{
- protected override IFileSystem FileSystem => new PhysicalFileSystem("~/"); // todo inject
+ protected override IFileSystem FileSystem => new PhysicalFileSystem("~/"); // TODO: inject
private static readonly string[] ExtensionsStatic = { "*" };
diff --git a/src/Umbraco.Web/Trees/ITree.cs b/src/Umbraco.Web/Trees/ITree.cs
index 2821d4bfbb..1125a80fe2 100644
--- a/src/Umbraco.Web/Trees/ITree.cs
+++ b/src/Umbraco.Web/Trees/ITree.cs
@@ -1,6 +1,6 @@
namespace Umbraco.Web.Trees
{
- //todo- we don't really use this, it is nice to have the treecontroller, attribute and ApplicationTree streamlined to implement this but it's not used
+ // TODO: we don't really use this, it is nice to have the treecontroller, attribute and ApplicationTree streamlined to implement this but it's not used
//leave as internal for now, maybe we'll use in the future, means we could pass around ITree
internal interface ITree
{
diff --git a/src/Umbraco.Web/Trees/LegacyTreeDataConverter.cs b/src/Umbraco.Web/Trees/LegacyTreeDataConverter.cs
index 277094d3c6..4936ce6541 100644
--- a/src/Umbraco.Web/Trees/LegacyTreeDataConverter.cs
+++ b/src/Umbraco.Web/Trees/LegacyTreeDataConverter.cs
@@ -12,7 +12,7 @@ namespace Umbraco.Web.Trees
///
internal class LegacyTreeDataConverter
{
- //todo: remove this whole class when everything is angularized
+ // TODO: remove this whole class when everything is angularized
///
/// This will look at the legacy IAction's JsFunctionName and convert it to a confirmation dialog view if possible
diff --git a/src/Umbraco.Web/Trees/ScriptsTreeController.cs b/src/Umbraco.Web/Trees/ScriptsTreeController.cs
index 2fbeae4f6b..bb7fd80f5b 100644
--- a/src/Umbraco.Web/Trees/ScriptsTreeController.cs
+++ b/src/Umbraco.Web/Trees/ScriptsTreeController.cs
@@ -9,7 +9,7 @@ namespace Umbraco.Web.Trees
[Tree(Constants.Applications.Settings, Constants.Trees.Scripts, "Scripts", "icon-folder", "icon-folder", sortOrder: 10)]
public class ScriptsTreeController : FileSystemTreeController
{
- protected override IFileSystem FileSystem => Current.FileSystems.ScriptsFileSystem; // todo inject
+ protected override IFileSystem FileSystem => Current.FileSystems.ScriptsFileSystem; // TODO: inject
private static readonly string[] ExtensionsStatic = { "js" };
diff --git a/src/Umbraco.Web/Trees/StylesheetsTreeController.cs b/src/Umbraco.Web/Trees/StylesheetsTreeController.cs
index f64e9fd752..0b82291919 100644
--- a/src/Umbraco.Web/Trees/StylesheetsTreeController.cs
+++ b/src/Umbraco.Web/Trees/StylesheetsTreeController.cs
@@ -8,7 +8,7 @@ namespace Umbraco.Web.Trees
[Tree(Constants.Applications.Settings, Constants.Trees.Stylesheets, "Stylesheets", "icon-folder", "icon-folder", sortOrder: 9)]
public class StylesheetsTreeController : FileSystemTreeController
{
- protected override IFileSystem FileSystem => Current.FileSystems.StylesheetsFileSystem; // todo inject
+ protected override IFileSystem FileSystem => Current.FileSystems.StylesheetsFileSystem; // TODO: inject
private static readonly string[] ExtensionsStatic = { "css" };
diff --git a/src/Umbraco.Web/Trees/TemplatesTreeController.cs b/src/Umbraco.Web/Trees/TemplatesTreeController.cs
index c074f828d4..77102dff45 100644
--- a/src/Umbraco.Web/Trees/TemplatesTreeController.cs
+++ b/src/Umbraco.Web/Trees/TemplatesTreeController.cs
@@ -50,7 +50,7 @@ namespace Umbraco.Web.Trees
nodes.AddRange(found.Select(template => CreateTreeNode(
template.Id.ToString(CultureInfo.InvariantCulture),
- //TODO: Fix parent ID stuff for templates
+ // TODO: Fix parent ID stuff for templates
"-1",
queryStrings,
template.Name,
@@ -112,7 +112,7 @@ namespace Umbraco.Web.Trees
Key = template.Key,
Name = template.Name,
NodeObjectType = Constants.ObjectTypes.Template,
- //TODO: Fix parent/paths on templates
+ // TODO: Fix parent/paths on templates
ParentId = -1,
Path = template.Path,
UpdateDate = template.UpdateDate
diff --git a/src/Umbraco.Web/UI/Controls/UmbracoControl.cs b/src/Umbraco.Web/UI/Controls/UmbracoControl.cs
index c56e4fe07f..9e7eed3ae1 100644
--- a/src/Umbraco.Web/UI/Controls/UmbracoControl.cs
+++ b/src/Umbraco.Web/UI/Controls/UmbracoControl.cs
@@ -20,7 +20,7 @@ namespace Umbraco.Web.UI.Controls
UmbracoContext = umbracoContext ?? throw new ArgumentNullException(nameof(umbracoContext));
Umbraco = new UmbracoHelper(umbracoContext, services);
- // todo inject somehow
+ // TODO: inject somehow
Logger = Current.Logger;
ProfilingLogger = Current.ProfilingLogger;
Services = Current.Services;
diff --git a/src/Umbraco.Web/UI/Controls/UmbracoUserControl.cs b/src/Umbraco.Web/UI/Controls/UmbracoUserControl.cs
index f4cd7f1b50..560c6a2660 100644
--- a/src/Umbraco.Web/UI/Controls/UmbracoUserControl.cs
+++ b/src/Umbraco.Web/UI/Controls/UmbracoUserControl.cs
@@ -31,7 +31,7 @@ namespace Umbraco.Web.UI.Controls
Umbraco = new UmbracoHelper(umbracoContext, services);
Members = Current.Factory.GetInstance();
- // todo inject somehow
+ // TODO: inject somehow
Logger = Current.Logger;
ProfilingLogger = Current.ProfilingLogger;
Services = Current.Services;
diff --git a/src/Umbraco.Web/UI/JavaScript/Resources.Designer.cs b/src/Umbraco.Web/UI/JavaScript/Resources.Designer.cs
index f223fe5310..51e40b5324 100644
--- a/src/Umbraco.Web/UI/JavaScript/Resources.Designer.cs
+++ b/src/Umbraco.Web/UI/JavaScript/Resources.Designer.cs
@@ -144,7 +144,7 @@ namespace Umbraco.Web.UI.JavaScript
}
///
- /// Looks up a localized string similar to //TODO: This would be nicer as an angular module so it can be injected into stuff... that'd be heaps nicer, but
+ /// Looks up a localized string similar to // TODO: This would be nicer as an angular module so it can be injected into stuff... that'd be heaps nicer, but
///// how to do that when this is not a regular JS file, it is a server side JS file and RequireJS seems to only want
///// to force load JS files ?
///
diff --git a/src/Umbraco.Web/UI/JavaScript/ServerVariables.js b/src/Umbraco.Web/UI/JavaScript/ServerVariables.js
index f7f6eb2a09..4a0017550a 100644
--- a/src/Umbraco.Web/UI/JavaScript/ServerVariables.js
+++ b/src/Umbraco.Web/UI/JavaScript/ServerVariables.js
@@ -1,4 +1,4 @@
-//TODO: This would be nicer as an angular module so it can be injected into stuff... that'd be heaps nicer, but
+// TODO: This would be nicer as an angular module so it can be injected into stuff... that'd be heaps nicer, but
// how to do that when this is not a regular JS file, it is a server side JS file and RequireJS seems to only want
// to force load JS files ?
diff --git a/src/Umbraco.Web/UmbracoComponentRenderer.cs b/src/Umbraco.Web/UmbracoComponentRenderer.cs
index 48d0d571ee..a579c0abac 100644
--- a/src/Umbraco.Web/UmbracoComponentRenderer.cs
+++ b/src/Umbraco.Web/UmbracoComponentRenderer.cs
@@ -128,7 +128,7 @@ namespace Umbraco.Web
var macroProps = new Hashtable();
foreach (var i in parameters)
{
- //TODO: We are doing at ToLower here because for some insane reason the UpdateMacroModel method of macro.cs
+ // TODO: We are doing at ToLower here because for some insane reason the UpdateMacroModel method of macro.cs
// looks for a lower case match. WTF. the whole macro concept needs to be rewritten.
diff --git a/src/Umbraco.Web/UmbracoContext.cs b/src/Umbraco.Web/UmbracoContext.cs
index 49a3832483..04a9658ee5 100644
--- a/src/Umbraco.Web/UmbracoContext.cs
+++ b/src/Umbraco.Web/UmbracoContext.cs
@@ -41,7 +41,7 @@ namespace Umbraco.Web
/// A value indicating whether to replace the existing context.
/// The "current" UmbracoContext.
///
- /// todo - this needs to be clarified
+ /// TODO: this needs to be clarified
///
/// If is true then the "current" UmbracoContext is replaced
/// with a new one even if there is one already. See . Has to do with
diff --git a/src/Umbraco.Web/UmbracoHelper.cs b/src/Umbraco.Web/UmbracoHelper.cs
index 110c3e84d0..9d55299ecc 100644
--- a/src/Umbraco.Web/UmbracoHelper.cs
+++ b/src/Umbraco.Web/UmbracoHelper.cs
@@ -638,10 +638,10 @@ namespace Umbraco.Web
public IPublishedContent Media(Guid id)
{
- //TODO: This is horrible but until the media cache properly supports GUIDs we have no choice here and
+ // TODO: This is horrible but until the media cache properly supports GUIDs we have no choice here and
// currently there won't be any way to add this method correctly to `ITypedPublishedContentQuery` without breaking an interface and adding GUID support for media
- var entityService = Current.Services.EntityService; // todo inject
+ var entityService = Current.Services.EntityService; // TODO: inject
var mediaAttempt = entityService.GetId(id, UmbracoObjectTypes.Media);
return mediaAttempt.Success ? ContentQuery.Media(mediaAttempt.Result) : null;
}
diff --git a/src/Umbraco.Web/UmbracoHttpHandler.cs b/src/Umbraco.Web/UmbracoHttpHandler.cs
index 009272963c..336b53e9e0 100644
--- a/src/Umbraco.Web/UmbracoHttpHandler.cs
+++ b/src/Umbraco.Web/UmbracoHttpHandler.cs
@@ -23,7 +23,7 @@ namespace Umbraco.Web
UmbracoContext = umbracoContext;
Umbraco = new UmbracoHelper(umbracoContext, services);
- // todo inject somehow
+ // TODO: inject somehow
Logger = Current.Logger;
ProfilingLogger = Current.ProfilingLogger;
Services = Current.Services;
diff --git a/src/Umbraco.Web/WebApi/Filters/EnableOverrideAuthorizationAttribute.cs b/src/Umbraco.Web/WebApi/Filters/EnableOverrideAuthorizationAttribute.cs
index 7828400487..358c9cc3b3 100644
--- a/src/Umbraco.Web/WebApi/Filters/EnableOverrideAuthorizationAttribute.cs
+++ b/src/Umbraco.Web/WebApi/Filters/EnableOverrideAuthorizationAttribute.cs
@@ -11,6 +11,6 @@ namespace Umbraco.Web.WebApi.Filters
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
public sealed class EnableOverrideAuthorizationAttribute : Attribute
{
- //todo we should remove this and use the System.Web.Http.OverrideAuthorizationAttribute which uses IOverrideFilter instead
+ // TODO: we should remove this and use the System.Web.Http.OverrideAuthorizationAttribute which uses IOverrideFilter instead
}
}
diff --git a/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForContentAttribute.cs b/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForContentAttribute.cs
index 6604d1c9e7..ae42d54787 100644
--- a/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForContentAttribute.cs
+++ b/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForContentAttribute.cs
@@ -89,13 +89,13 @@ namespace Umbraco.Web.WebApi.Filters
}
else if (Udi.TryParse(argument, true, out Udi udi))
{
- //todo: inject? we can't because this is an attribute but we could provide ctors and empty ctors that pass in the required services
+ // TODO: inject? we can't because this is an attribute but we could provide ctors and empty ctors that pass in the required services
nodeId = Current.Services.EntityService.GetId(udi).Result;
}
else
{
Guid.TryParse(argument, out Guid key);
- //todo: inject? we can't because this is an attribute but we could provide ctors and empty ctors that pass in the required services
+ // TODO: inject? we can't because this is an attribute but we could provide ctors and empty ctors that pass in the required services
nodeId = Current.Services.EntityService.GetId(key, UmbracoObjectTypes.Document).Result;
}
}
diff --git a/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForMediaAttribute.cs b/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForMediaAttribute.cs
index 866941d41d..026b43a01b 100644
--- a/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForMediaAttribute.cs
+++ b/src/Umbraco.Web/WebApi/Filters/EnsureUserPermissionForMediaAttribute.cs
@@ -42,7 +42,7 @@ namespace Umbraco.Web.WebApi.Filters
_paramName = paramName;
}
- // todo v8 guess this is not used anymore, source is ignored?!
+ // TODO: v8 guess this is not used anymore, source is ignored?!
public EnsureUserPermissionForMediaAttribute(string paramName, DictionarySource source)
{
if (string.IsNullOrEmpty(paramName)) throw new ArgumentNullOrEmptyException(nameof(paramName));
diff --git a/src/Umbraco.Web/WebApi/Filters/OverridableAuthorizationAttribute.cs b/src/Umbraco.Web/WebApi/Filters/OverridableAuthorizationAttribute.cs
index 522c3af8bb..070bb53fb3 100644
--- a/src/Umbraco.Web/WebApi/Filters/OverridableAuthorizationAttribute.cs
+++ b/src/Umbraco.Web/WebApi/Filters/OverridableAuthorizationAttribute.cs
@@ -5,7 +5,7 @@ using System.Web.Http.Controllers;
namespace Umbraco.Web.WebApi.Filters
{
- //todo remove this since we don't need it, see notes in EnableOverrideAuthorizationAttribute
+ // TODO: remove this since we don't need it, see notes in EnableOverrideAuthorizationAttribute
///
/// Abstract auth filter class that can be used to enable overriding class auth filters at the action level
diff --git a/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs b/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs
index 700554e731..49cb75fffb 100644
--- a/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs
+++ b/src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs
@@ -19,7 +19,7 @@ namespace Umbraco.Web.WebApi
///
internal static bool Enable = true;
- // todo - inject!
+ // TODO: inject!
private readonly UmbracoContext _umbracoContext;
private readonly IRuntimeState _runtimeState;
diff --git a/src/Umbraco.Web/_Legacy/PackageActions/publishRootDocument.cs b/src/Umbraco.Web/_Legacy/PackageActions/publishRootDocument.cs
index 94e1b6e923..c6bbbfa00b 100644
--- a/src/Umbraco.Web/_Legacy/PackageActions/publishRootDocument.cs
+++ b/src/Umbraco.Web/_Legacy/PackageActions/publishRootDocument.cs
@@ -35,7 +35,7 @@ namespace Umbraco.Web._Legacy.PackageActions
{
if (rootDoc.Name.Trim() == documentName.Trim() && rootDoc.ContentType != null)
{
- // todo variants?
+ // TODO: variants?
Current.Services.ContentService.SaveAndPublishBranch(rootDoc, true);
break;
}
diff --git a/src/Umbraco.Web/umbraco.presentation/page.cs b/src/Umbraco.Web/umbraco.presentation/page.cs
index 3b879c5b02..5c2ff7aa01 100644
--- a/src/Umbraco.Web/umbraco.presentation/page.cs
+++ b/src/Umbraco.Web/umbraco.presentation/page.cs
@@ -324,7 +324,7 @@ namespace umbraco
_id = _inner.Id;
_key = _inner.Key;
- //TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
+ // TODO: ARGH! need to fix this - this is not good because it uses ApplicationContext.Current
_creatorName = _inner.GetCreatorProfile().Name;
_writerName = _inner.GetWriterProfile().Name;