Skip to content

Generic content writer with proper exceptions and permission checks #23

@randomouscrap98

Description

@randomouscrap98

We need a service which will write any content for us, using the conversions provided in the views only. It will be similar to the searcher, where fields that are complex (such as permissions) need to be converted specially.

The service will need to:

  • Check ID, do update or insert (or delete)
  • Check permissions, see if user can CREATE in the given parent ID if INSERT
  • Check permissions for UPDATE on old item if doing an update
  • Check permissions for DELETE on old item if doing a delete
  • Add a history item with appropriate action, appropriate "current state" content.
    • Delete will store the current page as-is so it can be restored easily
  • Delete all old values, permissions, keywords, reinsert new ones associated with original content. Do NOT delete the old content, only those associated values!
  • Work for ANY content type: file, module, page, 'content' (baseline)
    • Consider a service which converts any view to a db item.
    • Probably DON'T want one that converts the other way, for performance reasons. Reads need to be AS FAST as possible, so let the sql be as optimized as possible and convert directly into views from tables

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