Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic jobs #9

Closed
16 of 19 tasks
luandro opened this issue Nov 4, 2024 · 0 comments · Fixed by #4
Closed
16 of 19 tasks

Basic jobs #9

luandro opened this issue Nov 4, 2024 · 0 comments · Fixed by #4
Labels
good first issue Good for newcomers
Milestone

Comments

@luandro
Copy link
Contributor

luandro commented Nov 4, 2024

We need to create basic Trigger.dev jobs to handle GET and SAVE operations for key system components. Each job will be tested using Vitest and the Trigger.dev Testing Package to ensure reliability and functionality.

Task List

  • Call-Plugin Jobs

    • Create GET job to retrieve plugin call data.
    • Create SAVE job to store plugin call results.
  • Grant-Calls Jobs

    • Create GET job to fetch grant call information.
    • Create SAVE job to update grant call records.
  • Profiles Jobs

    • Create GET job to access profile data (biome, ethnic group, territory, community, user).
    • Create SAVE job to update profile information.
  • Received-Messages Jobs

    • Create GET job to retrieve messages received by the system.
    • Create SAVE job to log received messages.
  • ToSend-Messages Jobs

    • Create GET job to fetch messages queued to send.
    • Create SAVE job to update message send status.

Testing

  • Implement tests for each job using Vitest.
  • Use the Trigger.dev Testing Package to simulate job execution and verify outcomes.
    • Ensure all GET jobs correctly retrieve data without altering the database.
    • Ensure all SAVE jobs correctly update the database according to the input data.

Resources

Expected Outcomes

  • Reliable Data Handling: Each job should accurately handle data retrieval and storage.
  • Test Coverage: Comprehensive tests to confirm each job functions as expected under various conditions.
@luandro luandro converted this from a draft issue Nov 4, 2024
@luandro luandro added the good first issue Good for newcomers label Nov 4, 2024
@luandro luandro added this to the MVP milestone Nov 4, 2024
@luandro luandro linked a pull request Nov 7, 2024 that will close this issue
8 tasks
luandro added a commit that referenced this issue Nov 22, 2024
feat: add basic background jobs #9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant