Skip to content

Cyclic events #21

Open
Open

Description

@Sobak
  • figure out a way to write and store time they should appear
  • if we want to allow for reminders of cyclic events, then a list with relative remind times is needed (e.g. remind me: 24h before, week before etc...)

Activity

  1. self-assigned this
    on May 30, 2016
  2. Albert221 commented on Mar 5, 2017

    @Albert221
    Contributor

    Can you explain the idea of cyclic events a little bit more?

  3. Sobak commented on Mar 5, 2017

    @Sobak
    MemberAuthor

    I can think of many possible events which are regularly repeatable over the time, e.g. someone's bithday or regular doctor appointment.

    Let's put technical aspects aside, for a moment. There are two questions I'd like to answer before the potential implementation takes place:

    • should each repetition of such note be independent entry in the system? Each of them should be possible to handle separately when it comes to toggling its status etc so I think the answer is yes. On the other hand, deleting any of these individual repetitions (occurences) should probably remove whole cyclic event (including past occurences or not?). Internally, this could be solved by specifying parent_id
    • how should they be defined? I think we could look how cron interface happens to be visualised to less-technical users.

    This idea was somehow inspired by https://github.com/mtdowling/cron-expression but I'm certainly sure it should belong to the core. Probably I'd like to keep it less-packed with features and implement that as a plugin.

  4. Albert221 commented on Mar 5, 2017

    @Albert221
    Contributor

    I think that repetitive event should be one structure, i.e. "shopping every Sunday", but with the ability to extract specific one, for example we have this shopping event, but we want to cancel not the whole repetitive event, but this one that takes place in two weeks. I have similar feature in my smartphone's alarm app (image at the end).

    Deleting specific event IMO should NOT delete whole repetitive event, but deleting the whole repetitive event SHOULD delete every future event, but leave past ones.

    Technically this could be solved by i.e.:

    • repetitive_event table with fields: id, from, to (nullable for infinite), frequency, for example: daily, every 5th day, every Sunday, every 5 days etc.
    • particular_event table with fields: id, repetitive_id and other mutator fields.

    screenshot_2017-03-05-15-42-25-878_com android deskclock

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions