Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Feature: Generic Service For Associative Table #9

Open

Description

@harpocrates12

It would be nice to have a generic service that:

  • receives an array of requested id_pairs (like used in associative tables)
PPPT::Simple::Plural::DeleteInsert.new.call(
  [
    { some_id: 1, some_other_id: 2},
    { some_id: 1, some_other_id: 3},
  ]
)

And takes care of:

  • finding existent records
  • infer outdated records and delete them
  • infer new 'records' and insert them

Activity

  1. harpocrates12 commented on Mar 15, 2019

    @harpocrates12
    ContributorAuthor

    @mull descriptive enough?

  2. harpocrates12 commented on Mar 15, 2019

    @harpocrates12
    ContributorAuthor

    I guess there is an underlying assumption in this behaviour that whenever called the service will be provided with all currently relevant id_pairs.

    Not sure if that is an issue or if it is sufficient to make that assumption explicit with the service name/description.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions