Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix json import casing references #1803

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Lehats
Copy link
Contributor

@Lehats Lehats commented Jan 14, 2025

Fix #1797

src/api/Controllers/ImportController.cs Outdated Show resolved Hide resolved
@Lehats Lehats requested a review from danjov January 15, 2025 06:30

// Aggregate all CasingId references from Observations, Instrumentations, and Backfills
var casingReferenceIdsInBorehole = new HashSet<int>(borehole.Observations?.Where(o => o.CasingId.HasValue).Select(o => o.CasingId!.Value) ?? []);
casingReferenceIdsInBorehole.UnionWith(borehole.Completions?.SelectMany(c => c.Instrumentations ?? Enumerable.Empty<Instrumentation>()).Where(i => i.CasingId.HasValue).Select(i => i.CasingId!.Value) ?? []);
Copy link
Contributor

Choose a reason for hiding this comment

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

PP: Zeile in mehrere aufteilen wie oben bei var casingIds

@MiraGeowerkstatt MiraGeowerkstatt self-requested a review January 15, 2025 08:22
danjov
danjov previously approved these changes Jan 15, 2025
@Lehats Lehats dismissed stale reviews from danjov and MiraGeowerkstatt via b1c33a7 January 15, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON Import: Falsche Casing Referenzen
3 participants