Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds minimal support for Actions.
What's an action?
An action is a call to a OC Server just to get additional data. This comes from the need that some OCs need to call themselves again to get more data, and right now, every time you call, you need to pass all the initial parameters, even though they might not be needed (if we think them as routes, each route might have different needs in terms of input).
So this PR creates a new property
action
to the component. data on the POST endpoint (the one used by oc.getData on the browser), that when used, it will:action
, so the server can act upon, and decide the course given that action.Ideally the templates can abstract this so the server side can already wrap this logic in a seamless way for the user (the logic of an action-aware server), but this is the minimal work in core so that can happen.