Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

responsible: Marios Meimaris

deck object_id = {       

type: 'string', //should be 'integer'
maxLength: 24, //does not need to be so long
minLength: 1

}


Deck

propertytyperequiredformat checkingstate of implementationRemarks

_id

integer, autoincrementyesisInteger

implemented

for now is 'string' in the code
timestampstring, datetimeyesauto generatedimplementedadd 'format: datetime'
userinteger
, autoincrement
yesisIntegerimplemented (passed to service)
kindstring enumeration ('deck', 'slide')yesauto generatedimplemented

descriptionstringno 
implemented
languagestringyes implementedtranslation[ object ]no

translationsarray of {language: 'string', deck_id: object_id}no


translated_from


{ status: enum('original', 'google', 'revised', null)



has field 'status' with possible values 'original', 'google', 'revised'auto generatednot implemented

lastUpdatestring, datetimeno

auto-generated
not implemented
on creating new slide revision inside the deck
revisions[ array of DeckRevision ]yesauto generatedimplemented
tags[ array of strings ]no not implemented
activeobjectId (integer)yesif the revision exists, when a new deck is added is set to 1implemented
datasource string no  
   

 

...

 if the whole deck is the adaptation of a resource
licensestring enumerationyesis one of enumerables ['CC0', 'CC BY', 'CC BY-SA']not implemented should move it from revision, it is the same for the whole deck






 

ContentItem

propertytyperequiredformat checkingstate of implementation

order

integeryesisInteger

implemented

kindstringyesenum ('deck', 'slide')implemented
refobject:
{id, revision} 
yes implemented
ref.idintegeryesisIntegerimplemented
ref.revisionintegeryesisIntegerimplemented

...

propertytyperequiredformat checkingstate of implementationremarks

id

integerobjectId, autoincrement (scope limited to parent item)yesisInteger

implemented


titlestringyes implemented
timestampstringyesauto generatedimplemented
userinteger, autoincrementobjectidyesisIntegerimplemented
parentintegerobject {id: objectId, revision: objectId}noisIntegernot implementedreference to a previous revision/branch etc.
languagestringyes implemented
popularityintegernoisIntegernot implemented
themeobjectno not implemented
transitionobjectno not implemented
commentstringno implementedthis is a comment of the revision - like in github
abstractstringno implemented
footerobjectstringno not implemented
licensestring enumerationyesis one of enumerables ['CC0', 'CC BY', 'CC BY-SA']implemented
isFeaturedintegernoisIntegerfor now it is an object, should be just a string
isFeaturedbooleannoisBooleannot implemented
priorityintegernoisIntegernot implemented
visibilitybooleannoisBooleannot implemented
languagestringyes implemented

translationobjecttranslated_from

object {

status: string, enum['original', 'google', 'revised', null],

source: { id: object_id, revision: object_id},

translator: {id: object_id, name: string}

}

no not implemented
tagsarray of stringno not implemented
contentItemsarray of ContentItemsyes implemented
dataSourcesarray of stringno not implementedcollects all data sources from slides
usage

array of

deck_revision_ids

objects

{ id: object_id, revision: object_id}


no not implemented

 

slide = 

propertytyperequiredformat checkingstate of implementationremarks

_id

integerobjectId, autoincrementyesisInteger

implemented


timestampstring, datetimeyesauto generatedimplementedshould be format datetime
userinteger, autoincrementobjectIdyesisIntegerimplemented (passed to service)kindstring enumeration ('deck', 'slide')yes
auto generatedtranslationsarray of {language: 'string', slide_id: object_id}no
not implemented
descriptionstringno implementedlanguagestringyes implemented
contributors[array of contributor ]no not implemented
revisions[ array of slideRevisions ]yesauto generatedimplemented
tags[ array of strings ]no not implemented
activeobjectId (integer)noif the revision exists, when a new deck is added is set to 1not implemented
datasourcestringno
not implemented
licensestring enumerationyesis one of enumerables ['CC0', 'CC BY', 'CC BY-SA']implementedshould move it from slide_revision
lastUpdatestring, datetimenoautogenerated on creation of new revisionnot implemented


slideRevision = 

propertytyperequiredformat checkingstate of implementationremarks

id

integer, autoincrementyesisInteger

implemented


titlestringyes implemented
timestampstring, datetimeyesauto generatedimplemented
contentstringyes?? only allowed tagsimplemented
userinteger, autoincrementyesisIntegerimplemented
parentinteger

object { id: objectId, revision: objectId }

noisInteger
not implementedkeeps link to a previsous revision
speakerNotesstringno implemented
popularityintegernoisIntegernot implemented
commentstringno implemented
notestringno not implemented
licensestring enumerationyesis one of enumerables ['CC0', 'CC BY', 'CC BY-SA']implemented
translationobjectcomment of revision
translated_from

object {

status: string, enum['original', 'google', 'revised', null],

source: { id: object_id, revision: object_id},

translator: {id: object_id, name: string}

}

no not implemented
tagsarrayno not implemented
mediaarrayno not implemented
dataSourcesarray of stringsno not implemented
languagestringyes implemented
usage

array of objects

{ id: object_id, revision: object_id}
no not implemented