Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Request processor to queue respective announcements #37

Merged
merged 18 commits into from
Sep 8, 2023

Conversation

saraswatpuneet
Copy link
Collaborator

@saraswatpuneet saraswatpuneet commented Sep 7, 2023

Details

  • Update request processor to include a DsnpAnnouncementProcessor
  • DsnpAnnouncementProcessor : takes a IRequestJob and parses it in respective DSNP Announcements
  • Later it queues jobs for Announcements Batching for IPFS in their respective queues
    Closes: Request processor  #11

@saraswatpuneet saraswatpuneet marked this pull request as ready for review September 7, 2023 16:27
@saraswatpuneet saraswatpuneet changed the title [WIP] Request processor to queue respective announcements Request processor to queue respective announcements Sep 7, 2023
Copy link
Collaborator

@aramikm aramikm left a comment

Choose a reason for hiding this comment

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

Added some comments. Activity content creation needs a bit more love since we are duplicating a lot of same code.

libs/common/src/dtos/activity.dto.ts Outdated Show resolved Hide resolved
apps/api/src/api.service.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@aramikm aramikm left a comment

Choose a reason for hiding this comment

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

Looks great!

private async prepareImageAttachment(asset: AssetDto): Promise<ActivityContentImage> {
const imageLinks: ActivityContentImageLink[] = [];
asset.references?.forEach(async (reference) => {
const assetMetaData = await this.assetQueue.getJob(reference.referenceId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

So each job should be independent from other jobs. We should not expect this to resolve. This is not a blocker and going to address it in another PR.

Copy link
Collaborator Author

@saraswatpuneet saraswatpuneet Sep 8, 2023

Choose a reason for hiding this comment

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

Yeah i was a bit confused about it, but lets fix it in next

@saraswatpuneet saraswatpuneet merged commit 741996e into main Sep 8, 2023
@saraswatpuneet saraswatpuneet deleted the request_processor_dsnp branch September 8, 2023 19:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request processor
2 participants