Skip to content

Commit

Permalink
Tidying and extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
robknight committed Jul 19, 2024
1 parent ab16480 commit bac5e9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,22 +170,6 @@ function ColumnIndicator({
<MenuList>
<MenuInput value={columnNames[column]} />
<MenuDivider />
{/* <MenuGroup title="Data Type">
<MenuItem icon={<Icon as={MdShortText} w={4} h={4} />}>
Text
</MenuItem>
<MenuItem icon={<Icon as={MdNumbers} w={4} h={4} />}>
Integer
</MenuItem>
<MenuItem icon={<Icon as={MdCheckCircleOutline} w={4} h={4} />}>
Boolean
</MenuItem>
<MenuItem icon={<Icon as={MdDateRange} w={4} h={4} />}>
Date
</MenuItem>
<MenuItem icon={<Icon as={MdKey} w={4} h={4} />}>UUID</MenuItem>
</MenuGroup>
<MenuDivider /> */}
<MenuItem
icon={<Icon as={MdDeleteOutline} w={4} h={4} />}
onClick={() => onDelete(columnNames[column])}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ import {
PipelineAtom
} from "../../../../database/queries/pipelineAtomDB";
import { IPipelineConsumerDB } from "../../../../database/queries/pipelineConsumerDB";
import { IPipelineSemaphoreHistoryDB } from "../../../../database/queries/pipelineSemaphoreHistoryDB";
import { logger } from "../../../../util/logger";
import { PersistentCacheService } from "../../../persistentCacheService";
import { setError, traced } from "../../../telemetryService";
import { SemaphoreGroupProvider } from "../../SemaphoreGroupProvider";
import {
FeedIssuanceCapability,
makeGenericIssuanceFeedUrl
Expand Down Expand Up @@ -65,7 +63,6 @@ export class PODPipeline implements BasePipeline {
private db: IPipelineAtomDB<PODAtom>;
private definition: PODPipelineDefinition;
private credentialSubservice: CredentialSubservice;
private semaphoreGroupProvider?: SemaphoreGroupProvider;
private consumerDB: IPipelineConsumerDB;
private cacheService: PersistentCacheService;

Expand All @@ -83,7 +80,6 @@ export class PODPipeline implements BasePipeline {
db: IPipelineAtomDB,
credentialSubservice: CredentialSubservice,
consumerDB: IPipelineConsumerDB,
_semaphoreHistoryDB: IPipelineSemaphoreHistoryDB,
cacheService: PersistentCacheService
) {
this.eddsaPrivateKey = eddsaPrivateKey;
Expand Down Expand Up @@ -140,6 +136,12 @@ export class PODPipeline implements BasePipeline {
this.definition.id
);

// @todo because this code is async, it may end up being interleaved
// with issuance requests at run-time. This may result in code
// requesting PCDs that - temporarily - do not exist because the atom
// DB has not been repopulated.
// A long-term solution might involve locking the pipeline or the DB,
// or refactoring so that this scenario cannot arise.
await this.db.clear(this.definition.id);
logs.push(makePLogInfo(`cleared old data`));
await this.db.save(this.definition.id, atoms);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export function instantiatePipeline(
args.pipelineAtomDB,
args.credentialSubservice,
args.consumerDB,
args.semaphoreHistoryDB,
args.cacheService
);
}
Expand Down

0 comments on commit bac5e9d

Please sign in to comment.