Skip to content

Commit 509a2cc

Browse files
authored
Merge pull request #35 from rubberduck-vba/p0
Bugfixes
2 parents ff9e033 + 5301dc0 commit 509a2cc

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

rubberduckvba.Server/ContentSynchronization/Pipeline/Sections/SyncXmldoc/SyncXmldocSection.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public SynchronizeXmlDocSection(IPipeline<SyncContext, bool> parent, Cancellatio
2929
XmlDocInspectionParser xmlInspectionParser)
3030
: base(parent, tokenSource, logger)
3131
{
32-
Block = new JustFuckingDoEverything(this, tokenSource, logger, content, inspections, quickfixes, annotations, tagServices, github, mergeService, staging, xmlAnnotationParser, xmlQuickFixParser, xmlInspectionParser);
32+
Block = new SynchronizeXmlDocBlock(this, tokenSource, logger, content, inspections, quickfixes, annotations, tagServices, github, mergeService, staging, xmlAnnotationParser, xmlQuickFixParser, xmlInspectionParser);
3333
}
3434

35-
public JustFuckingDoEverything Block { get; }
35+
public SynchronizeXmlDocBlock Block { get; }
3636

3737
protected override IReadOnlyDictionary<string, IDataflowBlock> Blocks => new Dictionary<string, IDataflowBlock>
3838
{
@@ -45,7 +45,7 @@ public override void CreateBlocks()
4545
}
4646
}
4747

