Repository navigation
Conversation
vkalapov
force-pushed
the
cross-mta-race-condition-fix
branch
3 times, most recently
from
November 11, 2026 12:46
f7be185 to
77ed097
Compare
vkalapov
force-pushed
the
cross-mta-race-condition-fix
branch
from
November 11, 2026 12:52
77ed097 to
1eddf49
Compare
|
vkalapov
marked this pull request as ready for review
November 12, 2026 07:35
Yavor16
approved these changes
Nov 12, 2026
| // Identity of a configuration entry's provided dependency, ignoring version | ||
| private record ProviderIdentity(String nid, String id, String namespace, String targetOrg, String targetSpace) { | ||
| static ProviderIdentity from(ConfigurationEntry entry) { | ||
| CloudTarget target = entry.getTargetSpace() == null ? new CloudTarget() : entry.getTargetSpace(); |
Contributor
There was a problem hiding this comment.
Shouldn't we keep them null?
| private record ProviderIdentity(String nid, String id, String namespace, String targetOrg, String targetSpace) { | ||
| static ProviderIdentity from(ConfigurationEntry entry) { | ||
| CloudTarget target = entry.getTargetSpace() == null ? new CloudTarget() : entry.getTargetSpace(); | ||
| return new ProviderIdentity(entry.getProviderNid(), entry.getProviderId(), entry.getProviderNamespace(), |
Contributor
There was a problem hiding this comment.
There are more fields which are missing here - cloudTargets, spaceId and contentId . Should we also include them into comparison?
Comment on lines
+23
to
+28
| private static ConfigurationEntry entry(String version, String namespace, CloudTarget target, String content) { | ||
| return new ConfigurationEntry(NID, PID, version == null ? null : Version.parseVersion(version), namespace, target, content, | ||
| List.of(), "space-guid", null); | ||
| } | ||
|
|
||
| private static ConfigurationEntry entry(String version, String content) { |
Contributor
There was a problem hiding this comment.
Use method names with verb in them.
| ConfigurationEntry newer = entry("1.0.0-20261110083334", "{\"url\":\"new\"}"); | ||
| List<ConfigurationEntry> result = resolver.reduceRedundantEntries(List.of(older, newer)); | ||
| assertEquals(1, result.size()); | ||
| assertSame(newer, result.getFirst()); |
Contributor
There was a problem hiding this comment.
Why assertSame was used instead of assertEquals?
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.