Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMS] Everything is a Multi-lingual Topic #431

Merged
merged 49 commits into from
Feb 13, 2019
Merged

Conversation

jhmullen
Copy link
Collaborator

Warning: This PR contains many breaking changes, including a full data structure reorg, database restructuring, and update to Blueprint 3 (via the latest canon-core).

This PR includes a number of changes:

  • Moving away from the traditional Profile -> Section -> Topic hierarchy, this PR takes an "Everything is a Topic" approach. This means that profiles are actually quite small now - containing only generators, materalizers, and a title. Everything else, sections, footnotes, topics, vizes - these are all special cases/templates of the generic "Topic," and are organized in an ordered list like a website (as opposed to strictly hierarchically).

  • Most every entity is now multi-lingual. This required the creation of corollary content tables that contain translated content, controlled by the CANON_LANGUAGES environment variable. API endpoints now accept a &locale=<locale> parameter to fetch content in the given locale, falling back to CANON_LANGUAGE_DEFAULT if fields are missing.

  • Update to canon-core 17.4. The most "breaking" part of this upgrade is the jump from blueprint 1.x to blueprint 3.x (though moving to react 16 caused a few blips as well). I have run both migration scripts and reorganized all labs components and moved all pt- classes to bp3-.

@davelandry davelandry merged commit 0cccafa into master Feb 13, 2019
@davelandry davelandry deleted the refactor-flatten branch February 13, 2019 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants