lightblue-platform / lightblue-docs-user Goto Github PK
View Code? Open in Web Editor NEWUser guide for lightblue.
Home Page: http://docs.lightblue.io/
License: GNU General Public License v3.0
User guide for lightblue.
Home Page: http://docs.lightblue.io/
License: GNU General Public License v3.0
For example, to find details about a specific metadata api I have to scan through all api's to find it:
http://docs.lightblue.io/rest_specification/metadata.html
Gitbooks allow for more levels of hierarchy in chapters. I used them recently for audit hook docs:
http://docs.lightblue.io/cookbook/audit_hook.html
Things that I think should be broken up:
Exert from user doc:
context: A string delimited with "/" characters that define the context of execution where the error occurred, similar to a stack trace.
This definition leaves me struggling to understand what the context is intended to be. I don't know if it is the recursive use of the word "context" or the comparison to a stacktrace, but regardless, I don't think the definition clearly encapsulates the concept that the context is intended to represent.
For example, why would a context trace be preferred over a stacktrace for a server side error? Or maybe better, what can the context provide that could not be included in an Exception's message? A stracktrace does an excellent job showing where in the code something broke, why duplicate that? That said, a stacktrace does not give any indication of the conditions that caused the exception to be thrown (again, possibly outside of the Exception's message), which is where I think the context does a better job.
I think if we had a clear definition of "context" we could begin to look at the code and ask if various uses of context and/or exceptions are appropriate, or would the other be better?
From a sample entity and sample data point of view. A simple entity like country is probably a good candidate.
Sometimes (for example in http://jewzaam.gitbooks.io/lightblue-user-guide/language_specification/metadata.html ) the examples/snippet are using double quotes mark for JSON but sometimes it is missing it. I think it would be better to always use it.
New constraint 'matches' was just merged (thanks @skavanagh!) lightblue-platform/lightblue-core#109 and we need some documentation added about it.
There's a doc that describes the algorithm for associations already but:
For the third point, some things to consider:
Enhance the json schema comments, specially the the JSON files in the RDBMS module #3
Need a link to where doc is hosted and license only?
It's fine to have a spec, but it's hard to get started from scratch when there's no example. Have to look through so many json schemas...
@bvulaj fyi, was internal email discussion about this today. Would be good to document if / how unique case insensitive index works. I assume the index on the hidden field would just have the unique attribute set true.
The query noted in the cookbook says use "option": "i" but it's actually "caseInsensitive": true
Create a Cookbook (like http://jewzaam.gitbooks.io/lightblue-user-guide/cookbook/custom_hook.html#metadata-configuration ) for new database modules ( if someone want for Cassandra, Redis, etc) (mention about PR on RDBMS modules for specific RDBMS features (example MySQL or MariDB or PostgreSQL, etc))
Document how to create a binary field ("type": "binary" q.e.d), example is here.
also I think the gitbook is a bit out of date; the examples I was looking at were using "returning" instead of "projection"
I see $this
in some docs in examples but it is never explained. And $parent
isn't mentioned at all.
Wondering where is best to document standard fields. Was thinking here in the user guide as a best practice.
Recommended for all data:
For entities that are being migrated:
For each backend, need to document permissions required to allow all operations to work.
'PUT: Update Schema Status' on http://jewzaam.gitbooks.io/lightblue-user-guide/rest_specification/metadata.html is multiplied 3 times.
A simple how-to for using the client would be nice. What dependencies to include, how to setup a client instance, how to query, etc. Maybe take the examples from the existing quickstart that uses curl and do the same in java?
This thread started in another repository ( lightblue-platform/lightblue#29 (comment) ). We have to update the documentation for UID datatype
This is a task to document the lightblue-migrator, and also a place to drop notes on to ensure it gets documented.
I thought we could add a couple more references in JSON schema article. I think we could also inform about there references right in the beginning, so the user could be aware of it. Maybe we could also add our schema into this website http://schemastore.org/ .
References:
https://spacetelescope.github.io/understanding-json-schema/
http://usingjsonschema.com/?page_id=5
http://jsonschema.net/reboot/#/ (or http://jsonschema.net/ )
http://jsonary.com/documentation/json-schema/?
https://groups.google.com/forum/#!forum/json-schema
https://stackoverflow.com/questions/tagged/jsonschema
Document that for audit hook you have to specify all the fields with an identity constraint in the hook's projection, else the hook will fail. Should include the message you'd get on such failure, to make it easier to find and fix.
From @beachw08
In the documentation here http://docs.lightblue.io/rest_specification/data.html
The section titled Put: Insert New Data says this is how you would insert new data:
PUT /data/insert/{entityName}/{version} {request JSON document}
that doesn't work but this does:
PUT /data/{entityName}/{version} {request JSON document}
There are broken links due we split the repositories. Other third party references should be also verified please.
Thanks
The language spec for rdbms is not complete. The current language spec is a reasonable overview that hits on the more interesting bits, but there are details missing. Ideally every property available is documented, as is done in other language specifications.
"query: A non-empty query expression"
Won't be required after lightblue-platform/lightblue-core#432 is merged
http://docs.lightblue.io/cookbook/install_lightblue_on_openshift.html Need to update something in the quickstart with the list of URL's in earlier comment if they're not there already.
We have a mix of ways to delimit words. It makes it harder for a user to get the syntax correct if they have to remember a non-standard pattern for these things. Some examples in json schema's today:
Once standard is defined, open issues to fix violations where necessary.
The article http://jewzaam.gitbooks.io/lightblue-user-guide/language_specification/data.html lack how to create a update request, for example. It would be desired to have couple of examples for the requests so the reader can understand better
Should include example of overwriting datasource
See lightblue-platform/lightblue-core#463
See lightblue-platform/lightblue-core#462
It exists in the rest spec but is missing from language spec.
Lots of good examples of how to do things in the demo scripts, it would be nice to extract out some of the more interesting ones into the book.
Reference files linked under http://docs.lightblue.io/rest_specification/ that lead back to github return 404s.
I could not find the mention to some other projects like lightblue-migrator or lightblue-dockerfiles and pyresttest etc. Maybe we could create new chapter about them
They're documented in the developer guide as a key decision.
http://dev.docs.lightblue.io/key_decisions/README.html#how-will-metadata-be-versioned
This should be cleaned up and moved to the user guide. Users need to know what these things are...
Right now is mostly in the lightblue-puppet README.md, it should move to the book. Maybe under cookbook section?
Put the Logical diagram picture and some description on the documentation
Add to cookbook section (new probably) how to use the byte data type. Example of storing a PDF document, since we have a real use case for it for our deployment.
Clean metadata, sample data, and queries.
Consider using docker image(s) for setting up the examples, so it's easy to start it up and run queries with your preferred client.
There's nothing about elemMatch. Should note in docs that the query in the elemMatch is applied for each individual item in the array. Question came up today in looking at something with an $and in the query.
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.