Skip to content

Feature: uSync Actions #3

Closed
Closed

Description

@KevinJump

Current

When its in listening mode , usync keeps track of things people delete and puts them in a uSyncAction.config file. On import this file is read, and things that match (usually by key) are deleted from the target site.

Options

It doesn't have to work like that, we could just put the deletes inline - by replacing the config file for an item with a file marking its deletion, then everything is just in place - deletes happen when uSync stumbled into the delete file.

Advantages

  • it's easier to code,
  • the presence of a random file in the root is unlikely to confuse people

Disadvantages:

  • Potentially harder to debug? - you have to hunt the files to find the delete
  • Exports might wipe it unintentionally ? Exports clear the folder this would loose all the deletes. at the moment there is an option to keep the actions file, which preserves it over exports

Activity

  1. KevinJump commented on Jan 28, 2019

    @KevinJump
    MemberAuthor

    Answered my own question with this one, keep the actions file.

  2. self-assigned this
    on Jan 28, 2019
  3. KevinJump commented on Jan 28, 2019

    @KevinJump
    MemberAuthor

    to keep it a bit more sensible (code wise) going to have an action file pertype.

  4. KevinJump commented on Jan 28, 2019

    @KevinJump
    MemberAuthor

    actions are in commit: 95a8805

    each handler has its own action file, and they are put in the the _Actions folder, this should make it eaiser to see them on disk, as well as keeping the size of the file down.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Code Impact

None yet

User Value

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions