Skip to content

Commit

Permalink
Fix: Indexing integration test is complicated and inefficient (#6676,…
Browse files Browse the repository at this point in the history
… PR #6677)
  • Loading branch information
achave11-ucsc committed Nov 7, 2024
2 parents bee4a60 + 3998aba commit cfe7acf
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 166 deletions.
3 changes: 3 additions & 0 deletions src/azul/indexer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ def spec_cls(cls) -> type[SourceSpec]:
spec_cls, ref_cls = get_generic_type_params(cls, SourceSpec, SourceRef)
return spec_cls

def with_prefix(self, prefix: Prefix) -> Self:
return attrs.evolve(self, spec=attrs.evolve(self.spec, prefix=prefix))


class SourcedBundleFQIDJSON(BundleFQIDJSON):
source: SourceJSON
Expand Down
2 changes: 1 addition & 1 deletion src/azul/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def partition_source(self,
prefix = Prefix.for_main_deployment(count)
else:
prefix = Prefix.for_lesser_deployment(count)
source = attr.evolve(source, spec=attr.evolve(source.spec, prefix=prefix))
source = source.with_prefix(prefix)
return source

@abstractmethod
Expand Down
Loading

0 comments on commit cfe7acf

Please sign in to comment.