Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Rename client side privileges to capabilities where applicable. #41874

Closed
jgowdyelastic opened this issue Jul 24, 2019 · 2 comments
Closed
Assignees

Comments

@jgowdyelastic
Copy link
Member

The /api/ml/ml_capabilities endpoint provides a list of abilities the user has as capabilities, however when stored on the client side it is renamed to privileges. This was to avoid a large amount of code churn when implementing #39749

A follow up PR is needed to bring the client side code up to date with this wording.

for reference, the response from /api/ml/ml_capabilities :

{
  "capabilities": {
    "canGetJobs": false,
    "canCreateJob": false,
    "canDeleteJob": false,
    "canOpenJob": false,
    "canCloseJob": false,
    "canForecastJob": false,
    "canGetDatafeeds": false,
    "canStartStopDatafeed": false,
    "canUpdateJob": false,
    "canUpdateDatafeed": false,
    "canPreviewDatafeed": false,
    "canGetCalendars": false,
    "canCreateCalendar": false,
    "canDeleteCalendar": false,
    "canGetFilters": false,
    "canCreateFilter": false,
    "canDeleteFilter": false,
    "canFindFileStructure": true,
    "canGetDataFrame": true,
    "canDeleteDataFrame": true,
    "canPreviewDataFrame": true,
    "canCreateDataFrame": true,
    "canStartStopDataFrame": true
  },
  "upgradeInProgress": false,
  "isPlatinumOrTrialLicense": false,
  "mlFeatureEnabledInSpace": true
}
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

@jgowdyelastic jgowdyelastic added v7.4.0 enhancement New value added to drive a business result chore and removed enhancement New value added to drive a business result labels Jul 24, 2019
@jgowdyelastic jgowdyelastic changed the title [ML] Rename client side privileges to capabilities where applicable. [ML] Rename client side privileges to capabilities where applicable. Jul 24, 2019
@peteharverson
Copy link
Contributor

Closing as fixed for 7.8.0 by #64057

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants