Comments (2)
Fixed by #4859
from openstreetmap-website.
Just as a passing comment here - in #4859 I managed to extract check_api_readable
into api_controller
(since it applies by default to most controllers).
I thought about doing something similar with check_api_writable
, since there's a frequent pattern of:
before_action :check_api_writable, :only => [:create, :update, :destroy]
I think this could apply by default to all api controllers - for those action names, you probably want to check the database is writeable by default.
What stands in the way is that many of our api controllers aren't (yet) refactored to use resourceful routing - they have idiosyncratic action names like :subscribe
or :update_all
. This is another place where resourceful routing refactoring, although a substantial amount of work, would prove useful in making the code easier to maintain and to build new features.
from openstreetmap-website.
Related Issues (20)
- Add "Like" button to diary entries HOT 2
- PUT /api/0.6/gpx/:id causes HTTP 500 Internal Server Error HOT 3
- Add original note in note reply email HOT 7
- GPS trace tiles do not load HOT 2
- Minimum/maximum supported URL length for API queries is not documented (or guaranteed fwiw), provide it via capabilities call HOT 7
- Wikipedia links with question mark HOT 2
- Address of building:part is not shown HOT 3
- Refactor api_call_* filters HOT 2
- Netherlands contributor URL on Copyright page no longer valid HOT 2
- Indicate when a changrset comment is added by a moderator. HOT 3
- Note resolved email notifications are failing to return address HOT 5
- HTTP 500 when trying to open a diary entry via a link HOT 5
- Prevent page change when writing messages HOT 7
- Phantom street appears at particular zoom levels HOT 2
- Add Bezier Curves HOT 3
- Set bounding box size limits based on surface dimensions HOT 6
- Automate some code review comments HOT 2
- Wikimedia Commons links with question mark
- Split actions from "lists" in user profile page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstreetmap-website.