This shows how one can paginate throug a list of tenants with id and name using two different sortings. The limit is always 2.
Data used
Table: tenants
id | name |
---|---|
1 | a |
These are the results running these benchmarks (code).
ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin22]
Warming up --------------------------------------
./apps/committee.ru 1.000 i/100ms
./apps/committee_with_response_validation.ru
1.000 i/100ms
./apps/no-validation.ru
This is a feature comparison of openapi_first and committee
I will try to keep this updated. Please create an issue if you see something wrong/missing here.
Most of these differences are because openapi_first uses json_schemer, which has build in support for OpenAPI 3.1 where committee/openapi_parser currently ships it's own implementation.
Feature | openapi_first | committee |
---|
I hereby claim:
To claim this, I am signing this object:
Your anti bikeshedding weapon.
By following shared conventions, you can increase productivity, take advantage of generalized tooling, and focus on what matters: your application.
{
// Add this file: app/controllers/object.js – Done. | |
// Ember.ObjectController will be removed in Ember 2.0 and auto-generated ObjectControllers | |
// cause deprecation warning since Ember 1.11. | |
// This file is here so ember does not generate ObjectControllers anymore. | |
// See https://github.com/emberjs/ember.js/blob/06e41ad7ccd28558dd4e651aa070bc06f7757821/packages/ember-routing/lib/system/generate_controller.js#L11-L26 | |
import Ember from 'ember'; | |
export default Ember.Controller; |
// adapters/application.js | |
var ApplicationAdapter = DS.Adapter.extend({ | |
init: function() { | |
this.hoodie = window.hoodie; // FIXME? | |
this._super(); | |
}, | |
find: function(store, type, id) { | |
return this.hoodie.store.find(type.typeKey, id); |
// Usage: | |
// HoodieAdapter.create({type: "mystuff", url: "some/url"}) | |
// "type" is required. "url" is optional. | |
var hoodie, | |
get = Ember.get, | |
Promise = Ember.RSVP.Promise; | |
function mustImplement(message) { | |
var fn = function() { |
!!! | |
/[if IE 8] <html class="ie-lt10 ie8" lang="de"> | |
/[if IE 9] <html class="lt-lt10 ie9" lang="de"> | |
:plain | |
<!--[if gt IE 9]><!--><html lang="de"><!--<![endif]--> | |
%head | |
%body | |
:plain |