Skip to content

Conversation

@alexnj
Copy link
Member

@alexnj alexnj commented Jan 28, 2023

No description provided.

@alexnj alexnj requested a review from a team as a code owner January 28, 2023 01:24
@alexnj alexnj requested review from brendankenny and removed request for a team January 28, 2023 01:24
@alexnj alexnj changed the title misc: mark dependencies of entity classification correctly misc: mark dependencies of entity classification computed artifact Jan 28, 2023
}

const EntityClassificationComputed = makeComputedArtifact(EntityClassification, null);
const EntityClassificationComputed = makeComputedArtifact(EntityClassification,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you update all calls to this computed artifact to only pass in these two values? Otherwise, the caching doesn't work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you explain? May be I'm reading this wrong, but it seems to pick only those dependencies picked via keys supplied during makeComputedArtifact. I've updated the one remaining call that had more than the required two parameters passed, but it didn't seem to create any difference in sample.json.

Copy link
Collaborator

@connorjclark connorjclark Jan 28, 2023

Choose a reason for hiding this comment

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

Ah, I forgot we did that part recently. All good. For some reason I though the dep thing was just a type hint ... But nah we do runtime stuff to ensure the caching works well

{
"startTime": 0,
"name": "lh:computed:EntityClassification",
"duration": 100,
Copy link
Member

Choose a reason for hiding this comment

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

this kinda suggests that the computed audit isnt being run....

seems odd.

Copy link
Contributor

Choose a reason for hiding this comment

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

It was being run multiple times no? This PR removes the unnecessary run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants