Skip to content

Commit

Permalink
Notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeboers committed Sep 22, 2015
1 parent d0f8cd1 commit 32fb6da
Showing 1 changed file with 3 additions and 64 deletions.
67 changes: 3 additions & 64 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,9 @@

- Schema.for_url(base_url) -> static class



- role assignments for columns, so that our tools that
access roles (via a special syntax) instead of actual column names

e.g.: PublishEvent.$version -> PublishEvent.sg_version_1

Can have non-alnum in there, e.g.: PublishEvent.$sgpublish:publish:type

- entity type renames, so that we can use custom entities for
whatever we want, e.g.:

MyType: CustomEntity02

- Arbitrary tags/meta, e.g. if something is used by sgcache or not.

EntityType.field: sgcache: include: true

Could we then have xpath like expressions?
e.g.: EntityType.[sgcache.include==true]
PublishEvent.[sgpublish.is_core]

Tags: PublishEvent.#sgsession:core -> {sg_code,sg_type,...}

- Automatic sg_ prefix detection:
Publish.type -> PublishEvent.sg_type

Have a "doctor" which tells us the potential problems with our schema,
such as two columns that are the same minus the prefix

- Force a specific name, to skip the rewriting rules, e.g.: Publish.!type
This is more in SGSession (or other consumers)


- Public API:

schema.resolve_entity('$Publish') -> ['PublishEvent']
schema.resolve_field('PublishEvent', 'type') -> ['sg_type']

- Create a standard-ish set of tags and aliases:
$parent pointing to typical parent

- Include backrefs in reduced schema? Known as "inverse_association" in private
schema.





















- Include inverse_association (from private schema)

- Schema.resolve_one -> error if there isn't just one

- *type -> explicit prefix matching

0 comments on commit 32fb6da

Please sign in to comment.