Go Wiki/CMS: Difference between revisions

From Adam Colton
Jump to navigation Jump to search
No edit summary
No edit summary
Line 45: Line 45:
* Sub-group
* Sub-group
* Admin
* Admin
== Hard Problems ==
If groups can have groups as members how do we find all the members in a single query? Perhaps we don't!
For tags, if a tag can have more than one ancestor, how do we search find all children in one query?

Revision as of 14:45, 8 July 2014

Thinking of rolling my own - bad idea, but hey, it's what I do.

Core

  • Run on NoSql engines (I want to build it out so it can handle a few by default).
  • Security by default - if no ssl, uses unauthenticated ssl
  • The core is halfway between a wiki and a CMS

I'm going to base the core data structure off the work I did for the [Immortal Object Server]. The "core app" is simply a mark-down engine.

Queries

I want to core of the engine to center around data, therefore being able to execute useful queries is critical. The primary method or organization is tagging. Tagging data puts it in a set. The basic form of query is based on set theory - union, intersection.

The first complication to this is set tagging, or subsets. This says that everything tagged B is also tagged A (though not everything tagged A is B). Therefore B is a subset of A. To make this useful we will want to bring in subset queries. This is accomplished with subset indexing. So A would be everything A (including all of B) but A[0] would only be things actually tagged A. A[1] would be things tagged A via one level of inheritance and A[0,1] would be anything tagged A directly or inheriting A via 1 hierarchy.

Another complication is creating artificial tags via searches.

Symbols

  • +: union
  • %: intersection
  • -: difference

No order of operations, performed left to right.

 entrees + base % healthy

Apps

Following my fundamental belief, apps are divided into schemas, services, libraries and UIs. I also want to follow the WordPress model of having a core that does a single thing well and the system really gains power by using a set of apps.

Groups and Permissions

Groups With Special Membership

  • Users
  • Groups
  • All (users + anon)

Groups With Special Permissions

  • Super Users
  • Create Users
  • Create Groups

Group Permissions

  • Exists
  • List/read
  • Self-admin
  • Sub-group
  • Admin

Hard Problems

If groups can have groups as members how do we find all the members in a single query? Perhaps we don't!

For tags, if a tag can have more than one ancestor, how do we search find all children in one query?