Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update note_admin-2.0.0.md #1922

Merged
merged 1 commit into from
May 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions docs/releases/note_admin-2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,47 @@ LUYA admin 2.0.0 release

## Move to semver

With the new admin version we switch to strict semver versioning. This means we try to follow http://semver.org as good as possible.
Therefore the version constraint changed from `~` to `^` operator. As by the previous versioning system the admin module would become version 1.3, we skipped this plan and made 2.0 out of it. This will also be the case for all other modules with breaking changes in future.
The CMS module will follow shorty after this release with version 2.0 as well.
With this new version of the LUYA admin, we switch to strict semver versioning. This means that we will try to follow http://semver.org as good as possible.
Therefore the version constraint changed from the `~` to the `^` operator. With the previous versioning system, the admin module would have become version 1.3, with the new one it will be 2.0. This will also be the case for all other modules with breaking changes in the future (the CMS module will follow shortly with version 2.0 as well).

So make sure to use the correct version constraint in order to profit from upcoming updates.

## Scheduler

By default the Admin module now integrates the Yii Queue component. The Yii Queue is used for the new LUYA Scheduler system which.
The admin module now integrates the Yii Queue component upon which the new LUYA Scheduler is built.

![LUYA Admin Scheduler](https://raw.githubusercontent.com/luyadev/luya/master/docs/images/admin-scheduler.png)

This is a new generic Angular directive which turns any field into a scheduling option to plan the change of ANY value. Lets say you have a CRUD system with a stauts field "published", "archived" and "draft" by now you can enable scheduling for those fields which then let you change the value of the field for any given time or date in the future! No more need for datetime or timestamp fields in order to setup display limitations. There are is also a cronjob and a "fake cronjob" you can enable in order to run the queue without to setup of crontab but you have to turn it on by yourself in the configuration of the admin module.
This is a new generic Angular directive which turns any field into a scheduling option to plan the change of ANY value. Let's assume you have a CRUD system with a status field and its possible values "published", "archived" and "draft". Now you can enable scheduling for this field in order to have its value automatically changed at any given date and time in the future. No more need for datetime or timestamp fields in order to setup display limitations. You can enable a cronjob or have the system run a "fake cronjob" (which has to be turned on in the configuration of the admin module) in order to process the queue.

## NgRest Crud
## NgRest CRUD

We have strongly enhanced the CRUD system. Searching, Filtering and Sorting is now always context specific. So you can apply a filter and search in the results of the filter afterwards. There is also a new Tags view which lets you filter the content for tags.
We have strongly enhanced the CRUD system. Searching, filtering and sorting is now context specific. So you can apply a filter and search in the results of the filter afterwards. There is also a new tags view which lets you filter the content by tags.

![LUYA Admin Tags](https://raw.githubusercontent.com/luyadev/luya/master/docs/images/admin-tags.png)

The tags view will automatically appear if the system detects that your ngrest model has the Taggable Trait attached - this is how we think a system should work!
The tags view will automatically be displayed if the system detects that your ngrest model has the Taggable Trait attached.

## Data Pools

With version 2.0 a new featured called "data pools" has arrived, this is something we where looking for internaly for a long time. Its a common scenario to have data in the same table, but you want to display those data in 2 seperate CRUD systems - as technically they are in the same table but the logic for the administration user could be different. Therfore the table has commonly a field with the "type". With the new `itemPoolApi` permission entry and ngRestPools() method you are now able to display only data for this given type. This information about the pool will even passed to inherited CRUD realtion viewsl, if available.
With version 2.0 we introduce a new feature called "data pools" (this has been on our list for a long time). It's a common scenario to combine data in one table that should be managed in separate CRUD views. An example would be events on a website that includes both a public area and an intranet – you might want to keep the data separate in different CRUD views for the admin users (possibly with different field listings and program logic) while technically it is stored in the same table.

To enable data pools for a table, it usually has a field to distinguish the pool a record belongs to. With the new `itemPoolApi` permission entry and the ngRestPools() method you are now able to display only data for a given pool. The information about the pool will even be passed to CRUD relation views, if available.

## Api Request Insight

With this version we took a big step ahead for using the admin as headless API, therefore we have added a new tool to take a deeper insight over all the reqests coming to the API. What are the slowest urls? Which API is called very often, so you might cache this request on the client?
With this version we took a big step forward for using the admin as a headless API, therefore we have added a new tool to allow deeper insights into the requests coming to the API. What are the slowest URLs? Which API is called often? This helps you evaluate the requests that should be cached on the client.

![LUYA Admin Requests](https://raw.githubusercontent.com/luyadev/luya/master/docs/images/admin-requests.png)

In addition the LUYA headless client has been released as Version 2.0 with some new features and improvments. It was never easier to use LUYA Admin as a Data Provider for different websites, modules and applications.
In addition, the LUYA headless client has been released as version 2.0, too, with some new features and improvements. It was never easier to use LUYA admin as a data provider for different websites, modules and applications!

## Updates

+ We have moved to latest version of Bootstrap 4 CSS Framework.
+ We have integrated unglue.io as compiling system for js and css, if you have not checked out unglue you should do imidieatly. Its a css and js compiler based on php, so you can install the binary via composer and start compiling right aways **without any use of node**!
+ We have upgraded to the latest version of the Bootstrap 4 framework.
+ We have integrated unglue.io as a compiling system for JavaScript and CSS (if you have not checked out unglue, you should definitely do so). The compiler is based on PHP, so you can install the binary via composer and start compiling right away **without any use of Node.js**!
+ Deprecated some classes and methods.
+ Improved API speed for Api users and also allowed more flexibility when creating custom API actions.
+ New sorting defintion option for CRUD views (for example relation attribute sorting setup).
+ Improved API speed for API users and also allowed more flexibility when creating custom API actions.
+ New sorting definition option for CRUD views (for example relation attribute sorting setup).
+ Fixed a lot of smaller bugs.
+ Made small UI improvements (like reset icon for search etc.)