Skip to content

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Apr 3, 2025

Follow up with refactoring into a separate class e.g. LinkIndexService

@reakaleek reakaleek requested a review from a team as a code owner April 3, 2025 21:37
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few nits, other than that LGTM!

{
{ NarrativeRepository.RepositoryName, assembleContext.Configuration.Narrative }
};
await Parallel.ForEachAsync(repositories,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you observe this speeding up the build? Just curious since GenerateAll also tries to satisfy all threads with concurrent generation.

BucketName = bucketName,
Key = $"elastic/{checkout.Repository.Name}/{checkout.Repository.GetBranch(contentSource)}/links.json",
ContentBody = content,
ContentType = MediaTypeNames.Application.Json,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#964

ChecksumAlgorithm = SHA256

[YamlMember(Alias = "skip")]
public bool Skip { get; set; }

public string GetBranch(ContentSource contentSource) => contentSource switch
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

MaxDegreeOfParallelism = Environment.ProcessorCount
}, async (kv, c) =>
{
var name = kv.Key.Trim();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try/catch the loop method and emit an error over the diagnostics channel.

That way we can still build all the repositories that do validate and update those.

@reakaleek reakaleek requested a review from Mpdreamz April 4, 2025 08:34
Co-authored-by: Martijn Laarman <Mpdreamz@gmail.com>
@reakaleek reakaleek merged commit 0934635 into main Apr 4, 2025
14 checks passed
@reakaleek reakaleek deleted the feature/update-link-index branch April 4, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants