Skip to content

Create an endpoint for telling the dashboard which features are available. #611

Closed
@drew-gross

Description

@drew-gross

Should be master-key-only.

My suggestion for the interface is to have it return an object of feature-config pairs, for good forward compatibility. For now it would mostly be simple on/off like this:

{
  push: true,
  config: true,
  webhooks: true
}

But an object leaves open the possibility of more complex config later:

{
  push: true,
  scheduledPush: true,
  webhooks: {
    read: true,
    write: false
  }
  indexes: {
    indexableFields: ['Number', 'String', 'etc.'],
    allowRedundantCompoundIndexes: false,
    maxIndexesPerClass: 100,
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions