bigmoves / ember-orchestrate Goto Github PK
View Code? Open in Web Editor NEWAn Ember Data adapter for Orchestrate.io
License: MIT License
An Ember Data adapter for Orchestrate.io
License: MIT License
Chad, thanks for your work on this.
One question:
You will also need to set en environment variable with an api key provided from the Orchestrate.io dashboard.
export ORCHESTRATE_API_KEY=...
So what's the right way to do this with ember-cli? I searched around, there is some discussion on this by setting and importing config from '../config/environment' etc but seems hoakey, some are using node modules (Nodejs Dotenv project), but is that really necessary? I'm new to ember-cli but I'd like to say with the ember 'doctrine' if you have a method you would share.
Find all users matching a specific value:
this.store.findWhere('users', { email: '[email protected]' });
would add value:email: [email protected]
to the query parameter passed to findQuery
.
Could also include an optional flag for exact matches.
this.store.findWhere('users', { email: '[email protected]' }, true);
// => value.name: `[email protected]`
Hey, where does ember-orchestrate store your API key? In the readme, you set it like this...
// app/adapters/application.js
import OrchestrateAdapter from 'ember-orchestrate/adapter';
export default OrchestrateAdapter.extend({
apiKey: 'Your api key'
});
...which leads me to believe it's stored in the client, but that's a major security vulnerability, so I want to make sure you're storing it elsewhere, securely.
This is how sorting works currently:
var users = this.store.findQuery('user', { sort: 'value.firstName:asc,value.lastName:asc' });
Would be nice to make it more like:
var users = this.store.findQuery('user', { sort: 'firstName:asc lastName:asc' });
// or
var users = this.store.findQuery('user', { sort: [ { firstName: 'asc', lastName: 'asc' } ] });
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.