0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/server/models
Jacob Gable 7e9880ce8d Settings API Primary Document refactor
Closes #2606

- Refactor settings api responses to { settings: [ ] } format
- Update all code using api.settings to handle new response format
- Update test stubs to return new format
- Update client site settings model to parse new format into one object of key/value pairs
- Refactor to include all setting values
- Remove unused settingsCollection method
- Update settingsCache to store all attributes
- Update settingsResult to send all attributes
- Remove unnecessary when() wraps
- Reject if editing a setting that doesn't exist
- Reject earlier if setting key is empty
- Update tests with new error messages
- Use setting.add instead of edit that was incorrectly adding
- Update importer to properly import activePlugins and installedPlugins
- Update expected setting result fields
- Fix a weird situation where hasOwnProperty didn't exist 🤷
2014-04-30 23:15:27 -05:00
..
app.js Add new permissions to fixtures 2014-04-16 18:16:10 +02:00
appField.js Add new permissions to fixtures 2014-04-16 18:16:10 +02:00
appSetting.js Add new permissions to fixtures 2014-04-16 18:16:10 +02:00
base.js Add include parameter for posts API 2014-04-27 18:58:34 +02:00
index.js Implements Models & Data API for Apps 2014-04-16 18:14:56 +02:00
permission.js Add new permissions to fixtures 2014-04-16 18:16:10 +02:00
post.js Additional objects 2014-04-27 19:34:44 +02:00
role.js Add validation from schema.js 2014-02-19 18:32:23 +01:00
session.js Use current user in models 2014-04-16 18:20:09 +02:00
settings.js Settings API Primary Document refactor 2014-04-30 23:15:27 -05:00
tag.js Tag API response to use parent rather than parent_id 2014-04-22 23:46:53 -07:00
user.js Update & grunt-groc and fix docs errors 2014-04-21 19:04:20 +01:00