Skip to content

Commit

Permalink
remove fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
tadgh committed Feb 12, 2025
1 parent 1da23c8 commit 07096e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ public static RequestPartitionId allPartitions() {
}

@Nonnull
// TODO GGG: This is a now-bad usage and we should remove it. we cannot assume null means default.
// TODO GGG: This is a now-bad usage and we should remove it. we cannot assume null means default.
public static RequestPartitionId defaultPartition() {
return fromPartitionIds(Collections.singletonList(null));
}

@Nonnull
// TODO GGG: This is a now-bad usage and we should remove it. we cannot assume null means default.
// TODO GGG: This is a now-bad usage and we should remove it. we cannot assume null means default.
public static RequestPartitionId defaultPartition(@Nullable LocalDate thePartitionDate) {
return fromPartitionIds(Collections.singletonList(null), thePartitionDate);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class SubscriptionModelConfig {
@Bean
public SubscriptionCanonicalizer subscriptionCanonicalizer(
FhirContext theFhirContext, SubscriptionSettings theSubscriptionSettings) {
//FIXME GGG
return new SubscriptionCanonicalizer(theFhirContext, theSubscriptionSettings);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ public class SubscriptionCanonicalizer {

private IRequestPartitionHelperSvc myHelperSvc;


@Autowired
public SubscriptionCanonicalizer(FhirContext theFhirContext, SubscriptionSettings theSubscriptionSettings) {
myFhirContext = theFhirContext;
mySubscriptionSettings = theSubscriptionSettings;
}
//TODO GGG: Eventually, we will unify autowiring styles. It is this way now as this is the least destrctive method
//to accomplish a minimal MR. I recommend moving all dependencies to setter autowiring, but that is for another day.
// TODO GGG: Eventually, we will unify autowiring styles. It is this way now as this is the least destrctive method
// to accomplish a minimal MR. I recommend moving all dependencies to setter autowiring, but that is for another
// day.
@Autowired
public void setPartitionHelperSvc(IRequestPartitionHelperSvc thePartitionHelperSvc) {
myHelperSvc = thePartitionHelperSvc;
Expand Down Expand Up @@ -797,7 +797,9 @@ private boolean handleCrossPartition(IBaseResource theSubscription) {
boolean isSubscriptionCreatedOnDefaultPartition = false;

if (nonNull(requestPartitionId)) {
isSubscriptionCreatedOnDefaultPartition = myHelperSvc == null ? requestPartitionId.isDefaultPartition() : myHelperSvc.isDefaultPartition(requestPartitionId);
isSubscriptionCreatedOnDefaultPartition = myHelperSvc == null
? requestPartitionId.isDefaultPartition()
: myHelperSvc.isDefaultPartition(requestPartitionId);
}

boolean isSubscriptionDefinededAsCrossPartitionSubscription =
Expand Down

0 comments on commit 07096e9

Please sign in to comment.