-
Notifications
You must be signed in to change notification settings - Fork 4
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
Implement Progress API #348
Comments
Proposed permissions for progress events:
Create
View / index / filter
|
We'll allow admin roles to update and delete for maintainability.
Sounds good. We already have code that is very similar to this. Once you have a reference to the audio recording there's a standard function for this.
Yes this querying will be internal to the controller.
Yes
Yes. We already have this concept - you can view public details of other users' activity now. This information might be quite a bit more detailed so some aggregation may be required.
It's troubling that project access revocation removes your own record of activity. However, I think it is a suitably simple model given that I don't know of project revocation ever happening. On reflection read permissions here should be similar to those of Thinking about this a little more, I wonder if we can remove the create permission from Moving all to serverFor the states we need to record:
Only playback and view can't be measured by an associated database record. Securing the clientAn alternative idea would be ensuring some parts of our public API can only be used in certain contexts. In this case, only our SPA app should be creating I have no idea how to do this. Moving forwardGo ahead with your suggested implementation. Ensure you file a new issue with these problems highlighted if we can't work out how to solve them between now and the PR. |
Implement the following endpoints for the new progress models.
ProgressEvents
/datasets/{dataset_id}/progress_events
(GET
&:index
,POST
&:create
)/datasets/{dataset_id}/progress_events/filter
(GET
&:filter
)/datasets/{dataset_id}/progress_events/{progress_events_id}
(GET
&:show
,DELETE
&:destroy
)ProgressEventsSummary
/datasets/{dataset_id}/progress_events/summary
(GET
&:index
,POST &
:filter`)Note: we will not support updating progress events
Default
dataset works automaticallyThe text was updated successfully, but these errors were encountered: