crikke / cms Goto Github PK
View Code? Open in Web Editor NEWBig money cms
Big money cms
When saving content validation should not be run, this because content which fails validation is still allowed to be saved.
Saving content should only return HTTP 401 depending on if the user has sufficient rights to save content.
Validation is done when publishing content and returns HTTP 400 if validation fails or HTTP 401 if user is not allowed to publish content
UI
Creating new content should only require ContentDefinitionID,
Up
Should Contentmanagement/API & contentmanagement/App move from pkg to cmd maybe?
Status field on contentdefinition
When creating new contentdefinition it has status draft.
Content cannot be created from a contentdefinition with status Draft
Published
Draft
/contentdefinition/{id}/publish
You only save one version & locale of content at a time. So domain.ContentData can be simplified.
Same thing when editing content
Writes will have validation that has to be run
Each workspace owns its data and should be a bounded context, there should not be any cross references between workspaces. Therefore, each workspace should have its own database.
One database for data across all workspaces:
Each workspace has its own database:
//! TODO: instead of storing the versionnumber in PublishedVersion, store the actual version there.
//! This will always be the most frequent requested data and by doing this unnecessary logic to query the published version wont be needed.
//! Older versions should be moved to another collection since read speeds isn´t as important.
//! Obviously ContentVersion will need a version field.
//! This will also solve problem with status, since status will only be needed on ContentVersion and not Content
Multiple instances of ContentManagement has read access. So needs synchronization
Enforce that policies exist for given action
Example:
GET /content/foo,
In code check that there exist at least one policy for given action. In this case Read
Should not be 2 different applications, instead mount contentdelivery route
Just basic telemetry for v0.1.0
When editing content, each locale should be updated standalone. Different users should be able to have different access rights to locales.
So one user may edit sv_SE but not fi_FI.
Should contentmanagement be responsible for admin related tasks?
SiteConfiguration:
Content & ContentDefinition are decoupled, when saving content it is Validated against the contentdefinition.
There is no need to version ContentDefinition because content can only be of the latest version of ContentDefinition.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.