48-
public class JustFuckingDoEverything : ActionBlockBase<SyncRequestParameters, SyncContext>
48+
public class SynchronizeXmlDocBlock : ActionBlockBase<SyncRequestParameters, SyncContext>
4949
{
5050
private readonly IRubberduckDbService _content;
5151
private readonly IRepository<InspectionEntity> _inspections;
@@ -59,7 +59,7 @@ public class JustFuckingDoEverything : ActionBlockBase<SyncRequestParameters, Sy
5959
private readonly XmlDocQuickFixParser _xmlQuickFixParser;
6060
private readonly XmlDocInspectionParser _xmlInspectionParser;
6161

62-
public JustFuckingDoEverything(PipelineSection<SyncContext> parent, CancellationTokenSource tokenSource, ILogger logger,
62+
public SynchronizeXmlDocBlock(PipelineSection<SyncContext> parent, CancellationTokenSource tokenSource, ILogger logger,
6363
IRubberduckDbService content,
6464
IRepository<InspectionEntity> inspections,
6565
IRepository<QuickFixEntity> quickfixes,
@@ -334,11 +334,11 @@ public SyncXmldocSection(IPipeline<SyncContext, bool> parent, CancellationTokenS
334334
PrepareStaging = new PrepareStagingBlock(this, tokenSource, logger);
335335
SaveStaging = new BulkSaveStagingBlock(this, tokenSource, staging, logger);
336336
*/
337-
JustFuckingDoIt = new JustFuckingDoEverything(this, tokenSource, logger, content, inspections, quickfixes, annotations, tagServices, github, mergeService, staging, xmlAnnotationParser, xmlQuickFixParser, xmlInspectionParser);
337+
SynchronizeXmlDoc = new SynchronizeXmlDocBlock(this, tokenSource, logger, content, inspections, quickfixes, annotations, tagServices, github, mergeService, staging, xmlAnnotationParser, xmlQuickFixParser, xmlInspectionParser);
338338
}
339339

340340
#region blocks
341-
private JustFuckingDoEverything JustFuckingDoIt { get; }
341+
private SynchronizeXmlDocBlock SynchronizeXmlDoc { get; }
342342
/*
343343
private ReceiveRequestBlock ReceiveRequest { get; }
344344
private BroadcastParametersBlock BroadcastParameters { get; }
@@ -384,8 +384,8 @@ public SyncXmldocSection(IPipeline<SyncContext, bool> parent, CancellationTokenS
384384
private PrepareStagingBlock PrepareStaging { get; }
385385
private BulkSaveStagingBlock SaveStaging { get; }
386386
*/
387-
public ITargetBlock<XmldocSyncRequestParameters> InputBlock => JustFuckingDoIt.Block;
388-
public IDataflowBlock OutputBlock => JustFuckingDoIt.Block;
387+
public ITargetBlock<XmldocSyncRequestParameters> InputBlock => SynchronizeXmlDoc.Block;
388+
public IDataflowBlock OutputBlock => SynchronizeXmlDoc.Block;
389389

390390
protected override IReadOnlyDictionary<string, IDataflowBlock> Blocks => new Dictionary<string, IDataflowBlock>
391391
{
@@ -435,7 +435,7 @@ public SyncXmldocSection(IPipeline<SyncContext, bool> parent, CancellationTokenS
435435
[nameof(PrepareStaging)] = PrepareStaging.Block,
436436
[nameof(SaveStaging)] = SaveStaging.Block,
437437
*/
438-
[nameof(JustFuckingDoIt)] = JustFuckingDoIt.Block,
438+
[nameof(SynchronizeXmlDoc)] = SynchronizeXmlDoc.Block,
439439
};
440440
#endregion
441441

@@ -487,6 +487,6 @@ public override void CreateBlocks()
487487
PrepareStaging.CreateBlock(JoinStagingSources);
488488
SaveStaging.CreateBlock(PrepareStaging);
489489
*/
490-
JustFuckingDoIt.CreateBlock();
490+
SynchronizeXmlDoc.CreateBlock();
491491
}
492492
}

rubberduckvba.Server/ContentSynchronization/XmlDoc/XmlDocAnnotationParser.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ private IEnumerable<AnnotationExample> ParseExamples(XElement node)
111111
*/
112112
before = example.Elements(XmlDocSchema.Annotation.Example.Before.ElementName)
113113
.Select((e, i) => ExtractCodeModule(e.Element(XmlDocSchema.Annotation.Example.Before.Module.ElementName)!, i, "(code pane)"));
114+
115+
after = example.Elements(XmlDocSchema.Annotation.Example.After.ElementName)
116+
.Select((e, i) => ExtractCodeModule(e.Element(XmlDocSchema.Annotation.Example.Before.Module.ElementName)!, i, "(exported code)"));
114117
}
115118

116119
if (before.Any() && (after?.Any() ?? false))

rubberduckvba.Server/Data/AnnotationsRepository.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ INSERT INTO [dbo].[Annotations] (
6161
UPDATE [dbo].[Annotations]
6262
SET [DateTimeUpdated]=GETDATE(),
6363
[TagAssetId]=@tagAssetId,
64+
[SourceUrl]=@sourceUrl,
6465
[Summary]=@summary,
6566
[Remarks]=@remarks,
6667
[JsonParameters]=@jsonParameters,

rubberduckvba.Server/Data/InspectionsRepository.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ INSERT INTO [dbo].[Inspections] (
7676
UPDATE [dbo].[Inspections]
7777
SET [DateTimeUpdated]=GETDATE(),
7878
[TagAssetId]=@tagAssetId,
79+
[SourceUrl]=@sourceUrl,
7980
[InspectionType]=@inspectionType,
8081
[DefaultSeverity]=@defaultSeverity,
8182
[Summary]=@summary,

rubberduckvba.Server/Data/QuickFixRepository.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ INSERT INTO [dbo].[QuickFixes] (
7373
UPDATE [dbo].[QuickFixes]
7474
SET [DateTimeUpdated]=GETDATE(),
7575
[TagAssetId]=@tagAssetId,
76+
[SourceUrl]=@sourceUrl,
7677
[Summary]=@summary,
7778
[Remarks]=@remarks,
7879
[CanFixMultiple]=@canFixMultiple,

0 commit comments

Comments
 (0)