How to debug Dojo in Episerver

Recently I struggled  with debugging a custom property code. I usually  check Console in chrome  developer tool to see if  I missed something but there was nothing in  there at all! I tried to debug Dojo and Episerver JS code to find out what a problem and all JS is minified! To  resolve this you can add:

<clientResources debug="true" />

to “web.config” -> “episerver.framework” section! With that all “warnings” from  dojo and episerver will be shown to you and JS is not minified! Hope it can save someone else time! Just remember to remove this item on your live site!

 

To exclude uploaded EPiServer Form file uploaded (FileUploadElementBlock) from EPiServer Find Index

There is a flues in EPiServer Form which all uploaded file can be indexed. To exclude uploaded file using EPiServer Form -> FileUploadElementBlock from EPiServer Find indexer you can go:

    [ModuleDependency(typeof(InitializationModule))]
    public class EPiServerFindInitialization : IInitializableModule
    {
        public void Initialize(InitializationEngine context)
        {
            ContentIndexer.Instance.Conventions.ForInstancesOf().ShouldIndex(ShouldIndexDocument);
        }

        public void Uninitialize(InitializationEngine context)
        {
        }

        bool ShouldIndexDocument(DocumentFileBase documentFileBase)
        {
            if (contentAssetHelper.Service.GetAssetOwner(documentFileBase.ContentLink) is FileUploadElementBlock)
            {
                IEnumerable result;
                ContentIndexer.Instance.TryDelete(documentFileBase, out result);

                return false;
            }

            return true;
        }

        readonly Injected contentAssetHelper;
    }

Solution Architect vs Agile

What is the definition of Architecture? There many definition but I like this one “defining a structured solution that meets all of the technical and operational requirements, while optimizing common quality attributes such as performance, security, and manageability”. It is very broad but what most of the people think of the architecture is a definition of how software structure should looks like but how much deep you should go? Is the job of solution architect is design the architecture and go away? In my opinion this is not going to work. Especially with Agile methodology it is hard to define all requirements upfront! So I think it is iterative process and solution architect needs to iteratively groom and adapt his solution. The architecture can’t be change too much because it would be expensive but the design could change. But is software architect needs to manage the team or based on Agile sole the team needs to be self-managed. I think solution architect needs to help team and there is no management. Solution architect needs to make sure his solution and design understood and it has been adapted properly and if there is any change needs to be done should be considered in next iteration or if it is blockage need to consider to change immediately. Solution architect can use code review as one of best tools to audit the design and making sure it adapted and communicated properly. I think solution architect need to read and write code, maybe more reading but should write some code to be hand on.