Merge pull request #469 from sharelatex/ja-feature-flag-rename

Split references feature flag into mendeley and referencesSearch
This commit is contained in:
James Allen 2018-04-03 11:53:58 +01:00 committed by GitHub
commit 0a00dea610
2 changed files with 38 additions and 29 deletions

View file

@ -35,10 +35,17 @@ module.exports = ProjectEditorHandler =
compileGroup:"standard" compileGroup:"standard"
templates: false templates: false
references: false references: false
referencesSearch: false
mendeley: false
trackChanges: false trackChanges: false
trackChangesVisible: ProjectEditorHandler.trackChangesAvailable trackChangesVisible: ProjectEditorHandler.trackChangesAvailable
}) })
# Originally these two feature flags were both signalled by the now-deprecated `references` flag.
# For older users, the presence of the `references` feature flag should still turn on these features.
result.features.referencesSearch = result.features.referencesSearch or result.features.references
result.features.mendeley = result.features.mendeley or result.features.references
return result return result
buildOwnerAndMembersViews: (members) -> buildOwnerAndMembersViews: (members) ->

View file

@ -39,6 +39,8 @@ UserSchema = new Schema
templates: { type:Boolean, default: Settings.defaultFeatures.templates } templates: { type:Boolean, default: Settings.defaultFeatures.templates }
references: { type:Boolean, default: Settings.defaultFeatures.references } references: { type:Boolean, default: Settings.defaultFeatures.references }
trackChanges: { type:Boolean, default: Settings.defaultFeatures.trackChanges } trackChanges: { type:Boolean, default: Settings.defaultFeatures.trackChanges }
mendeley: { type:Boolean, default: Settings.defaultFeatures.mendeley }
referencesSearch: { type:Boolean, default: Settings.defaultFeatures.referencesSearch }
} }
referal_id : {type:String, default:() -> uuid.v4().split("-")[0]} referal_id : {type:String, default:() -> uuid.v4().split("-")[0]}
refered_users: [ type:ObjectId, ref:'User' ] refered_users: [ type:ObjectId, ref:'User' ]