Skip to content

feat: add support for listing owner message automation#322

Open
MatrixNeoKozak wants to merge 1 commit into
orangecoding:masterfrom
MatrixNeoKozak:fix/improvement-1780562879905
Open

feat: add support for listing owner message automation#322
MatrixNeoKozak wants to merge 1 commit into
orangecoding:masterfrom
MatrixNeoKozak:fix/improvement-1780562879905

Conversation

@MatrixNeoKozak
Copy link
Copy Markdown

This PR adds the foundation for automatically sending messages to listing owners. It updates the Job configuration to include message templates and a mode toggle, and introduces a placeholder method in the pipeline executioner to support future implementation of the actual sending logic per provider.

Summary of Changes

  1. Added messageTemplate and autoSendMessage fields to the Job configuration in lib/api/routes/jobRouter.js to allow users to define automated messages.
  2. Introduced _sendToOwner method in lib/FredyPipelineExecutioner.js as a hook for the new feature.
  3. Updated JSDoc in lib/types/job.js to reflect the new job configuration fields.

Rationale

This prepares Fredy for the requested feature, enabling users to configure automated messaging to listing owners. The implementation is currently a placeholder, allowing further work to implement provider-specific message sending mechanisms.

Technical Impact

  • Allows API to accept and store the new job settings.
  • Establishes a hook in the pipeline to perform the automated interaction in the future.

Copy link
Copy Markdown
Owner

@orangecoding orangecoding left a comment

Choose a reason for hiding this comment

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

There is a lot of changes due to changing the jsdoc. Would you mind reverting this? I don't know what pyrefly is, but it seems wrong


/**
* @param {import('fastify').FastifyInstance} fastify
* @pyrefly_bundled_typeshed_082e1b761623/lib2to3/fixes/fix_tuple_params.pyi {import('fastify').FastifyInstance} fastify
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

What is this?

/** @import { SpecFilter, SpatialFilter } from './types/filter.js' */
/** @import { SimilarityCache } from './types/similarityCache.js' */
/** @import { Browser } from './types/browser.js' */
/** @pyrefly_bundled_typeshed_082e1b761623/zipimport.pyi { ParsedListing } from './types/listing.js' */
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Maybe I'm not up to date, but this seems wrong:
yrefly_bundled_typeshed_082e1b761623/zipimport.pyi

@orangecoding
Copy link
Copy Markdown
Owner

@MatrixNeoKozak Hey,
are you planning to implement the feature? Coz in the background, I'm working on it already. The problem however is:

  • every provider is different, that makes it really hard to guarantee a successful send
  • make sure to stay within the "grey area" and not violate explicit rules of the provider to avoid legal issues

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants