Open preaction opened 6 years ago
Data relationships Properties in the schema can be declared as relationships to other data
Hi , I justed wanted to know if anyone has done any blueprint for property naming conventions for expressing the relationships for other data. This part of roadmap is extremely important even for early adoption of yancy as any non-trivial system has relations to other data.
It is important to know the property naming convention so that we can write code even for internal consumption at this moment that can be open sourced and contributed back later.
regds mallah.
On Mar 29, 2019, at 8:18 AM, Rajesh Kumar Mallah notifications@github.com wrote:
Data relationships
Properties in the schema can be declared as relationships to other data
Hi , I justed wanted to know if anyone has done any blueprint for property naming conventions for expressing the relationships for other data. This part of roadmap is extremely important even for early adoption of yancy as any non-trivial system has relations to other data.
It is important to know the property naming convention so that we can write code even for internal consumption at this moment that can be open sourced and contributed back later.
There will not be any required naming restrictions for establishing relationships: Yancy is designed to work with existing databases as they are, and this feature will continue that philosophy. The relationship will be configurable in the schema.
These are the main features that, when complete, will mark the 2.0 release. These features will be considered EXPERIMENTAL until v2.0 is released.
A default plugin with semantic HTML 5 markup not attached to any UX library will exist as well(This is cancelled for now: The default Yancy pages use Bootstrap4, so the default form plugin is Bootstrap4)The form plugin will use the Mojolicious::Validation framework for validating data(This cannot be made to work without extensive enhancement of Mojolicious::Validation to support structured data validation, which can be done in future versions)and providing an e-mail address for password resets(sending e-mails like this will be handled by a plugin and may be added to core later)registration_fields
username_field
across multiple auth pluginsrelationships to other dataforeign keys.Additional properties in the schema can be declared as relationshipsInstead, anyx-foreign-key
in the schema, or that refers to the schema, is automatically a relationship that can be joined.by default in the configuration, oron-demand as an argument to theget
orlist
backend methodsYancy plugins will be able to add routes under/yancy/plugin/:plugin_name
Plugins can define multiple routes and link between those routes, creating an application that lives in the Yancy editorThese are breaking changes that will be made for version 2.0, with a transition period during the 1.x development cycle:
collections
configuration will be renamed toschema
collection
will be renamed toschema
collections
will be an alias forschema
in the configuration, andcollection
will be supportedcollections
toschema
on app startupBasic
auth plugin will be deprecated.route
feature of the Basic auth module is hard to use, hard to test, and just plain wrongThese things are not required for version 2.0, but would be nice to have.