-
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
Scripts API enhancements #259
Comments
Is there any issue with |
Oh dang, I thought Yes
can you think of any other methods? thoughts? |
|
Solution I used was to only restrict Reopen and comment if this doesn't satisfy your use cases. |
Seems reasonable. I'm looking at that diff - it doesn't seem to be covered by a test case (and thus documentation either). Am I missing something? |
No, there's no test. I figured this was more an exploratory one - if you can try it out, see if it works, I'll add tests once you're satisfied. |
Reopening until we've settled on API |
What's the status on this one? |
I've been using dummy data but that doesn't really matter. On reflection I'm a little uncomfortable with the non-standard (and undocumented) behaviour. Had another thought. This problem occurs because we need a group by operation. Perhaps this means this resource is sufficiently complicated enough to need a nested resource. I.e. This would set a precedence for wider API design - we have other similar problems. Sorry to be a pain 😬 |
I don't understand what you want me to do. Do you want me to do the nested Thoughts? |
I need to think about other areas where this kind of API problem will exist. I'll get back to you. |
Okay, I've thought about this. I thought there were similar patterns in our database structure but I couldn't identify them. I've also consulted various guides on designing RESTFUL interfaces. My proposed solution has been put in the API wiki doc (see changeset). In short, the TODO list:
My naive suggestion is to do all the processing normally and group the results in the last step of the controller actions. This model allows for all use-cases I can think of, is extensible (we can add more properties to the model... unlike the Provided this is easy enough and you agree with me, LGTM. |
Implements `is_first_version` and `is_last_version` attributes. Fixes #259
Please expose the following in the scripts API:
executable_settings
field and (if Add script settings mime type field #258 is a go) theexecutable_settings_filename
field/filter
return all versions of a script? It currently does.The text was updated successfully, but these errors were encountered: