Nova 2.0 Ordering of Resource Groups - laravel-nova

Using Laravel 6.x and Nova 2.0, does anyone have any tips or advice on re-ordering of resource groups when using the $group variable on resources?
By default it orders groups on the navbar alphabetically but I'd like to re-order the groups manually.
Thanks!

Related

Dynamic resources in admin panel with Laravel Nova

I have a taxonomy system for a Laravel application I'm working on, as we needed more flexibility than the usual category/tag systems. Taxonomy models look something like this:
id
name
While the topic models look something like this:
id
taxonomy_id
name
description
Projects then have a many-to-many relationship with topics.
Now, the project is using Nova for the admin, and I've registered the Topic and Taxonomy models in the usual way, so from the admin one can create a Taxonomy, and then create Topics within that taxonomy. However, that's not exactly the behaviour I'd ideally want. I'd prefer it if I could define a Taxonomy, then have that taxonomy dynamically appear in the admin.
For example, if I create a new taxonomy in the admin called Sectors, I'd then see Sectors appear as a registered resource. These would still be Topic instances under the hood, but would be presented as Sectors. If I then created a Type of Work taxonomy, that would then be added dynamically as a registered resource too.
After digging through the Nova docs I haven't found a way to achieve this in the admin. Can anyone suggest a possible route to achieve this?

Best way to create admin panel in Node.JS

I had been working with Rails and used to use Active Admin to create admin panel (CRUD operations and etc)
Now I'm looking for similar package for Node.JS
Is there way to do the same as Active Admin in Node?
Thx a lot!
The best I know of are listed on our wiki. admin-on-rest has been rewritten as react-admin already. Additional notes and comparison articles welcome. Alternately some are using AcitveAdmin alongside React

Applying restrictions to Grails Searchable results

I'm developing an application with Grails 2.2.2 / MySQL.
I'd like to integrate the Searchable plugin, however my application is a multi-tenant saas app, and I need to restrict the results that are returned somehow. So for instance if I am a user of my application belonging to organisation A and I search for products, I should not see any products that belong to organisation B.
I currently have a service that carries out this kind of data partitioning when using the regular grails CRUD pages which works by applying restrictions to every criteria query executed. I've also integrated this service with the Filterpane plugin, for 'advanced search' style queries.
Is it possible to filter Searchable results in a similar way?
It's been a while since I looked into this, but I did come across an interesting article about partitioning a lucene index so that 1) there is one index for the application and 2) search results for organisation A are not biased in any way by the stuff that has been indexed for organisation B (I didn't even consider that second point).
https://community.jivesoftware.com/community/developer/blog/2013/06/24/a-new-experimental-approach-to-implement-multi-tenancy-with-lucene-4
Also, for my application, I've sort of met the 'full text searching' requirement (for the short term at least) by using the excellent Quick Search plugin for grails.
Hopefully someone will find these resources useful.

How to create 2 separate group models in Rails 3

I have been following 2 separate tutorials to build a rails 3 app each of which covers modelling users. however they don't cover segregating users into groups. specifically im trying to create a users model where one group of users (consumers) would be limited to browsing, making purchases updating their own accounts when logged in, and a 2nd group (admins) would be able to add and maintain products and update their own accounts and possibly create other accounts to manage their products. any assistance on how to pull this off would be much appreciated.
This sort of thing is called roles (admins, consumers) and authorization (purchasing, updating). Gems are available which can help you with both.
I use CanCan for the authorization and make my own roles table. I'd recommend looking at Rubytoolbox to find out what your options are: https://www.ruby-toolbox.com/categories/rails_authorization

CRUD based authorization?

Does anyone know of a quick way to add a role CRUD system to rails?
I only want admins to create users and have all currently signed up users listed on a page in my app.
Im trying to figure out a way to assign users to different roles and restrict them for performing certain actions using collection select or a series of checkboxes.
Ive followed a few tutorials but none seem to be working for me :/
Can anyone recommend a solution? I us devise for my authorization it that matters.
You can think about CanCan. Using it you're able to define roles and restrict access to certain actions or model elements according to the role.
It can be also easily integrated with Devise mentioned by Scott Schulthess.
Devise on github has a wiki page showing how to do this
https://github.com/plataformatec/devise/wiki/How-To:-Add-an-Admin-role
You can also try using API Keys if you want to expose this API to many others

Resources